[gtk+/wip/baedert/gtkimageview: 135/135] label: Destroy the popup menu on unmap
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 135/135] label: Destroy the popup menu on unmap
- Date: Tue, 19 Jul 2016 12:52:12 +0000 (UTC)
commit 4887a7c55e563ba02f0fc6ff9d55fcb05bee90eb
Author: Timm Bäder <mail baedert org>
Date: Tue Jul 19 14:40:52 2016 +0200
label: Destroy the popup menu on unmap
gtk/gtklabel.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index dd2bbbf..d2ab388 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4578,7 +4578,15 @@ gtk_label_unmap (GtkWidget *widget)
GtkLabelPrivate *priv = label->priv;
if (priv->select_info)
- gdk_window_hide (priv->select_info->window);
+ {
+ gdk_window_hide (priv->select_info->window);
+
+ if (priv->select_info->popup_menu)
+ {
+ gtk_widget_destroy (priv->select_info->popup_menu);
+ priv->select_info->popup_menu = NULL;
+ }
+ }
GTK_WIDGET_CLASS (gtk_label_parent_class)->unmap (widget);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]