[gtk+/refactor: 3/16] gtktoggletoolbutton: Use accessor functions to access GtkToggleButton
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 3/16] gtktoggletoolbutton: Use accessor functions to access GtkToggleButton
- Date: Sun, 24 Oct 2010 17:13:16 +0000 (UTC)
commit 5c6d46680732a3f318fe16610e9d214d1f29da40
Author: Javier Jardón <jjardon gnome org>
Date: Tue Oct 19 18:45:11 2010 +0200
gtktoggletoolbutton: Use accessor functions to access GtkToggleButton
gtk/gtktoggletoolbutton.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktoggletoolbutton.c b/gtk/gtktoggletoolbutton.c
index bf6a071..e6cea93 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]