mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
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:
@ -394,17 +394,15 @@ try_pixmap_and_mask (MetaDisplay *display,
|
||||
|
||||
get_pixmap_geometry (display, src_pixmap, &w, &h, NULL);
|
||||
|
||||
unscaled = meta_gdk_pixbuf_get_from_pixmap (NULL,
|
||||
src_pixmap,
|
||||
0, 0, 0, 0,
|
||||
unscaled = meta_gdk_pixbuf_get_from_pixmap (src_pixmap,
|
||||
0, 0,
|
||||
w, h);
|
||||
|
||||
if (unscaled && src_mask != None)
|
||||
{
|
||||
get_pixmap_geometry (display, src_mask, &w, &h, NULL);
|
||||
mask = meta_gdk_pixbuf_get_from_pixmap (NULL,
|
||||
src_mask,
|
||||
0, 0, 0, 0,
|
||||
mask = meta_gdk_pixbuf_get_from_pixmap (src_mask,
|
||||
0, 0,
|
||||
w, h);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user