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



commit 76ed1bf4750ffeb59f61e443def5f4e22e8c7358
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 b5b9820..0bbfae4 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -3034,7 +3034,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]