[gtk+] Make gtk_container_remove work on popover menus
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make gtk_container_remove work on popover menus
- Date: Sun, 16 Nov 2014 07:30:59 +0000 (UTC)
commit ecfcb3e2cc09297c48622a5aa293bd5fac2979cf
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 16 02:27:20 2014 -0500
Make gtk_container_remove work on popover menus
Extend the hack we have in place for composite containers to
GtkPopoverMenu.
gtk/gtkcontainer.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index ffcd09f..0d7c7cd 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -1722,7 +1722,10 @@ gtk_container_remove (GtkContainer *container,
{
g_return_if_fail (GTK_IS_CONTAINER (container));
g_return_if_fail (GTK_IS_WIDGET (widget));
- g_return_if_fail (gtk_widget_get_parent (widget) == GTK_WIDGET (container) || GTK_IS_ASSISTANT (container)
|| GTK_IS_ACTION_BAR (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));
g_object_ref (container);
g_object_ref (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]