From e343da37acc2f264500a3e0ce9edd491100c60e4 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Fri, 3 Feb 2006 22:53:37 +0000 Subject: [PATCH] GTK2: gtk_toggle_button_set_state -> gtk_toggle_button_set_active git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/checkbox.cpp | 2 +- src/gtk/radiobox.cpp | 3 ++- src/gtk/tbargtk.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gtk/checkbox.cpp b/src/gtk/checkbox.cpp index 93a9ed2c88..09a67f104b 100644 --- a/src/gtk/checkbox.cpp +++ b/src/gtk/checkbox.cpp @@ -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; } diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index f3649c5007..2cbdbf456e 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -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); diff --git a/src/gtk/tbargtk.cpp b/src/gtk/tbargtk.cpp index 05fb57e5e9..b46fe7af5f 100644 --- a/src/gtk/tbargtk.cpp +++ b/src/gtk/tbargtk.cpp @@ -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; } -- 2.45.2