[gtk+/gtk-2-90: 124/158] Do not use lock_count of GtkAccelGroup directly in GtkWidget



commit 357a109965360ff4bebbd7c35fcd3b9b967e207d
Author: Christian Dywan <christian twotoasts de>
Date:   Fri Oct 23 02:54:07 2009 +0200

    Do not use lock_count of GtkAccelGroup directly in GtkWidget

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 1e6676f..95b8837 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4509,7 +4509,7 @@ _gtk_widget_get_accel_path (GtkWidget *widget,
 
   apath = g_object_get_qdata (G_OBJECT (widget), quark_accel_path);
   if (locked)
-    *locked = apath ? apath->accel_group->lock_count > 0 : TRUE;
+    *locked = apath ? gtk_accel_group_get_is_locked (apath->accel_group) : TRUE;
   return apath ? g_quark_to_string (apath->path_quark) : NULL;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]