summaryrefslogtreecommitdiff
path: root/client/gtk.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2011-08-16 17:54:17 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2011-08-16 17:54:17 +0200
commite0a1a9d739b6dd6ed50ae99dff79b4dc1477546c (patch)
tree655755a1b999e4374aff88bcd39fdd3c10dc0342 /client/gtk.c
parent2ca5fce42f687f74fde04a144fb27dd2fe9feb8a (diff)
downloadfribid-e0a1a9d739b6dd6ed50ae99dff79b4dc1477546c.tar.gz
fribid-e0a1a9d739b6dd6ed50ae99dff79b4dc1477546c.tar.bz2
fribid-e0a1a9d739b6dd6ed50ae99dff79b4dc1477546c.zip
Avoid deprecated GDK function. Fixes 64-bit problem
We disable prototypes of deprecated functions, so this function will get default return and parameters types of int. This is a problem on 64-bit platforms where int is smaller than a pointer. Thanks to Edward Tjörnhammar who discovered this problem.
Diffstat (limited to 'client/gtk.c')
-rw-r--r--client/gtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/gtk.c b/client/gtk.c
index 6c641b5..d003fa6 100644
--- a/client/gtk.c
+++ b/client/gtk.c
@@ -145,7 +145,7 @@ static void makeDialogTransient(GtkDialog *dialog, unsigned long parentWindowId)
bool transientOk = false;
if (parentWindowId != PLATFORM_NO_WINDOW) {
-#if GTK_CHECK_VERSION(3, 0, 0)
+#if GTK_CHECK_VERSION(2, 24, 0)
GdkDisplay *display = gdk_display_get_default();
GdkWindow *parent = gdk_x11_window_foreign_new_for_display(display,
(Window)parentWindowId);