]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobut.cpp
defer creating bitmap representation until it is needed
[wxWidgets.git] / src / gtk / radiobut.cpp
index 3e7cea5d980c2445d4cb66da783fe7d26d55944e..d2c5f73cfee57f8bb905d8d363285db4b9521aa7 100644 (file)
@@ -87,8 +87,8 @@ bool wxRadioButton::Create( wxWindow *parent,
 
     SetLabel(label);
 
-    g_signal_connect (m_widget, "clicked",
-                      G_CALLBACK (gtk_radiobutton_clicked_callback), this);
+    g_signal_connect_after (m_widget, "clicked",
+                            G_CALLBACK (gtk_radiobutton_clicked_callback), this);
 
     m_parent->DoAddChild( this );
 
@@ -138,11 +138,14 @@ bool wxRadioButton::GetValue() const
 
 bool wxRadioButton::Enable( bool enable )
 {
-    if ( !wxControl::Enable( enable ) )
+    if (!base_type::Enable(enable))
         return false;
 
     gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable);
 
+    if (enable)
+        GTKFixSensitivity();
+
     return true;
 }