From 7e8393ba0f6b8b9debc5b36ba69abed30e709c28 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 27 Dec 2019 08:47:33 -0500 Subject: [PATCH] widget: Remove menu special-casing --- gtk/gtkwidget.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index c1bd09842e..b939567dbc 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -11891,10 +11891,7 @@ gtk_widget_get_parent_muxer (GtkWidget *widget, if (GTK_IS_WINDOW (widget)) return gtk_application_get_parent_muxer_for_window (GTK_WINDOW (widget)); - if (GTK_IS_MENU (widget)) - parent = gtk_menu_get_attach_widget (GTK_MENU (widget)); - else - parent = _gtk_widget_get_parent (widget); + parent = _gtk_widget_get_parent (widget); if (parent) return _gtk_widget_get_action_muxer (parent, create);