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



commit 5959005fadddd0246ad3da1235153250533c6486
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]