[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: Fri, 22 Oct 2010 09:38:20 +0000 (UTC)
commit 04701366e8c97db3fa1236bdc8822996982be27e
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]