Adapt to GTK API changes

This code adapts mutter to the latest changes to GTK in
http://git.gnome.org/browse/gtk+/commit/?id=872ef111ecabf6cd4453590b1e17afd3c9757f28
that remove the dest argument from gdk_pixbuf_get_from_window() and
gdk_pixbuf_get_from_surface().

It also removes the dest argument from meta_gdk_pixbuf_get_from_pixmap()
to match. The function is internal and the argument wasn't used.

https://bugzilla.gnome.org/show_bug.cgi?id=631147
This commit is contained in:
Benjamin Otte
2010-10-02 03:40:15 +02:00
parent c382d8f7ea
commit 33489c8cb8
5 changed files with 14 additions and 28 deletions

View File

@@ -54,8 +54,8 @@ get_pixbuf (void)
last_grab_width, last_grab_height);
#endif
screenshot = gdk_pixbuf_get_from_window (NULL, gdk_get_default_root_window (),
last_grab_x, last_grab_y, 0, 0,
screenshot = gdk_pixbuf_get_from_window (gdk_get_default_root_window (),
last_grab_x, last_grab_y,
last_grab_width, last_grab_height);
if (screenshot == NULL)