[file-roller/gnome-3-14] Dragging a file to desktop doesn't work
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/gnome-3-14] Dragging a file to desktop doesn't work
- Date: Sun, 15 Feb 2015 11:09:25 +0000 (UTC)
commit e503d9556a3ab05133616f4718cce9f2324432df
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Feb 15 10:20:48 2015 +0100
Dragging a file to desktop doesn't work
[bug #479351]
src/fr-window.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index fd1beb0..f7492e9 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -4228,6 +4228,7 @@ static char *
get_xds_atom_value (GdkDragContext *context)
{
char *ret;
+ int len;
g_return_val_if_fail (context != NULL, NULL);
g_return_val_if_fail (gdk_drag_context_get_source_window (context) != NULL, NULL);
@@ -4235,9 +4236,12 @@ get_xds_atom_value (GdkDragContext *context)
if (gdk_property_get (gdk_drag_context_get_source_window (context),
XDS_ATOM, TEXT_ATOM,
0, MAX_XDS_ATOM_VAL_LEN,
- FALSE, NULL, NULL, NULL,
+ FALSE, NULL, NULL, &len,
(unsigned char **) &ret))
+ {
+ ret[len] = '\0';
return ret;
+ }
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]