summaryrefslogtreecommitdiff
path: root/debian/patches/02-file-filter-labels.patch
blob: c195bfcf9881139a99adb66fcc59ab11a416443d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Fix file filter's name shown by the Save dialogs.
From: https://launchpad.net/bugs/876135
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673593
---
 src/ui.vala |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- simple-scan.orig/src/ui.vala
+++ simple-scan/src/ui.vala
@@ -351,14 +351,14 @@ public class SimpleScan
 
         /* Filter to only show images by default */
         var filter = new Gtk.FileFilter ();
-        filter.set_name (/* Save dialog: Filter name to show only image files */
-                         _("Image Files"));
+        filter.set_filter_name (/* Save dialog: Filter name to show only image files */
+                                _("Image Files"));
         filter.add_pixbuf_formats ();
         filter.add_mime_type ("application/pdf");
         save_dialog.add_filter (filter);
         filter = new Gtk.FileFilter ();
-        filter.set_name (/* Save dialog: Filter name to show all files */
-                         _("All Files"));
+        filter.set_filter_name (/* Save dialog: Filter name to show all files */
+                                _("All Files"));
         filter.add_pattern ("*");
         save_dialog.add_filter (filter);