[gtk+/gtk-2-90: 124/200] Do not use lock_count of GtkAccelGroup directly in GtkWidget
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 124/200] Do not use lock_count of GtkAccelGroup directly in GtkWidget
- Date: Mon, 3 May 2010 00:07:02 +0000 (UTC)
commit 72323e6d9a9dd7f34d9da47c3f4d951a958e32bc
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 f3c40bd..c97a561 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4543,7 +4543,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]