[gnome-utils] screenshot: adapt for GDK backend API changes



commit 0c64a8af2ef6c0cf8b3ee4fef3bda39624a90797
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Dec 22 18:22:39 2010 +0100

    screenshot: adapt for GDK backend API changes

 gnome-screenshot/screenshot-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-screenshot/screenshot-utils.c b/gnome-screenshot/screenshot-utils.c
index c06980c..0a44be9 100644
--- a/gnome-screenshot/screenshot-utils.c
+++ b/gnome-screenshot/screenshot-utils.c
@@ -682,7 +682,7 @@ screenshot_get_pixbuf (GdkWindow    *window,
       wm = find_wm_window (xid);
 
       if (wm != None)
-        window = gdk_window_foreign_new (wm);
+        window = gdk_x11_window_foreign_new_for_display (gdk_window_get_display (window), wm);
 
       /* fallback to no border if we can't find the WM window. */
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]