[gtk] notebook: Avoid a crash
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] notebook: Avoid a crash
- Date: Sat, 12 Oct 2019 23:02:01 +0000 (UTC)
commit acb7f437fa759e1d95b45b07830a1ed99fd9d244
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 12 19:00:35 2019 -0400
notebook: Avoid a crash
This is fallout from turning the menu into
a popover, causing it to be be a child.
gtk/gtknotebook.c | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 2082a1038a..3c1509317f 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -1858,9 +1858,6 @@ gtk_notebook_destroy (GtkWidget *widget)
if (priv->pages)
g_list_model_items_changed (G_LIST_MODEL (priv->pages), 0, g_list_length (priv->children), 0);
- if (priv->menu)
- gtk_notebook_popup_disable (notebook);
-
if (priv->source_targets)
{
gdk_content_formats_unref (priv->source_targets);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]