#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_change_gpl_location.dpatch by Damián Viano <des@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Small patch to use common-licenses

@DPATCH@
diff -urNad geany-0.17~/src/about.c geany-0.17/src/about.c
--- geany-0.17~/src/about.c	2009-04-05 11:14:29.000000000 -0300
+++ geany-0.17/src/about.c	2009-05-27 21:26:50.000000000 -0300
@@ -380,7 +380,7 @@
 	label = gtk_label_new(_("License"));
 	gtk_widget_show(label);
 
-	g_snprintf(buffer, sizeof(buffer), "%s" G_DIR_SEPARATOR_S "GPL-2", app->datadir);
+	g_snprintf(buffer, sizeof(buffer), "/usr/share/common-licenses/GPL-2");
 
 	g_file_get_contents(buffer, &license_text, NULL, NULL);
 	if (license_text == NULL)
