changeset 22490:d128201714e9

gdk_display_get_name() and gdk_display_get_default() are new in Gtk 2.2
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 17 Mar 2008 14:35:33 +0000
parents 2f88870f86bf
children 566a805a5bd4 d536700e73e1
files pidgin/gtksession.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksession.c	Mon Mar 17 14:30:30 2008 +0000
+++ b/pidgin/gtksession.c	Mon Mar 17 14:35:33 2008 +0000
@@ -37,6 +37,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <gdk/gdk.h>
+#include <gtk/gtk.h>
 
 #define ERROR_LENGTH 512
 
@@ -162,8 +163,10 @@
 		ret[j++] = g_strdup(config_dir);
 	}
 
+#if GTK_CHECK_VERSION(2,2,0)
 	ret[j++] = g_strdup("--display");
 	ret[j++] = g_strdup((gchar *)gdk_display_get_name(gdk_display_get_default()));
+#endif
 
 	ret[j++] = NULL;