mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
9a1f447dfc
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
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 */
|