GNOME Bugzilla – Bug 783081
gdm: gdk deprecated warnings
Last modified: 2018-05-24 11:36:21 UTC
gdm-screenshot.c: In function ‘screenshot_grab_lock’: gdm-screenshot.c:76:9: warning: ‘gdk_cursor_new’ is deprecated [-Wdeprecated-declarations] cursor = gdk_cursor_new (GDK_WATCH); ^~~~~~ In file included from /usr/include/gtk-3.0/gdk/gdk.h:34:0, from /usr/include/gtk-3.0/gtk/gtk.h:30, from gdm-screenshot.c:30: /usr/include/gtk-3.0/gdk/gdkcursor.h:228:12: note: declared here GdkCursor* gdk_cursor_new (GdkCursorType cursor_type); ^~~~~~~~~~~~~~ gdm-screenshot.c:77:9: warning: ‘gdk_pointer_grab’ is deprecated: Use 'gdk_device_grab' instead [-Wdeprecated-declarations] gdk_pointer_grab (gtk_widget_get_window (selection_window), FALSE, 0, NULL, ^~~~~~~~~~~~~~~~ In file included from /usr/include/gtk-3.0/gdk/gdk.h:50:0, from /usr/include/gtk-3.0/gtk/gtk.h:30, from gdm-screenshot.c:30: /usr/include/gtk-3.0/gdk/gdkmain.h:86:15: note: declared here GdkGrabStatus gdk_pointer_grab (GdkWindow *window, ^~~~~~~~~~~~~~~~ gdm-screenshot.c:79:9: warning: ‘gdk_cursor_unref’ is deprecated: Use 'g_object_unref' instead [-Wdeprecated-declarations] gdk_cursor_unref (cursor); ^~~~~~~~~~~~~~~~ In file included from /usr/include/gtk-3.0/gdk/gdk.h:34:0, from /usr/include/gtk-3.0/gtk/gtk.h:30, from gdm-screenshot.c:30: /usr/include/gtk-3.0/gdk/gdkcursor.h:247:13: note: declared here void gdk_cursor_unref (GdkCursor *cursor); ^~~~~~~~~~~~~~~~ gdm-screenshot.c: In function ‘screenshot_get_pixbuf’: gdm-screenshot.c:140:9: warning: ‘gdk_screen_width’ is deprecated [-Wdeprecated-declarations] if (x_orig + width > gdk_screen_width ()) { ^~ In file included from /usr/include/gtk-3.0/gdk/gdk.h:50:0, from /usr/include/gtk-3.0/gtk/gtk.h:30, from gdm-screenshot.c:30: /usr/include/gtk-3.0/gdk/gdkmain.h:108:6: note: declared here gint gdk_screen_width (void) G_GNUC_CONST; ^~~~~~~~~~~~~~~~ gdm-screenshot.c:141:17: warning: ‘gdk_screen_width’ is deprecated [-Wdeprecated-declarations] width = gdk_screen_width () - x_orig; ^~~~~ In file included from /usr/include/gtk-3.0/gdk/gdk.h:50:0, from /usr/include/gtk-3.0/gtk/gtk.h:30, from gdm-screenshot.c:30: /usr/include/gtk-3.0/gdk/gdkmain.h:108:6: note: declared here gint gdk_screen_width (void) G_GNUC_CONST; ^~~~~~~~~~~~~~~~ gdm-screenshot.c:143:9: warning: ‘gdk_screen_height’ is deprecated [-Wdeprecated-declarations] if (y_orig + height > gdk_screen_height ()) { ^~ In file included from /usr/include/gtk-3.0/gdk/gdk.h:50:0, from /usr/include/gtk-3.0/gtk/gtk.h:30, from gdm-screenshot.c:30: /usr/include/gtk-3.0/gdk/gdkmain.h:110:6: note: declared here gint gdk_screen_height (void) G_GNUC_CONST; ^~~~~~~~~~~~~~~~~ gdm-screenshot.c:144:17: warning: ‘gdk_screen_height’ is deprecated [-Wdeprecated-declarations] height = gdk_screen_height () - y_orig; ^~~~~~ In file included from /usr/include/gtk-3.0/gdk/gdk.h:50:0, from /usr/include/gtk-3.0/gtk/gtk.h:30, from gdm-screenshot.c:30: /usr/include/gtk-3.0/gdk/gdkmain.h:110:6: note: declared here gint gdk_screen_height (void) G_GNUC_CONST; ^~~~~~~~~~~~~~~~~
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdm/issues/315.