notebook: Avoid a crash
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 23:00:35 +0000 (19:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 23:00:35 +0000 (19:00 -0400)
This is fallout from turning the menu into
a popover, causing it to be be a child.

gtk/gtknotebook.c

index 2082a1038a945e0c342d7875dcf5d2f940a0a3b5..3c1509317f66b62417e41e48af315b2d22d8c491 100644 (file)
@@ -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);