gtktoggletoolbutton: Use accessor functions to access GtkToggleButton

This commit is contained in:
Javier Jardón 2010-10-19 18:45:11 +02:00
parent fda588d10d
commit 356cfaa084

View File

@ -291,7 +291,9 @@ static void
button_toggled (GtkWidget *widget, button_toggled (GtkWidget *widget,
GtkToggleToolButton *toggle_tool_button) GtkToggleToolButton *toggle_tool_button)
{ {
gboolean toggle_active = GTK_TOGGLE_BUTTON (widget)->active; gboolean toggle_active;
toggle_active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget));
if (toggle_tool_button->priv->active != toggle_active) if (toggle_tool_button->priv->active != toggle_active)
{ {