diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-08 03:13:57 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-04-26 17:59:41 +0200 |
commit | 9c0acf62b47102e3b16b29839516f8528f5590d3 (patch) | |
tree | 0b8583dc2f6dd51aaac68569dad7da39da530a18 /gtk/gtkwindow.c | |
parent | 9af03fa602b8b0cd72572c64e2e8ed3e63ede03f (diff) | |
download | gtk+-9c0acf62b47102e3b16b29839516f8528f5590d3.tar.gz |
widget: Allow adding event controllers in ui files
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r-- | gtk/gtkwindow.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 72ec97cac6..0b090e323c 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -2229,10 +2229,8 @@ gtk_window_buildable_add_child (GtkBuildable *buildable, { if (type && strcmp (type, "titlebar") == 0) gtk_window_set_titlebar (GTK_WINDOW (buildable), GTK_WIDGET (child)); - else if (!type) - gtk_container_add (GTK_CONTAINER (buildable), GTK_WIDGET (child)); else - GTK_BUILDER_WARN_INVALID_CHILD_TYPE (buildable, type); + parent_buildable_iface->add_child (buildable, builder, child, type); } static void |