summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-17 13:43:34 +0100
committerStefano Karapetsas <[email protected]>2014-02-17 13:43:34 +0100
commit0e9de7f3cd814b0995aa10c33c91fe6b87be84ad (patch)
tree63a65137dd6b8c04ba63702fb767d10580fa3d3c
parent30b740a218b4249f397ef8695ceec1afa2da0897 (diff)
downloadmate-settings-daemon-0e9de7f3cd814b0995aa10c33c91fe6b87be84ad.tar.bz2
mate-settings-daemon-0e9de7f3cd814b0995aa10c33c91fe6b87be84ad.tar.xz
keybindings: Fix GTK3 support
-rw-r--r--plugins/keybindings/msd-keybindings-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/keybindings/msd-keybindings-manager.c b/plugins/keybindings/msd-keybindings-manager.c
index c554945..0e76920 100644
--- a/plugins/keybindings/msd-keybindings-manager.c
+++ b/plugins/keybindings/msd-keybindings-manager.c
@@ -424,7 +424,11 @@ get_exec_environment (XEvent *xevent)
GdkWindow *window = gdk_xid_table_lookup (xevent->xkey.root);
if (window) {
+#if GTK_CHECK_VERSION (3, 0, 0)
+ screen = gdk_window_get_screen (window);
+#else
screen = gdk_drawable_get_screen (GDK_DRAWABLE (window));
+#endif
}
g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);