Fix deprecation warnings

This commit is contained in:
Matthias Clasen 2018-12-12 12:45:37 -05:00
parent 4c8fcd6a6f
commit 5aedfe048b

View File

@ -170,10 +170,10 @@ take_window_shot (Window child,
y_orig = 0;
}
if (x_orig + width > gdk_screen_width ())
if (x_orig + width > gdk_screen_get_width (gdk_screen_get_dfeault ()))
width = gdk_screen_width () - x_orig;
if (y_orig + height > gdk_screen_height ())
if (y_orig + height > gdk_screen_get_height (gdk_screen_get_default ()))
height = gdk_screen_height () - y_orig;
tmp = gdk_pixbuf_get_from_window (window,