mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
label: Destroy the popup menu on unmap
This commit is contained in:
parent
6107e50c98
commit
41c8446631
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user