diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-09 23:22:59 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:16 +0800 |
commit | 0d2d76c021dc98f0493b6bbb7765a7c047ae8e13 (patch) | |
tree | 63dd822d8cf9cae798c3819a8f205aff6c4e053d /composer/e-msg-composer.c | |
parent | 70bbf2c088b424b1d58c2d18c875c63ea1de0376 (diff) | |
download | gsoc2013-evolution-0d2d76c021dc98f0493b6bbb7765a7c047ae8e13.tar gsoc2013-evolution-0d2d76c021dc98f0493b6bbb7765a7c047ae8e13.tar.gz gsoc2013-evolution-0d2d76c021dc98f0493b6bbb7765a7c047ae8e13.tar.bz2 gsoc2013-evolution-0d2d76c021dc98f0493b6bbb7765a7c047ae8e13.tar.lz gsoc2013-evolution-0d2d76c021dc98f0493b6bbb7765a7c047ae8e13.tar.xz gsoc2013-evolution-0d2d76c021dc98f0493b6bbb7765a7c047ae8e13.tar.zst gsoc2013-evolution-0d2d76c021dc98f0493b6bbb7765a7c047ae8e13.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.c | 5 |
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); } |