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



commit afcbfb76bd0ebf22334252d94238ebf9ae84fe37
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 2809593..0e61a0b 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]