aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-09 23:22:59 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-09 23:24:06 +0800
commitf4d3b320a229550b1db78e52252edb161af77238 (patch)
treecfed78f583dfadeaf88c7a6d87da7ef657215e23 /composer/e-msg-composer.c
parent7a6b7673351c8597a5cf976d59fdd7fd246a78d5 (diff)
downloadgsoc2013-evolution-f4d3b320a229550b1db78e52252edb161af77238.tar.gz
gsoc2013-evolution-f4d3b320a229550b1db78e52252edb161af77238.tar.zst
gsoc2013-evolution-f4d3b320a229550b1db78e52252edb161af77238.zip
GtkSelectionData is sealed in GTK3.
Have to use accessor functions, no pointer deferencing.
Diffstat (limited to 'composer/e-msg-composer.c')
-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);
}