34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From c1e51ff81d0958ab86e11248339360b579a08b42 Mon Sep 17 00:00:00 2001
|
|
From: Lucas Rocha <lucasr@litl.com>
|
|
Date: Fri, 10 Sep 2010 16:22:09 +0000
|
|
Subject: Remove GDK_DISPLAY() usage
|
|
|
|
It has been removed from GDK 3.0.
|
|
|
|
http://bugzilla.clutter-project.org/show_bug.cgi?id=2308
|
|
---
|
|
diff --git a/clutter-gtk/gtk-clutter-util.c b/clutter-gtk/gtk-clutter-util.c
|
|
index 6d49b8f..1533247 100644
|
|
--- a/clutter-gtk/gtk-clutter-util.c
|
|
+++ b/clutter-gtk/gtk-clutter-util.c
|
|
@@ -588,7 +588,7 @@ post_parse_hook (GOptionContext *context,
|
|
{
|
|
#if defined(GDK_WINDOWING_X11)
|
|
/* share the X11 Display with GTK+ */
|
|
- clutter_x11_set_display (GDK_DISPLAY());
|
|
+ clutter_x11_set_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
|
|
|
|
/* let GTK+ in charge of the event handling */
|
|
clutter_x11_disable_event_retrieval ();
|
|
@@ -681,7 +681,7 @@ gtk_clutter_init (int *argc,
|
|
# endif
|
|
|
|
/* share the X11 Display with GTK+ */
|
|
- clutter_x11_set_display (GDK_DISPLAY());
|
|
+ clutter_x11_set_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
|
|
|
|
/* let GTK+ in charge of the event handling */
|
|
clutter_x11_disable_event_retrieval ();
|
|
--
|
|
cgit v0.8.3.1-30-gff3a
|