pidgin: 910544b6: gdk_display_get_name() and gdk_display_g...
nosnilmot at pidgin.im
nosnilmot at pidgin.im
Mon Mar 17 10:50:40 EDT 2008
-----------------------------------------------------------------
Revision: 910544b6e9a6c1733f750587f39ca84b1ffe58e1
Ancestor: c517bcc1f74ae9f98dc6a97dd08e1bf59367d843
Author: nosnilmot at pidgin.im
Date: 2008-03-17T14:35:33
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/910544b6e9a6c1733f750587f39ca84b1ffe58e1
Modified files:
pidgin/gtksession.c
ChangeLog:
gdk_display_get_name() and gdk_display_get_default() are new in Gtk 2.2
-------------- next part --------------
============================================================
--- pidgin/gtksession.c e46b17c200808da0adee7dcce6b62d9252c5b9ae
+++ pidgin/gtksession.c 1f591915c652f817e82ab6dd1f0d440402b1c0af
@@ -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 @@ static gchar **session_make_command(gcha
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;
More information about the Commits
mailing list