widget: Remove menu special-casing

This commit is contained in:
Matthias Clasen 2019-12-27 08:47:33 -05:00
parent 9e15f3df75
commit 7e8393ba0f

View File

@ -11891,9 +11891,6 @@ gtk_widget_get_parent_muxer (GtkWidget *widget,
if (GTK_IS_WINDOW (widget)) if (GTK_IS_WINDOW (widget))
return gtk_application_get_parent_muxer_for_window (GTK_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) if (parent)