summaryrefslogtreecommitdiff
path: root/typing-break/main.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-04 19:20:19 +0100
committerStefano Karapetsas <[email protected]>2014-02-04 19:20:19 +0100
commit6965a1269bc83414f78d82baa4202e8f6f4669c9 (patch)
tree9540bb61faa322ca7b9026f0273222be02b0d8c8 /typing-break/main.c
parentd6d686e6af7d95284e4a35b6d4d19a3209252777 (diff)
downloadmate-control-center-6965a1269bc83414f78d82baa4202e8f6f4669c9.tar.bz2
mate-control-center-6965a1269bc83414f78d82baa4202e8f6f4669c9.tar.xz
typing-break: Add GTK3 support
Diffstat (limited to 'typing-break/main.c')
-rw-r--r--typing-break/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/typing-break/main.c b/typing-break/main.c
index c8ded7bb..dcc1d89f 100644
--- a/typing-break/main.c
+++ b/typing-break/main.c
@@ -35,7 +35,11 @@ gboolean debug = FALSE;
static gboolean
have_tray (void)
{
+#if GTK_CHECK_VERSION (3, 0, 0)
+ Screen *xscreen = DefaultScreenOfDisplay (gdk_x11_display_get_xdisplay(gdk_display_get_default()));
+#else
Screen *xscreen = DefaultScreenOfDisplay (gdk_display);
+#endif
Atom selection_atom;
char *selection_atom_name;