[gtk+/gtk-2-90: 120/161] Add and use internal accessor for accelerables in GtkAccelGroup
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 120/161] Add and use internal accessor for accelerables in GtkAccelGroup
- Date: Tue, 23 Mar 2010 21:13:36 +0000 (UTC)
commit 57a213a384571be01a3c615619c73522e8c0788b
Author: Christian Dywan <christian twotoasts de>
Date: Fri Oct 23 01:58:54 2009 +0200
Add and use internal accessor for accelerables in GtkAccelGroup
gtk/gtkaccelgroup.c | 8 ++++++++
gtk/gtkaccelgroup.h | 1 +
gtk/gtkaccelmap.c | 2 +-
3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c
index bc2e5b9..4754929 100644
--- a/gtk/gtkaccelgroup.c
+++ b/gtk/gtkaccelgroup.c
@@ -815,6 +815,14 @@ _gtk_accel_group_reconnect (GtkAccelGroup *accel_group,
g_object_unref (accel_group);
}
+GSList*
+_gtk_accel_group_get_accelerables (GtkAccelGroup *accel_group)
+{
+ g_return_val_if_fail (GTK_IS_ACCEL_GROUP (accel_group), NULL);
+
+ return accel_group->priv->acceleratables;
+}
+
/**
* gtk_accel_group_query:
* @accel_group: the accelerator group to query
diff --git a/gtk/gtkaccelgroup.h b/gtk/gtkaccelgroup.h
index 0ff4df9..b00b039 100644
--- a/gtk/gtkaccelgroup.h
+++ b/gtk/gtkaccelgroup.h
@@ -179,6 +179,7 @@ GtkAccelGroupEntry* gtk_accel_group_query (GtkAccelGroup *accel_group,
void _gtk_accel_group_reconnect (GtkAccelGroup *accel_group,
GQuark accel_path_quark);
+GSList* _gtk_accel_group_get_accelerables (GtkAccelGroup *accel_group);
struct _GtkAccelGroupEntry
{
diff --git a/gtk/gtkaccelmap.c b/gtk/gtkaccelmap.c
index ac78bf3..3102868 100644
--- a/gtk/gtkaccelmap.c
+++ b/gtk/gtkaccelmap.c
@@ -319,7 +319,7 @@ internal_change_entry (const gchar *accel_path,
{
GtkAccelGroup *group = slist->data;
- for (node = group->acceleratables; node; node = node->next)
+ for (node = _gtk_accel_group_get_accelerables (group); node; node = node->next)
g_hash_table_insert (window_hm, node->data, node->data);
}
g_slist_free (group_list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]