[gtk+/gtk-2-90: 143/158] Don't use direct accessors to GtkAccelLabel in gail module
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 143/158] Don't use direct accessors to GtkAccelLabel in gail module
- Date: Thu, 11 Mar 2010 02:55:34 +0000 (UTC)
commit 0f0ea64c9cf427819815dcd8ca66870b187635b5
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]