diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-06-21 00:27:06 +0800 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-07-10 20:13:24 +0800 |
commit | 7deb4ea20b08eab10473f2620c90f6b896d5af10 (patch) | |
tree | 0658af67eae180a741bd65a3e92ffe92e8faf497 /libempathy-gtk/empathy-avatar-chooser.c | |
parent | fb43069972c8eccefcf1beb28251d1ed23c4a20c (diff) | |
download | gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.gz gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.bz2 gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.lz gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.xz gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.zst gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.zip |
Use accessor functions instead direct access (Fixes #586476)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy-gtk/empathy-avatar-chooser.c')
-rw-r--r-- | libempathy-gtk/empathy-avatar-chooser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-avatar-chooser.c b/libempathy-gtk/empathy-avatar-chooser.c index 83475b565..af96885e4 100644 --- a/libempathy-gtk/empathy-avatar-chooser.c +++ b/libempathy-gtk/empathy-avatar-chooser.c @@ -786,24 +786,24 @@ avatar_chooser_drag_data_received_cb (GtkWidget *widget, gchar *target_type; gboolean handled = FALSE; - target_type = gdk_atom_name (selection_data->target); + target_type = gdk_atom_name (gtk_selection_data_get_target (selection_data)); if (!strcmp (target_type, URI_LIST_TYPE)) { GFile *file; GFileInputStream *input_stream; gchar *nl; gchar *data = NULL; - nl = strstr (selection_data->data, "\r\n"); + nl = strstr (gtk_selection_data_get_data (selection_data), "\r\n"); if (nl) { gchar *uri; - uri = g_strndup (selection_data->data, - nl - (gchar *) selection_data->data); + uri = g_strndup (gtk_selection_data_get_data (selection_data), + nl - (gchar *) gtk_selection_data_get_data (selection_data)); file = g_file_new_for_uri (uri); g_free (uri); } else { - file = g_file_new_for_uri (selection_data->data); + file = g_file_new_for_uri (gtk_selection_data_get_data (selection_data)); } input_stream = g_file_read (file, NULL, NULL); |