[gtk+/gtk-3-22] modelbutton: set_relative_to(NULL) the popover in dispose
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] modelbutton: set_relative_to(NULL) the popover in dispose
- Date: Fri, 6 Oct 2017 23:47:38 +0000 (UTC)
commit 13c63106889b847be8068137d00c2d7e2d6cfca5
Author: Timm Bäder <mail baedert org>
Date: Fri Oct 6 17:35:28 2017 +0200
modelbutton: set_relative_to(NULL) the popover in dispose
We do set_relative_to(menu_button) when creating it so we should do this
here (or nothing).
gtk/gtkmenubutton.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index 9a2115e..2b04b6d 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -1039,7 +1039,7 @@ gtk_menu_button_dispose (GObject *object)
if (priv->popover)
{
- gtk_widget_destroy (priv->popover);
+ gtk_popover_set_relative_to (GTK_POPOVER (priv->popover), NULL);
priv->popover = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]