summaryrefslogtreecommitdiffstats
path: root/editors/leafpad
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-10-25 14:54:31 +0000
committervs <vs@FreeBSD.org>2004-10-25 14:54:31 +0000
commitc52e5220a04cedf498a5ba92870d91d16ccefd33 (patch)
treeae7ef7f0edb1bde4e70fc798832688f5e73e8313 /editors/leafpad
parent5079380977173bcc32a2060fd26f2b0c088be310 (diff)
downloadFreeBSD-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.c23
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);
OpenPOWER on IntegriCloud