[gtk+/wip/baedert/gtk-widget-destroy: 149/149] textview: Fix popup menu refcounting
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtk-widget-destroy: 149/149] textview: Fix popup menu refcounting
- Date: Sat, 7 Oct 2017 06:04:48 +0000 (UTC)
commit b27efa61bfab72d3e1fc92b5cebf3ba7ddf273cd
Author: Timm Bäder <mail baedert org>
Date: Thu Sep 28 11:01:05 2017 +0200
textview: Fix popup menu refcounting
gtk/gtktextview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index d757b22..35be695 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -9265,7 +9265,7 @@ popup_targets_received (GtkClipboard *clipboard,
clipboard_contains_text = gtk_selection_data_targets_include_text (data);
if (priv->popup_menu)
- g_object_unref (G_OBJECT (priv->popup_menu));
+ gtk_menu_detach (GTK_MENU (priv->popup_menu));
priv->popup_menu = gtk_menu_new ();
gtk_style_context_add_class (gtk_widget_get_style_context (priv->popup_menu),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]