summaryrefslogtreecommitdiff
path: root/graphics/gpaint/patches/01_drawing.patch
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gpaint/patches/01_drawing.patch')
-rw-r--r--graphics/gpaint/patches/01_drawing.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/gpaint/patches/01_drawing.patch b/graphics/gpaint/patches/01_drawing.patch
new file mode 100644
index 0000000000..9b587f9f92
--- /dev/null
+++ b/graphics/gpaint/patches/01_drawing.patch
@@ -0,0 +1,21 @@
+Author: Goedson Teixeira Paixao <goedson@debian.org>
+Description: Fixes compiling with recent versions of libgtk
+ Newer versions of Gtk+ don't define the GTK_RESPONSE_DISCARD symbol, so we
+ replace its ocurrence by GTK_RESPONSE_NO to make gpaint build without
+ errors.
+Bug: https://savannah.gnu.org/bugs/index.php?21703
+Forwarded: https://savannah.gnu.org/patch/?7047
+
+Index: b/src/drawing.c
+===================================================================
+--- a/src/drawing.c 2009-12-19 17:11:48.000000000 -0200
++++ b/src/drawing.c 2009-12-19 17:12:10.000000000 -0200
+@@ -427,7 +427,7 @@
+ _("Do you want to save the changes you made to \"%s\"?\nYour changes will be lost if you don't save them."),
+ drawing->filename->str);
+ #ifdef GTK_STOCK_DISCARD
+- gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_DISCARD,GTK_RESPONSE_DISCARD);
++ gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_DISCARD,GTK_RESPONSE_NO);
+ #else
+ gtk_dialog_add_button(GTK_DIALOG(dialog), _("Close _without Saving"), GTK_RESPONSE_NO);
+ #endif /* !GTK_STOCK_DISCARD */