aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/e-msg-composer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index b79eaa3a71..d7fa2b618c 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1986,11 +1986,14 @@ msg_composer_gallery_drag_data_get (GtkIconView *icon_view,
GtkCellRenderer *cell;
GtkTreeModel *model;
GtkTreeIter iter;
+ GdkAtom target;
gchar *str_data;
if (!gtk_icon_view_get_cursor (icon_view, &path, &cell))
return;
+ target = gtk_selection_data_get_target (selection_data);
+
model = gtk_icon_view_get_model (icon_view);
gtk_tree_model_get_iter (model, &iter, path);
gtk_tree_model_get (model, &iter, 1, &str_data, -1);
@@ -1998,7 +2001,7 @@ msg_composer_gallery_drag_data_get (GtkIconView *icon_view,
/* only supports "text/uri-list" */
gtk_selection_data_set (
- selection_data, selection_data->target, 8,
+ selection_data, target, 8,
(guchar *) str_data, strlen (str_data));
g_free (str_data);
}