]> Pileus Git - ~andy/gtk/commitdiff
Remove GDK_DISPLAY() usage
authorMatthias Clasen <mclasen@redhat.com>
Fri, 10 Sep 2010 01:55:28 +0000 (21:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 10 Sep 2010 01:55:28 +0000 (21:55 -0400)
docs/tools/shooter.c
docs/tools/widgets.c

index 0ed618262768bf2eaaf91547d048045b579c1b50..d73117bcc9b92dfcd9d2057d2041df9c80b8d957 100644 (file)
@@ -33,7 +33,7 @@ find_toplevel_window (Window xid)
 
   do
     {
-      if (XQueryTree (GDK_DISPLAY (), xid, &root,
+      if (XQueryTree (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), xid, &root,
                      &parent, &children, &nchildren) == 0)
        {
          g_warning ("Couldn't find window manager window");
@@ -82,7 +82,7 @@ remove_shaped_area (GdkPixbuf *pixbuf,
                           gdk_pixbuf_get_height (pixbuf));
   
   gdk_pixbuf_fill (retval, 0);
-  rectangles = XShapeGetRectangles (GDK_DISPLAY (), window,
+  rectangles = XShapeGetRectangles (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), window,
                                    ShapeBounding, &rectangle_count, &rectangle_order);
 
   for (i = 0; i < rectangle_count; i++)
@@ -130,7 +130,7 @@ take_window_shot (Window   child,
   GdkPixbuf *tmp, *tmp2;
   GdkPixbuf *retval;
 
-  disp = GDK_DISPLAY ();
+  disp = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
   w = GDK_ROOT_WINDOW ();
 
   if (include_decoration)
index e30f3919e2ea645980fcdb1ad56d97517f712a11..1b1d8243530b36a0806a1de3c63c6016b16b5de2 100644 (file)
@@ -21,7 +21,7 @@ find_toplevel_window (Window xid)
 
   do
     {
-      if (XQueryTree (GDK_DISPLAY (), xid, &root,
+      if (XQueryTree (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), xid, &root,
                      &parent, &children, &nchildren) == 0)
        {
          g_warning ("Couldn't find window manager window");