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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user