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/about-me/e-image-chooser.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'capplets/about-me/e-image-chooser.c') diff --git a/capplets/about-me/e-image-chooser.c b/capplets/about-me/e-image-chooser.c index c9f35fc2..8a404ee8 100644 --- a/capplets/about-me/e-image-chooser.c +++ b/capplets/about-me/e-image-chooser.c @@ -281,11 +281,7 @@ image_drag_motion_cb (GtkWidget *widget, if (!chooser->priv->editable) return FALSE; -#if GTK_CHECK_VERSION (3, 0, 0) for (p = gdk_drag_context_list_targets (context); p; p = p->next) { -#else - for (p = context->targets; p != NULL; p = p->next) { -#endif char *possible_type; possible_type = gdk_atom_name (GDK_POINTER_TO_ATOM (p->data)); @@ -311,19 +307,11 @@ image_drag_drop_cb (GtkWidget *widget, if (!chooser->priv->editable) return FALSE; -#if GTK_CHECK_VERSION (3, 0, 0) if (gdk_drag_context_list_targets (context) == NULL) { -#else - if (context->targets == NULL) { -#endif return FALSE; } -#if GTK_CHECK_VERSION (3, 0, 0) for (p = gdk_drag_context_list_targets (context); p; p = p->next) { -#else - for (p = context->targets; p != NULL; p = p->next) { -#endif char *possible_type; possible_type = gdk_atom_name (GDK_POINTER_TO_ATOM (p->data)); -- cgit v1.2.1