aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-17 13:34:55 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-17 13:34:55 +1100
commit7fbe52f835688967a6079582ed8839cb55d0f9ea (patch)
tree0dc8c1b28dd541c84c7dd10114618be930a0afdd /gtk/PlatGTK.cxx
parent907c32f8149ec13c39c90424cfed018b2b1eac87 (diff)
downloadscintilla-mirror-7fbe52f835688967a6079582ed8839cb55d0f9ea.tar.gz
Make Window argument to Menu::Show const as that avoids warnings and the Window
is not altered by showing a menu.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rwxr-xr-xgtk/PlatGTK.cxx2
1 files changed, 1 insertions, 1 deletions
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<GtkMenu *>(mid);
gtk_widget_show_all(GTK_WIDGET(widget));
#if GTK_CHECK_VERSION(3,22,0)