]> Pileus Git - ~andy/gtk/commitdiff
gtktoggletoolbutton: Use accessor functions to access GtkToggleButton
authorJavier Jardón <jjardon@gnome.org>
Tue, 19 Oct 2010 16:45:11 +0000 (18:45 +0200)
committerJavier Jardón <jjardon@gnome.org>
Tue, 26 Oct 2010 04:07:42 +0000 (06:07 +0200)
gtk/gtktoggletoolbutton.c

index bf6a071a28e9070d07e03f31b286d0096656e45a..e6cea93c9304bbcf5cbe7f28f09770f1826116d8 100644 (file)
@@ -291,7 +291,9 @@ static void
 button_toggled (GtkWidget           *widget,
                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)
     {