[gtk+/gtk-2-90: 144/156] Don't use direct accessors to GtkAccelLabel in gail module



commit 330f4fb2577929100e11dc5266515901cd8663c4
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Nov 30 05:31:24 2009 +0100

    Don't use direct accessors to GtkAccelLabel in gail module

 modules/other/gail/gailmenuitem.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/modules/other/gail/gailmenuitem.c b/modules/other/gail/gailmenuitem.c
index 24b1a85..c156721 100644
--- a/modules/other/gail/gailmenuitem.c
+++ b/modules/other/gail/gailmenuitem.c
@@ -527,13 +527,17 @@ gail_menu_item_get_keybinding (AtkAction *action,
               if (GTK_IS_ACCEL_LABEL (child))
                 {
                   GtkAccelLabel *accel_label;
+                  GClosure      *accel_closure;
 
                   accel_label = GTK_ACCEL_LABEL (child);
-                  if (accel_label->accel_closure)
+                  g_object_get (accel_label,
+                                "accel-closure", &accel_closure,
+                                NULL);
+                  if (accel_closure)
                     {
-                      key = gtk_accel_group_find (accel_label->accel_group,
+                      key = gtk_accel_group_find (gtk_accel_group_from_accel_closure (accel_closure),
                                                   find_accel_new,
-                                                  accel_label->accel_closure);
+                                                  accel_closure);
                     }
                
                 }



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