blob: 9b587f9f926cf0abab807d37830049ab53746930 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 */
|