Neil Hodgson
unread,Nov 24, 2016, 5:35:57 PM11/24/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Scintilla mailing list
There are some new deprecations with GTK+ 3.22 mostly for screen-oriented functions which I expect are going away due to Wayland. While I’ll eventually get around to fixing these, help would be appreciated. Just working out what the replacement function is can take some time. GTK+ 3.22 is the version of GTK+ used by Fedora 25.
Functions that are deprecated and used in Scintilla:
gdk_screen_width
gdk_screen_height
gdk_screen_get_monitor_at_point
gdk_screen_get_monitor_geometry
gtk_menu_popup
gdk_window_set_background_pattern
Some of the warnings:
PlatGTK.cxx: In member function 'void Window::SetPositionRelative(PRectangle, Window)':
PlatGTK.cxx:1051:20: 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:1052:21: 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 'PRectangle Window::GetMonitorRect(Point)':
PlatGTK.cxx:1153:16: 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:1154:2: 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:1908:2: 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_menu_popup(widget, NULL, NULL, MenuPositionFunc,
^~~~~~~~~~~~~~
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,
^~~~~~~~~~~~~~
ScintillaGTK.cxx: In static member function 'static void ScintillaGTK::RealizeText(GtkWidget*, void*)':
ScintillaGTK.cxx:2392:3: warning: 'void gdk_window_set_background_pattern(GdkWindow*, cairo_pattern_t*)' is deprecated [-Wdeprecated-declarations]
gdk_window_set_background_pattern(WindowFromWidget(widget), NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkseat.h:28:0,
from /usr/include/gtk-3.0/gdk/gdkdisplay.h:33,
from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from ScintillaGTK.cxx:22:
/usr/include/gtk-3.0/gdk/gdkwindow.h:781:12: note: declared here
void gdk_window_set_background_pattern (GdkWindow *window,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Neil