From f3352f06d6af78c9411f5d57cf871d2d0775aa08 Mon Sep 17 00:00:00 2001 From: Volker Stolz Date: Mon, 25 Oct 2004 14:54:31 +0000 Subject: Fix compilation on 4.x (gcc3-ism) --- editors/leafpad/files/patch-src::dnd.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 editors/leafpad/files/patch-src::dnd.c (limited to 'editors/leafpad') 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); -- cgit v1.2.3