From 35d540dd3c9269ec39bf3bc10a98b9714963291b Mon Sep 17 00:00:00 2001 From: Laszlo Boros Date: Sat, 26 Oct 2013 14:27:58 +0200 Subject: Starting to add GTK3 support --- src/wm-tester/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/wm-tester') diff --git a/src/wm-tester/main.c b/src/wm-tester/main.c index 50bb85fc..48a23a06 100644 --- a/src/wm-tester/main.c +++ b/src/wm-tester/main.c @@ -120,6 +120,10 @@ evil_timeout (gpointer data) w = gtk_window_new (GTK_WINDOW_TOPLEVEL); + #if GTK_CHECK_VERSION(3, 0, 0) + #define gtk_widget_set_uposition gtk_window_move + #endif + gtk_widget_set_uposition (w, g_random_int_range (0, gdk_screen_width ()), -- cgit v1.2.1