File: 01_drawing.diff

package info (click to toggle)
gpaint 0.3.3-6.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 3,948 kB
  • ctags: 1,332
  • sloc: ansic: 9,472; sh: 8,180; makefile: 101; perl: 57
file content (21 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download | duplicates (2)
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 */