From 764836d36a1391ed0bc03841c68ed768e7ec94b6 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 31 Mar 2010 15:51:45 +0000 Subject: Bump GTK+ requirements to 2.20.0 Remove GTK_CHECK_VERSION macros and unneeded code. --- (limited to 'shell/ev-sidebar-attachments.c') diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c index aaaea31..60c7ae0 100644 --- a/shell/ev-sidebar-attachments.c +++ b/shell/ev-sidebar-attachments.c @@ -534,12 +534,6 @@ ev_sidebar_attachments_class_init (EvSidebarAttachmentsClass *ev_attachbar_class static void ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar) { -#if !GTK_CHECK_VERSION (2, 15, 0) - const GtkTargetEntry drag_targets[] = { - { "text/uri-list", 0, 0 } - }; -#endif - GtkWidget *swindow; ev_attachbar->priv = EV_SIDEBAR_ATTACHMENTS_GET_PRIVATE (ev_attachbar); @@ -589,21 +583,12 @@ ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar) g_object_unref); /* Drag and Drop */ -#if GTK_CHECK_VERSION (2, 15, 0) gtk_icon_view_enable_model_drag_source ( GTK_ICON_VIEW (ev_attachbar->priv->icon_view), GDK_BUTTON1_MASK, NULL, 0, GDK_ACTION_COPY); gtk_drag_source_add_uri_targets (ev_attachbar->priv->icon_view); -#else - gtk_icon_view_enable_model_drag_source ( - GTK_ICON_VIEW (ev_attachbar->priv->icon_view), - GDK_BUTTON1_MASK, - drag_targets, - G_N_ELEMENTS (drag_targets), - GDK_ACTION_COPY); -#endif g_signal_connect (ev_attachbar->priv->icon_view, "drag-data-get", -- cgit v0.9.1