summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2012-05-21 01:32:30 +0200
committerAlessio Treglia <alessio@debian.org>2012-05-21 01:32:30 +0200
commitc07bdfd8390f65404ab1eabc58f28de8eec3bfc0 (patch)
tree0d12cee6383863d086a98d1597d5f3230d7974a9 /debian/patches
parent32ba376865103ffd03d6a02e40472db33f0244ac (diff)
Fix save dialog filter incorrect names.
LP: #876135 Closes: #673593 Thanks: Jeremy Bicha for reporting this.
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/02-file-filter-labels.patch28
-rw-r--r--debian/patches/series1
-rw-r--r--debian/patches/ubuntu.series1
3 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/02-file-filter-labels.patch b/debian/patches/02-file-filter-labels.patch
new file mode 100644
index 0000000..c195bfc
--- /dev/null
+++ b/debian/patches/02-file-filter-labels.patch
@@ -0,0 +1,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);
+
diff --git a/debian/patches/series b/debian/patches/series
index f505775..0aab875 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
01-zlib.patch
+02-file-filter-labels.patch
diff --git a/debian/patches/ubuntu.series b/debian/patches/ubuntu.series
index 0d508d3..cc1010c 100644
--- a/debian/patches/ubuntu.series
+++ b/debian/patches/ubuntu.series
@@ -1,2 +1,3 @@
01-zlib.patch
20-lpi.patch
+02-file-filter-labels.patch