[gtk+/gtk-2-90: 118/158] Use gtk_accel_grouop_get_is_locked() rather than trying to access group->lock_count.



commit 02c7aabe50797b0bec6a5d3f497632fb47e92f23
Author: Cody Russell <bratsche gnome org>
Date:   Thu Oct 22 17:56:14 2009 -0500

    Use gtk_accel_grouop_get_is_locked() rather than trying to access group->lock_count.

 gtk/gtkaccelmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkaccelmap.c b/gtk/gtkaccelmap.c
index b9f41ff..ac78bf3 100644
--- a/gtk/gtkaccelmap.c
+++ b/gtk/gtkaccelmap.c
@@ -367,7 +367,7 @@ internal_change_entry (const gchar    *accel_path,
 	for (i = 0; i < n; i++)
 	  {
 	    seen_accel = TRUE;
-	    removable = !group->lock_count && !(ag_entry[i].key.accel_flags & GTK_ACCEL_LOCKED);
+	    removable = !gtk_accel_group_get_is_locked (group) && !(ag_entry[i].key.accel_flags & GTK_ACCEL_LOCKED);
 	    if (!removable)
 	      goto break_loop_step5;
 	    if (ag_entry[i].accel_path_quark)



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