summaryrefslogtreecommitdiff
path: root/debian/patches/20-lpi.patch
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2010-08-31 01:08:57 +0200
committerAlessio Treglia <alessio@debian.org>2010-08-31 01:08:57 +0200
commit746f9bd80132bba8108bd546b1fc65e06cd8cfa2 (patch)
treebbce681d946bf917b42c48d49f9d6be61c470417 /debian/patches/20-lpi.patch
parentf965277f8907ec52bfd93bc20486b14d8d522d9c (diff)
Rename patches and change the order they apply.debian/2.31.91-1
Diffstat (limited to 'debian/patches/20-lpi.patch')
-rw-r--r--debian/patches/20-lpi.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/20-lpi.patch b/debian/patches/20-lpi.patch
new file mode 100644
index 0000000..237803a
--- /dev/null
+++ b/debian/patches/20-lpi.patch
@@ -0,0 +1,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"));