After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783081 - gdm: gdk deprecated warnings
gdm: gdk deprecated warnings
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2017-05-25 10:24 UTC by Jeremy Bicha
Modified: 2018-05-24 11:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Bicha 2017-05-25 10:24:51 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;
      ^~~~~~~~~~~~~~~~~
Comment 1 GNOME Infrastructure Team 2018-05-24 11:36:21 UTC
-- 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.