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:
Mart Raudsepp
2006-02-03 22:53:37 +00:00
parent 92ed8becfc
commit e343da37ac
3 changed files with 4 additions and 3 deletions

View 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;
}

View 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);

View 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;
}