diff options
author | Laszlo Boros <[email protected]> | 2013-10-26 14:27:58 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-26 14:27:58 +0200 |
commit | 35d540dd3c9269ec39bf3bc10a98b9714963291b (patch) | |
tree | ae76b286839a6d3a6ebe309bdb7884bd35a3698d /src/wm-tester | |
parent | 46ba8ca5fc9665c1a4758e56fda6761ac993c62e (diff) | |
download | marco-35d540dd3c9269ec39bf3bc10a98b9714963291b.tar.bz2 marco-35d540dd3c9269ec39bf3bc10a98b9714963291b.tar.xz |
Starting to add GTK3 support
Diffstat (limited to 'src/wm-tester')
-rw-r--r-- | src/wm-tester/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 ()), |