[mousetweaks] Use gdk_display_get_default instead of GDK_DISPLAY
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetweaks] Use gdk_display_get_default instead of GDK_DISPLAY
- Date: Wed, 6 Oct 2010 21:50:13 +0000 (UTC)
commit fa1321f4bfe421837fc7a49b1e48d64383315d37
Author: Javier Jardón <jjardon gnome org>
Date: Wed Oct 6 23:49:23 2010 +0200
Use gdk_display_get_default instead of GDK_DISPLAY
GDK_DISPLAY() was deprecated in GTK+ 2.22 and removed in GTK+ 3.
src/mt-cursor-manager.c | 2 +-
src/mt-listener.c | 2 +-
src/mt-main.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/mt-cursor-manager.c b/src/mt-cursor-manager.c
index b32b9ef..03f204d 100644
--- a/src/mt-cursor-manager.c
+++ b/src/mt-cursor-manager.c
@@ -54,7 +54,7 @@ G_DEFINE_TYPE (MtCursorManager, mt_cursor_manager, G_TYPE_OBJECT)
static Display *
mt_cursor_manager_display (void)
{
- return GDK_DISPLAY ();
+ return GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
}
static void
diff --git a/src/mt-listener.c b/src/mt-listener.c
index 1d4978d..af30b80 100644
--- a/src/mt-listener.c
+++ b/src/mt-listener.c
@@ -160,7 +160,7 @@ mt_listener_emit_motion_event (MtListener *listener,
static Display *
mt_listener_display (void)
{
- return GDK_DISPLAY ();
+ return GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
}
static gboolean
diff --git a/src/mt-main.c b/src/mt-main.c
index 46faff6..5b66f56 100644
--- a/src/mt-main.c
+++ b/src/mt-main.c
@@ -64,7 +64,7 @@ typedef struct _MtCliArgs
static Display *
mt_main_display (void)
{
- return GDK_DISPLAY ();
+ return GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
}
static GdkScreen *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]