summaryrefslogtreecommitdiff
path: root/mate-session/test-inhibit.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-05-17 14:08:57 +0300
committermonsta <[email protected]>2016-05-17 14:08:57 +0300
commite670e05cb08c66da2838abe2608cfccb8b09fafd (patch)
treef823fc1a2ee1d1beaade9c8805b60939f1ba874c /mate-session/test-inhibit.c
parentb17f0ae827ae6f0e949dda38a40ae72d822603b5 (diff)
downloadmate-session-manager-e670e05cb08c66da2838abe2608cfccb8b09fafd.tar.bz2
mate-session-manager-e670e05cb08c66da2838abe2608cfccb8b09fafd.tar.xz
require GTK+ >= 3.14, drop GTK+2 code and --with-gtk build option
Diffstat (limited to 'mate-session/test-inhibit.c')
-rw-r--r--mate-session/test-inhibit.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mate-session/test-inhibit.c b/mate-session/test-inhibit.c
index fdc0744..45771e0 100644
--- a/mate-session/test-inhibit.c
+++ b/mate-session/test-inhibit.c
@@ -93,11 +93,7 @@ do_inhibit_for_window (GdkWindow *window)
app_id = "caja";
reason = "A file transfer is in progress.";
#endif
-#if GTK_CHECK_VERSION (3, 0, 0)
toplevel_xid = gdk_x11_window_get_xid (window);
-#else
- toplevel_xid = GDK_DRAWABLE_XID (window);
-#endif
flags = GSM_INHIBITOR_FLAG_LOGOUT
| GSM_INHIBITOR_FLAG_SWITCH_USER