[gtk+] label: Destroy the popup menu on unmap
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] label: Destroy the popup menu on unmap
- Date: Thu, 4 Aug 2016 11:32:45 +0000 (UTC)
commit 41c8446631066505b145914fe58fb84ff4fad997
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 342dadf..649ac2c 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]