From 104168b917dc1eaf344597fade714d091fa678c0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 18 Jan 2015 13:51:08 -0500 Subject: Refuse to add popovers to another containers It doesn't make sense to allow this. --- plugins/gtk+/glade-gtk-container.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/gtk+/glade-gtk-container.c b/plugins/gtk+/glade-gtk-container.c index fe9f9b88..753eca69 100644 --- a/plugins/gtk+/glade-gtk-container.c +++ b/plugins/gtk+/glade-gtk-container.c @@ -57,6 +57,15 @@ glade_gtk_container_add_verify (GladeWidgetAdaptor *adaptor, GLADE_UI_INFO, NULL, _("Cannot add a toplevel window to a container.")); + return FALSE; + } + else if (GTK_IS_POPOVER (child)) + { + if (user_feedback) + glade_util_ui_message (glade_app_get_window (), + GLADE_UI_INFO, NULL, + _("Cannot add a popover to a container.")); + return FALSE; } else if (!GTK_IS_WIDGET (child) || -- cgit v1.2.1