diff options
author | infirit <[email protected]> | 2014-05-27 16:30:06 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-05-27 16:30:06 +0200 |
commit | 469b3c47fce9ea13e50a4448064f97cf297452f8 (patch) | |
tree | 64f7c20f6b55b3e3811103c7571292194864eb7f /typing-break | |
parent | 13d0f05fb98284839d1dea3fc667903c8a82a40b (diff) | |
download | mate-control-center-469b3c47fce9ea13e50a4448064f97cf297452f8.tar.bz2 mate-control-center-469b3c47fce9ea13e50a4448064f97cf297452f8.tar.xz |
Cleanup GTK_CHECK_VERSION and unify where possible
gdk_display_get_default | since 2.2
gdk_x11_display_get_xdisplay | since 2.2
gdk_drag_context_list_targets | since 2.22
gdk_x11_window_foreign_new_for_display | since 2.24
gdk_drawable_get_screen | since 2.24
gtk_widget_hide | always
Diffstat (limited to 'typing-break')
-rw-r--r-- | typing-break/drw-selection.c | 4 | ||||
-rw-r--r-- | typing-break/main.c | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/typing-break/drw-selection.c b/typing-break/drw-selection.c index 5f6b81f7..48b7db55 100644 --- a/typing-break/drw-selection.c +++ b/typing-break/drw-selection.c @@ -78,11 +78,7 @@ drw_selection_find_existing (DrwSelection *drw_selection) gdk_x11_get_xatom_by_name (SELECTION_NAME)); if (old) { XSelectInput (xdisplay, old, StructureNotifyMask); -#if GTK_CHECK_VERSION (3, 0, 0) drw_selection->owner_window = gdk_x11_window_foreign_new_for_display (gdk_display_get_default (), old); -#else - drw_selection->owner_window = gdk_window_foreign_new (old); -#endif } XSync (xdisplay, False); diff --git a/typing-break/main.c b/typing-break/main.c index 9186915b..b0b50405 100644 --- a/typing-break/main.c +++ b/typing-break/main.c @@ -35,11 +35,7 @@ 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; |