summaryrefslogtreecommitdiff
path: root/debian/patches/20-lpi.patch
blob: 237803afec80fb9e077ae57523ba73779d9fd403 (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
Origin: Ubuntu
Description: Add launchpad-integration support.
---
 configure.ac |    1 +
 src/ui.c     |    5 +++++
 2 files changed, 6 insertions(+)

--- simple-scan.orig/configure.ac
+++ simple-scan/configure.ac
@@ -36,6 +36,7 @@ PKG_CHECK_MODULES(SIMPLE_SCAN, [
     cairo-pdf
     dbus-glib-1
     gudev-1.0
+    launchpad-integration
 ])
 
 AC_CHECK_HEADERS([sane/sane.h],[],[AC_MSG_ERROR([SANE not found])])
--- simple-scan.orig/src/ui.c
+++ simple-scan/src/ui.c
@@ -16,6 +16,7 @@
 #include <gconf/gconf-client.h>
 #include <math.h>
 #include <unistd.h> // TEMP: Needed for close() in get_temporary_filename()
+#include <launchpad-integration.h>
 
 #include "ui.h"
 #include "book-view.h"
@@ -1581,6 +1582,10 @@ ui_load (SimpleScan *ui)
     }
     gtk_builder_connect_signals (builder, ui);
 
+    /* Add Launchpad integration */
+    launchpad_integration_set_sourcepackagename ("simple-scan");
+    launchpad_integration_add_items (GTK_WIDGET (gtk_builder_get_object (builder, "help_menu")), 1, TRUE, TRUE);
+
     ui->priv->window = GTK_WIDGET (gtk_builder_get_object (builder, "simple_scan_window"));
     ui->priv->main_vbox = GTK_WIDGET (gtk_builder_get_object (builder, "main_vbox"));
     ui->priv->page_move_left_menuitem = GTK_WIDGET (gtk_builder_get_object (builder, "page_move_left_menuitem"));