]> git.saurik.com Git - wxWidgets.git/commitdiff
GTK2: gtk_toggle_button_set_state -> gtk_toggle_button_set_active
authorMart Raudsepp <leio@gentoo.org>
Fri, 3 Feb 2006 22:53:37 +0000 (22:53 +0000)
committerMart Raudsepp <leio@gentoo.org>
Fri, 3 Feb 2006 22:53:37 +0000 (22:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/checkbox.cpp
src/gtk/radiobox.cpp
src/gtk/tbargtk.cpp

index 93a9ed2c88bc27c183f1416dfd95cdce4e9824c6..09a67f104b5eeed210a472abed80c45b685c04ae 100644 (file)
@@ -180,7 +180,7 @@ void wxCheckBox::SetValue( bool state )
 
     m_blockEvent = TRUE;
 
-    gtk_toggle_button_set_state( GTK_TOGGLE_BUTTON(m_widgetCheckbox), state );
+    gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(m_widgetCheckbox), state );
 
     m_blockEvent = FALSE;
 }
index f3649c5007390e27bd87034fc0e70ca7e0df0b64..2cbdbf456ec096fd54148af22b83ded334515691 100644 (file)
@@ -260,7 +260,8 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title,
 
         ConnectWidget( GTK_WIDGET(m_radio) );
 
-        if (!i) gtk_toggle_button_set_state( GTK_TOGGLE_BUTTON(m_radio), TRUE );
+        if (!i)
+            gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(m_radio), TRUE );
 
         g_signal_connect (m_radio, "clicked",
                           G_CALLBACK (gtk_radiobutton_clicked_callback), this);
index 05fb57e5e9b68255f5f93b080ac103059e5b14bd..b46fe7af5fc468e567618c18c298ee33f5575258 100644 (file)
@@ -540,7 +540,7 @@ void wxToolBar::DoToggleTool( wxToolBarToolBase *toolBase, bool toggle )
 
         m_blockEvent = true;
 
-        gtk_toggle_button_set_state( GTK_TOGGLE_BUTTON(item), toggle );
+        gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(item), toggle );
 
         m_blockEvent = false;
     }