[gtk/kill-tree-menu: 38/51] widget: Remove menu special-casing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-tree-menu: 38/51] widget: Remove menu special-casing
- Date: Sun, 29 Dec 2019 22:16:40 +0000 (UTC)
commit 11f10b0c0435045aad94ec8c97d7ba98b9261722
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 27 08:47:33 2019 -0500
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]