diff options
author | Johan Dahlin <johan@gnome.org> | 2007-12-28 10:36:07 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2007-12-28 10:36:07 +0000 |
commit | f3ec3ddac210d972a612bb99f793b36c6300ba60 (patch) | |
tree | e0e1f0312e98d8f4b2e4a5ecd331fe1845aef338 /gtk/gtkdialog.c | |
parent | c32421418a398e9218d4fea7afc58842245d4ca1 (diff) | |
download | gtk+-f3ec3ddac210d972a612bb99f793b36c6300ba60.tar.gz |
Chain up. This makes it possible to have accelerators tags on GtkDialog
2007-12-28 Johan Dahlin <johan@gnome.org>
* gtk/gtkdialog.c (gtk_dialog_buildable_custom_finished)
(gtk_dialog_buildable_custom_tag_start): Chain up.
This makes it possible to have accelerators tags on GtkDialog
subclasses.
svn path=/trunk/; revision=19268
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r-- | gtk/gtkdialog.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 3ad4299c98..5ae44b72fa 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -280,9 +280,12 @@ gtk_dialog_init (GtkDialog *dialog) gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ON_PARENT); } +static GtkBuildableIface *parent_buildable_iface; + static void gtk_dialog_buildable_interface_init (GtkBuildableIface *iface) { + parent_buildable_iface = g_type_interface_peek_parent (iface); iface->get_internal_child = gtk_dialog_buildable_get_internal_child; iface->custom_tag_start = gtk_dialog_buildable_custom_tag_start; iface->custom_finished = gtk_dialog_buildable_custom_finished; @@ -1365,7 +1368,8 @@ gtk_dialog_buildable_custom_tag_start (GtkBuildable *buildable, return TRUE; } - return FALSE; + return parent_buildable_iface->custom_tag_start (buildable, builder, child, + tagname, parser, data); } static void @@ -1383,7 +1387,11 @@ gtk_dialog_buildable_custom_finished (GtkBuildable *buildable, guint signal_id; if (strcmp (tagname, "action-widgets")) + { + parent_buildable_iface->custom_finished (buildable, builder, child, + tagname, user_data); return; + } dialog = GTK_DIALOG (buildable); parser_data = (ActionWidgetsSubParserData*)user_data; |