[evolution/webkit] GtkSelectionData is sealed in GTK3.



commit 6dd770ae36ecb23ca7cdeb5d11b1b2fa6eda05c9
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Jan 9 10:22:59 2011 -0500

    GtkSelectionData is sealed in GTK3.
    
    Have to use accessor functions, no pointer deferencing.

 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 b79eaa3..d7fa2b6 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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]