summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-clipboard.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-06-11 13:14:13 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2010-06-11 13:25:19 +0200
commit3cd134fde66949514eb86b60795394f1aa7a2db6 (patch)
tree407f8b1f1c48127e689721c3f8faf7ef9286136d /libnautilus-private/nautilus-clipboard.c
parentfd6f9364d040814346b9995570a558c1d6cb081c (diff)
downloadnautilus-3cd134fde66949514eb86b60795394f1aa7a2db6.tar.gz
[ln-p] GSEAL nautilus-clipboard.
Diffstat (limited to 'libnautilus-private/nautilus-clipboard.c')
-rw-r--r--libnautilus-private/nautilus-clipboard.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libnautilus-private/nautilus-clipboard.c b/libnautilus-private/nautilus-clipboard.c
index 01b1fb19a..947dbbabc 100644
--- a/libnautilus-private/nautilus-clipboard.c
+++ b/libnautilus-private/nautilus-clipboard.c
@@ -585,17 +585,19 @@ nautilus_clipboard_get_uri_list_from_selection_data (GtkSelectionData *selection
GList *items;
char **lines;
- if (selection_data->type != copied_files_atom
- || selection_data->length <= 0) {
+ if (gtk_selection_data_get_data_type (selection_data) != copied_files_atom
+ || gtk_selection_data_get_length (selection_data) <= 0) {
items = NULL;
} else {
+ guchar *data;
/* Not sure why it's legal to assume there's an extra byte
* past the end of the selection data that it's safe to write
* to. But gtk_editable_selection_received does this, so I
* think it is OK.
*/
- selection_data->data[selection_data->length] = '\0';
- lines = g_strsplit (selection_data->data, "\n", 0);
+ data = (guchar *) gtk_selection_data_get_data (selection_data);
+ data[gtk_selection_data_get_length (selection_data)] = '\0';
+ lines = g_strsplit (data, "\n", 0);
items = convert_lines_to_str_list (lines, cut);
g_strfreev (lines);
}