diff options
author | Stefano Karapetsas <[email protected]> | 2013-07-26 15:29:18 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-07-26 15:29:18 +0200 |
commit | 22223bf64027da1dbfb8435a7e410f146a94bbd8 (patch) | |
tree | ce53d0ef7777cf07dd3e8ef9326f2b315d063310 /mate-session/test-inhibit.c | |
parent | be18c20c9ec7de9a18e9bec1bb076c092ecc8a31 (diff) | |
download | mate-session-manager-22223bf64027da1dbfb8435a7e410f146a94bbd8.tar.bz2 mate-session-manager-22223bf64027da1dbfb8435a7e410f146a94bbd8.tar.xz |
mate-session: Add support for GTK3
Diffstat (limited to 'mate-session/test-inhibit.c')
-rw-r--r-- | mate-session/test-inhibit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-session/test-inhibit.c b/mate-session/test-inhibit.c index d314d9d..3e05750 100644 --- a/mate-session/test-inhibit.c +++ b/mate-session/test-inhibit.c @@ -93,7 +93,12 @@ 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 | GSM_INHIBITOR_FLAG_SUSPEND; |