summaryrefslogtreecommitdiff
path: root/clutter-gtk
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-09-16 14:47:18 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-09-16 14:47:18 +0100
commitf41485016c73354768b1db52fff5ec0ef36c02ea (patch)
tree449f59fc57e14bfad4bc953219178c3d7d885e0c /clutter-gtk
parent4409bbe7ac361898d31735001b56e65d5f4d829d (diff)
downloadclutter-gtk-f41485016c73354768b1db52fff5ec0ef36c02ea.tar.gz
Remove GDK_DISPLAY macro usage
The macro has been deprecated and it should not be used.
Diffstat (limited to 'clutter-gtk')
-rw-r--r--clutter-gtk/gtk-clutter-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clutter-gtk/gtk-clutter-util.c b/clutter-gtk/gtk-clutter-util.c
index d075cfb..8cf4116 100644
--- a/clutter-gtk/gtk-clutter-util.c
+++ b/clutter-gtk/gtk-clutter-util.c
@@ -622,7 +622,7 @@ gtk_clutter_init (int *argc,
return CLUTTER_INIT_ERROR_GTK;
#if defined(HAVE_CLUTTER_GTK_X11)
- clutter_x11_set_display (GDK_DISPLAY());
+ clutter_x11_set_display (gdk_x11_display_get_xdisplay (gdk_display_get_default ()));
clutter_x11_disable_event_retrieval ();
#elif defined(HAVE_CLUTTER_GTK_WIN32)
clutter_win32_disable_event_retrieval ();
@@ -686,7 +686,7 @@ gtk_clutter_init_with_args (int *argc,
return CLUTTER_INIT_ERROR_GTK;
#if defined(GDK_WINDOWING_X11)
- clutter_x11_set_display (GDK_DISPLAY());
+ clutter_x11_set_display (gdk_x11_display_get_xdisplay (gdk_display_get_default ()));
clutter_x11_disable_event_retrieval ();
#elif defined(GDK_WINDOWING_WIN32)
clutter_win32_disable_event_retrieval ();