[gtk+/gtk-2-90] Do not use lock_count of GtkAccelGroup directly in GtkMenu



commit d7c27ae48d508f4a1c261c719cc92185270eba91
Author: Christian Dywan <christian twotoasts de>
Date:   Fri Oct 23 01:59:38 2009 +0200

    Do not use lock_count of GtkAccelGroup directly in GtkMenu

 gtk/gtkmenu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 5d66878..36e9cb8 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -3012,7 +3012,7 @@ get_accel_path (GtkWidget *menu_item,
 		{
 		  accel_group = gtk_accel_group_from_accel_closure (accel_closure);
 		  
-		  *locked = accel_group->lock_count > 0;
+		  *locked = gtk_accel_group_get_is_locked (accel_group);
 		}
 	    }
 	}



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