diff options
author | Volker Stolz <vs@FreeBSD.org> | 2004-10-25 14:54:31 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2004-10-25 14:54:31 +0000 |
commit | f3352f06d6af78c9411f5d57cf871d2d0775aa08 (patch) | |
tree | d7d4c78023505e24576489a6d89bbf9d9b3ff0b8 /editors/leafpad | |
parent | 76c93bb3fb589dc82acdf4454da6cc47dbec3c84 (diff) |
Notes
Diffstat (limited to 'editors/leafpad')
-rw-r--r-- | editors/leafpad/files/patch-src::dnd.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/editors/leafpad/files/patch-src::dnd.c b/editors/leafpad/files/patch-src::dnd.c new file mode 100644 index 000000000000..9736bb1e7447 --- /dev/null +++ b/editors/leafpad/files/patch-src::dnd.c @@ -0,0 +1,23 @@ +--- src/dnd.c.orig Mon Oct 25 16:50:41 2004 ++++ src/dnd.c Mon Oct 25 16:51:00 2004 +@@ -7,6 +7,9 @@ + GdkDragContext *context, gint x, gint y, + GtkSelectionData *selection_data, guint info, guint time) + { ++ gchar *filename; ++ gchar *filename_real; ++ gchar *comline; + static gboolean flag_called_once = FALSE; + + if (flag_called_once) { +@@ -24,10 +27,6 @@ + g_print("selection_data->data = %s\n", selection_data->data); + g_print("selection_data->length = %d\n", selection_data->length); + }); +- gchar *filename; +- gchar *filename_real; +- gchar *comline; +- + if (selection_data->data && g_strstr_len(selection_data->data, 7, "file://")) { + filename = g_filename_from_uri(selection_data->data, NULL, NULL); + filename_real = g_strndup(filename, selection_data->length - 7 - 2); |