summaryrefslogtreecommitdiff
path: root/debian/patches/20-lpi.patch
blob: ca85979e277f6352026c9ab34055baeddbdf13cd (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
29
30
31
32
33
34
35
36
37
38
39
40
Origin: Ubuntu
Description: Add launchpad-integration support.
---
 configure.ac    |    1 +
 src/Makefile.am |    1 +
 src/ui.vala     |    3 +++
 3 files changed, 5 insertions(+)

--- simple-scan.orig/configure.ac
+++ simple-scan/configure.ac
@@ -32,6 +32,7 @@ PKG_CHECK_MODULES(SIMPLE_SCAN, [
     cairo
     gdk-pixbuf-2.0
     gudev-1.0
+    launchpad-integration-3.0
 ])
 
 PKG_CHECK_MODULES(COLORD, [
--- simple-scan.orig/src/Makefile.am
+++ simple-scan/src/Makefile.am
@@ -15,6 +15,7 @@ simple_scan_SOURCES = \
 
 simple_scan_VALAFLAGS = \
 	--pkg=zlib \
+	--pkg=launchpad-integration-3.0 \
 	--pkg=gudev-1.0 \
 	--pkg=gio-2.0 \
 	--pkg=gtk+-3.0
--- simple-scan.orig/src/ui.vala
+++ simple-scan/src/ui.vala
@@ -1267,6 +1267,9 @@ public class SimpleScan
         }
         builder.connect_signals (this);
 
+        LaunchpadIntegration.set_sourcepackagename ("simple-scan");
+        LaunchpadIntegration.add_items ((Gtk.Widget) builder.get_object ("help_menu"), 1, true, true);
+
         window = (Gtk.Window) builder.get_object ("simple_scan_window");
         main_vbox = (Gtk.VBox) builder.get_object ("main_vbox");
         page_move_left_menuitem = (Gtk.MenuItem) builder.get_object ("page_move_left_menuitem");