diff options
author | Petar Petrov <ppetrov@paju.oulu.fi> | 2013-06-03 16:27:37 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-06-04 00:11:33 -0500 |
commit | 9a1f447dfc912da1dbb9c656ee1ab54cbb8af686 (patch) | |
tree | bc879b2ab623028224152b9220dc3958633e8a8f /graphics/gpaint/patches/01_drawing.patch | |
parent | bf4ab6962d0aa471d1906c66041b0f45f8e0391f (diff) | |
download | slackbuilds-9a1f447dfc912da1dbb9c656ee1ab54cbb8af686.tar.gz |
graphics/gpaint: Added (GNU Paint: a small-scale GTK2 painting program)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/gpaint/patches/01_drawing.patch')
-rw-r--r-- | graphics/gpaint/patches/01_drawing.patch | 21 |
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 */ |