diff options
author | vs <vs@FreeBSD.org> | 2004-10-25 14:54:31 +0000 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-10-25 14:54:31 +0000 |
commit | c52e5220a04cedf498a5ba92870d91d16ccefd33 (patch) | |
tree | ae7ef7f0edb1bde4e70fc798832688f5e73e8313 /editors/leafpad | |
parent | 5079380977173bcc32a2060fd26f2b0c088be310 (diff) | |
download | FreeBSD-ports-c52e5220a04cedf498a5ba92870d91d16ccefd33.zip FreeBSD-ports-c52e5220a04cedf498a5ba92870d91d16ccefd33.tar.gz |
Fix compilation on 4.x (gcc3-ism)
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 0000000..9736bb1 --- /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); |