mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Fix deprecation warnings
This commit is contained in:
parent
4c8fcd6a6f
commit
5aedfe048b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user