summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-11-20 15:30:29 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-11-20 15:31:00 -0500
commit68d77b1823e0caa7236c89cd72421dd884bdbc95 (patch)
tree2abb9ac6745b0b85670b18036dc41e6e209aab4e
parent159a13a065bf1c2ee490cca6c897ce47949ccf7c (diff)
downloadgtk+-68d77b1823e0caa7236c89cd72421dd884bdbc95.tar.gz
Expand the container_remove hack
Make it possible to use gtk_container_remove on GtkShortcutsWindow. glade needs this.
-rw-r--r--gtk/gtkcontainer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 9c4b81d70a..48d1644995 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -52,6 +52,7 @@
#include "a11y/gtkcontaineraccessible.h"
#include "a11y/gtkcontaineraccessibleprivate.h"
#include "gtkpopovermenu.h"
+#include "gtkshortcutswindow.h"
/**
* SECTION:gtkcontainer
@@ -1894,7 +1895,8 @@ gtk_container_remove (GtkContainer *container,
g_return_if_fail (_gtk_widget_get_parent (widget) == GTK_WIDGET (container) ||
GTK_IS_ASSISTANT (container) ||
GTK_IS_ACTION_BAR (container) ||
- GTK_IS_POPOVER_MENU (container));
+ GTK_IS_POPOVER_MENU (container) ||
+ GTK_IS_SHORTCUTS_WINDOW (container));
g_object_ref (container);
g_object_ref (widget);