From 356cfaa084427ee4408d5481de2caa2ce2cba508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Tue, 19 Oct 2010 18:45:11 +0200 Subject: [PATCH] gtktoggletoolbutton: Use accessor functions to access GtkToggleButton --- gtk/gtktoggletoolbutton.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtktoggletoolbutton.c b/gtk/gtktoggletoolbutton.c index bf6a071a28..e6cea93c93 100644 --- a/gtk/gtktoggletoolbutton.c +++ b/gtk/gtktoggletoolbutton.c @@ -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) {