diff options
author | Martin Wimpress <[email protected]> | 2017-01-18 14:39:59 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2017-01-18 14:39:59 +0000 |
commit | 00b0f944837025b61bdffd893d4614ed1d5e7dde (patch) | |
tree | 41a3450d67f77f98b4b70392eec923ea54013cc0 /src/mate-screensaver-gl-helper.c | |
parent | 2197434c213600c42b264602c4331eac7761db11 (diff) | |
parent | 5d4416aa5853de486e62ca97207ee1da4b35b199 (diff) | |
download | mate-screensaver-00b0f944837025b61bdffd893d4614ed1d5e7dde.tar.bz2 mate-screensaver-00b0f944837025b61bdffd893d4614ed1d5e7dde.tar.xz |
Merge pull request #110 from XRevan86/master
Avoid deprecated gdk_window_set_background functions
Diffstat (limited to 'src/mate-screensaver-gl-helper.c')
-rw-r--r-- | src/mate-screensaver-gl-helper.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mate-screensaver-gl-helper.c b/src/mate-screensaver-gl-helper.c index acf23ef..472aefd 100644 --- a/src/mate-screensaver-gl-helper.c +++ b/src/mate-screensaver-gl-helper.c @@ -35,7 +35,6 @@ main (int argc, char **argv) { GdkDisplay *display; - GdkScreen *screen; GdkVisual *visual; Visual *xvisual; GError *error = NULL; @@ -64,8 +63,7 @@ main (int argc, } display = gdk_display_get_default (); - screen = gdk_display_get_default_screen (display); - visual = gs_visual_gl_get_best_for_screen (screen); + visual = gs_visual_gl_get_best_for_display (display); if (visual != NULL) { |