From 7fbe52f835688967a6079582ed8839cb55d0f9ea Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 17 Mar 2021 13:34:55 +1100 Subject: Make Window argument to Menu::Show const as that avoids warnings and the Window is not altered by showing a menu. --- gtk/PlatGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index e3820aec4..b9b9ab029 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1930,7 +1930,7 @@ static void MenuPositionFunc(GtkMenu *, gint *x, gint *y, gboolean *, gpointer u } #endif -void Menu::Show(Point pt, Window &w) { +void Menu::Show(Point pt, const Window &w) { GtkMenu *widget = static_cast(mid); gtk_widget_show_all(GTK_WIDGET(widget)); #if GTK_CHECK_VERSION(3,22,0) -- cgit v1.2.3