[file-roller] Dragging a file to desktop doesn't work
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Dragging a file to desktop doesn't work
- Date: Sun, 15 Feb 2015 09:21:40 +0000 (UTC)
commit 17a2be90d8242378000342ce96c29b9f40c221ab
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 de7a38e..33a4046 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -4226,6 +4226,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);
@@ -4233,9 +4234,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]