[gedit] ViewFrame: do not leak the popup menu
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] ViewFrame: do not leak the popup menu
- Date: Wed, 13 Jan 2016 16:03:45 +0000 (UTC)
commit 9d0e323f584fa24e0d87c6fdde965a512c14b7f3
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Jan 13 16:54:58 2016 +0100
ViewFrame: do not leak the popup menu
gedit/gedit-view-frame.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index cd158ab..a7e686e 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -910,6 +910,11 @@ search_entry_icon_release (GtkEntry *entry,
setup_popup_menu (frame, menu);
add_popup_menu_items (frame, menu);
+ g_signal_connect (menu,
+ "selection-done",
+ G_CALLBACK (gtk_widget_destroy),
+ NULL);
+
gtk_menu_popup (GTK_MENU (menu),
NULL, NULL,
gedit_utils_menu_position_under_widget, entry,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]