From 469b3c47fce9ea13e50a4448064f97cf297452f8 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 27 May 2014 16:30:06 +0200 Subject: 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 --- capplets/keybindings/eggcellrendererkeys.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'capplets/keybindings/eggcellrendererkeys.c') diff --git a/capplets/keybindings/eggcellrendererkeys.c b/capplets/keybindings/eggcellrendererkeys.c index 9dffeda7..22ea7a79 100644 --- a/capplets/keybindings/eggcellrendererkeys.c +++ b/capplets/keybindings/eggcellrendererkeys.c @@ -320,11 +320,7 @@ static gboolean is_modifier(guint keycode) XModifierKeymap* mod_keymap; gboolean retval = FALSE; -#if GTK_CHECK_VERSION (3, 0, 0) mod_keymap = XGetModifierMapping(gdk_x11_display_get_xdisplay(gdk_display_get_default())); -#else - mod_keymap = XGetModifierMapping(gdk_display); -#endif map_size = 8 * mod_keymap->max_keypermod; i = 0; -- cgit v1.2.1