]> www.fi.muni.cz Git - evince.git/commitdiff
Fix compilation with gtk 2.6
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Mon, 3 Apr 2006 12:35:04 +0000 (12:35 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Mon, 3 Apr 2006 12:35:04 +0000 (12:35 +0000)
shell/ev-attachment-bar.c

index 26e06873cc1c93f601f4b68d303524d0f01b8a2e..b58f58388f2c0e731f0c0d2138698bb5b4db4adf 100644 (file)
@@ -494,12 +494,14 @@ ev_attachment_bar_init (EvAttachmentBar *ev_attachbar)
                                                                g_object_unref);
 
        /* Drag and Drop */
+#ifdef HAVE_GTK_ICON_VIEW_ENABLE_MODEL_DRAG_SOURCE
        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_MOVE);
+                              GDK_ACTION_COPY);
+#endif
        g_signal_connect (G_OBJECT (ev_attachbar->priv->icon_view),
                          "drag-data-get",
                          G_CALLBACK (ev_attachment_bar_drag_data_get),