[totem/gnome-2-32] Fix two more occurrences of GDK_DISPLAY



commit 26bbd5ff83c138114443773cd2eef840c1d0923a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Sep 16 01:18:28 2010 +0100

    Fix two more occurrences of GDK_DISPLAY
    
    Closes: bgo#629758

 .../bacon-video-widget-gst-missing-plugins.c       |    2 +-
 src/totem-interface.c                              |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-missing-plugins.c b/src/backend/bacon-video-widget-gst-missing-plugins.c
index e762de3..0c0d3ef 100644
--- a/src/backend/bacon-video-widget-gst-missing-plugins.c
+++ b/src/backend/bacon-video-widget-gst-missing-plugins.c
@@ -71,7 +71,7 @@ bacon_video_widget_gtk_plug_get_toplevel (GtkPlug *plug)
 	do
 	{
 		/* FIXME: multi-head */
-		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");
diff --git a/src/totem-interface.c b/src/totem-interface.c
index c877cb6..895d130 100644
--- a/src/totem-interface.c
+++ b/src/totem-interface.c
@@ -275,7 +275,7 @@ totem_gtk_plug_get_toplevel (GtkPlug *plug)
 	do
 	{
 		/* FIXME: multi-head */
-		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");



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