Hi Neil,
>
> With GTK+ on Ubuntu 17.10, a new warning has appeared during compilation of Scintilla.
You should also compile scintilla on the upcoming Fedora 27 release, which also produces a number of new warnings:
PlatGTK.cxx: In member function 'void Scintilla::Window::SetPositionRelative(Scintilla::PRectangle, Scintilla::Window)':
PlatGTK.cxx:1056:37: warning: 'gint gdk_screen_width()' is deprecated [-Wdeprecated-declarations]
int screenWidth = gdk_screen_width(); ^ In file included from /usr/include/gtk-3.0/gdk/gdk.h:50:0, from PlatGTK.cxx:19: /usr/include/gtk-3.0/gdk/gdkmain.h:108:6: note: declared here gint gdk_screen_width (void) G_GNUC_CONST; ^~~~~~~~~~~~~~~~
PlatGTK.cxx:1057:39: warning: 'gint gdk_screen_height()' is deprecated [-Wdeprecated-declarations]
int screenHeight = gdk_screen_height(); ^ In file included from /usr/include/gtk-3.0/gdk/gdk.h:50:0, from PlatGTK.cxx:19: /usr/include/gtk-3.0/gdk/gdkmain.h:110:6: note: declared here gint gdk_screen_height (void) G_GNUC_CONST; ^~~~~~~~~~~~~~~~~ PlatGTK.cxx: In member function 'Scintilla::PRectangle Scintilla::Window::GetMonitorRect(Scintilla::Point)':
PlatGTK.cxx:1158:88: warning: 'gint gdk_screen_get_monitor_at_point(GdkScreen*, gint, gint)' is deprecated: Use 'gdk_display_get_monitor_at_point' instead [-Wdeprecated-declarations]
monitor_num = gdk_screen_get_monitor_at_point(screen, pt.x + x_offset, pt.y + y_offset); ^ In file included from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31:0, from /usr/include/gtk-3.0/gdk/gdk.h:32, from PlatGTK.cxx:19: /usr/include/gtk-3.0/gdk/gdkscreen.h:87:15: note: declared here gint gdk_screen_get_monitor_at_point (GdkScreen *screen, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PlatGTK.cxx:1159:60: warning: 'void gdk_screen_get_monitor_geometry(GdkScreen*, gint, GdkRectangle*)' is deprecated: Use 'gdk_monitor_get_geometry' instead [-Wdeprecated-declarations]
gdk_screen_get_monitor_geometry(screen, monitor_num, &rect); ^ In file included from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31:0, from /usr/include/gtk-3.0/gdk/gdk.h:32, from PlatGTK.cxx:19: /usr/include/gtk-3.0/gdk/gdkscreen.h:78:14: note: declared here void gdk_screen_get_monitor_geometry (GdkScreen *screen, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PlatGTK.cxx: In member function 'void Scintilla::Menu::Show(Scintilla::Point, Scintilla::Window&)':
PlatGTK.cxx:1897:39: warning: 'gint gdk_screen_height()' is deprecated [-Wdeprecated-declarations]
int screenHeight = gdk_screen_height(); ^ In file included from /usr/include/gtk-3.0/gdk/gdk.h:50:0, from PlatGTK.cxx:19: /usr/include/gtk-3.0/gdk/gdkmain.h:110:6: note: declared here gint gdk_screen_height (void) G_GNUC_CONST; ^~~~~~~~~~~~~~~~~
PlatGTK.cxx:1898:37: warning: 'gint gdk_screen_width()' is deprecated [-Wdeprecated-declarations]
int screenWidth = gdk_screen_width(); ^ In file included from /usr/include/gtk-3.0/gdk/gdk.h:50:0, from PlatGTK.cxx:19: /usr/include/gtk-3.0/gdk/gdkmain.h:108:6: note: declared here gint gdk_screen_width (void) G_GNUC_CONST; ^~~~~~~~~~~~~~~~
PlatGTK.cxx:1915:31: warning: 'void gtk_menu_popup(GtkMenu*, GtkWidget*, GtkWidget*, GtkMenuPositionFunc, gpointer, guint, guint32)' is deprecated: Use '(gtk_menu_popup_at_widget, gtk_menu_popup_at_pointer, gtk_menu_popup_at_rect)' instead [-Wdeprecated-declarations]
gtk_get_current_event_time()); ^ In file included from /usr/include/gtk-3.0/gtk/gtklabel.h:34:0, from /usr/include/gtk-3.0/gtk/gtkaccellabel.h:35, from /usr/include/gtk-3.0/gtk/gtk.h:33, from PlatGTK.cxx:20: /usr/include/gtk-3.0/gtk/gtkmenu.h:138:9: note: declared here void gtk_menu_popup (GtkMenu *menu, ^~~~~~~~~~~~~~ At global scope:
cc1plus: warning: unrecognized command line option '-Wno-deprecated-register'
and more (like implicit fall-through warnings).
Mike
--
www.soft-gems.net