Blame SOURCES/xsane-0.996-no-eula.patch

3871be
From 7018206ea45db2e8bdfeb67d33f3387c9678a407 Mon Sep 17 00:00:00 2001
3871be
From: Nils Philippsen <nils@redhat.com>
3871be
Date: Thu, 16 Aug 2012 11:19:16 +0200
3871be
Subject: [PATCH] patch: no-eula
3871be
3871be
Squashed commit of the following:
3871be
3871be
commit d13f1ccfdf4c150cab91105e9b8542ecbb048a9b
3871be
Author: Nils Philippsen <nils@redhat.com>
3871be
Date:   Fri Nov 19 12:20:52 2010 +0100
3871be
3871be
    don't show EULA, mention bugzilla in about dialog (#504344)
3871be
---
3871be
 src/xsane-text.h |  2 ++
3871be
 src/xsane.c      | 16 ++++++----------
3871be
 src/xsane.h      |  3 +++
3871be
 3 files changed, 11 insertions(+), 10 deletions(-)
3871be
3871be
diff --git a/src/xsane-text.h b/src/xsane-text.h
3871be
index fc6bbeb..ee4a222 100644
3871be
--- a/src/xsane-text.h
3871be
+++ b/src/xsane-text.h
3871be
@@ -230,6 +230,8 @@
3871be
                                           "This program is distributed in the hope that it will be useful, but\n" \
3871be
                                           "WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
3871be
                                           "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n")
3871be
+#define TEXT_MODIFIED_BLURB             _("This package is modified from the original version.\n" \
3871be
+                                          "Please contact your vendor or report problems at")
3871be
 #define TEXT_EMAIL_ADR					_("E-mail:")
3871be
 #define TEXT_HOMEPAGE					_("Homepage:")
3871be
 #define TEXT_FILE					_("File:")
3871be
diff --git a/src/xsane.c b/src/xsane.c
3871be
index 1c5d61d..8b24b0c 100644
3871be
--- a/src/xsane.c
3871be
+++ b/src/xsane.c
3871be
@@ -3533,10 +3533,13 @@ static void xsane_about_dialog(GtkWidget *widget, gpointer data)
3871be
   snprintf(buf, sizeof(buf), "XSane %s %s\n"
3871be
                              "%s %s\n"
3871be
                              "\n"
3871be
+                             "%s\n%s"
3871be
+                             "\n\n"
3871be
                              "%s %s\n"
3871be
                              "%s %s\n",
3871be
                              TEXT_VERSION, XSANE_VERSION,
3871be
                              XSANE_COPYRIGHT_SIGN, XSANE_COPYRIGHT_TXT,
3871be
+                             TEXT_MODIFIED_BLURB, XSANE_BUGTRACKER_URL,
3871be
                              TEXT_HOMEPAGE, XSANE_HOMEPAGE,
3871be
                              TEXT_EMAIL_ADR, XSANE_EMAIL_ADR);
3871be
 
3871be
@@ -5733,6 +5736,7 @@ static int xsane_init(int argc, char **argv)
3871be
 
3871be
         case 'v': /* --version */
3871be
           g_print("%s-%s %s %s\n", xsane.prog_name, XSANE_VERSION, XSANE_COPYRIGHT_SIGN, XSANE_COPYRIGHT_TXT);
3871be
+          g_print("\n%s\n%s\n\n", TEXT_MODIFIED_BLURB, XSANE_BUGTRACKER_URL);
3871be
           g_print("  %s %s\n", TEXT_EMAIL_ADR, XSANE_EMAIL_ADR);
3871be
           g_print("  %s %s\n", TEXT_PACKAGE, XSANE_PACKAGE_VERSION);
3871be
           g_print("  %s%d.%d.%d\n", TEXT_GTK_VERSION, GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
3871be
@@ -5859,17 +5863,9 @@ static int xsane_init(int argc, char **argv)
3871be
   }
3871be
 
3871be
 
3871be
-  if (xsane_pref_restore()) /* restore preferences, returns TRUE if license is not accpted yet */
3871be
+  if (xsane_pref_restore()) /* restore preferences, returns TRUE if the version is different from the last run */
3871be
   {
3871be
-    if (xsane_display_eula(1)) /* show license and ask for accept/not accept */
3871be
-    {
3871be
-      DBG(DBG_info, "user did not accept eula, we abort\n");
3871be
-      return 1; /* User did not accept eula */
3871be
-    }
3871be
-    else /* User did accept eula */
3871be
-    {
3871be
-      xsane_pref_save();
3871be
-    }
3871be
+    xsane_pref_save();
3871be
   }
3871be
 
3871be
   xsane_pref_restore_media();
3871be
diff --git a/src/xsane.h b/src/xsane.h
3871be
index 3d8caaa..6c7568e 100644
3871be
--- a/src/xsane.h
3871be
+++ b/src/xsane.h
3871be
@@ -98,6 +98,9 @@
3871be
 #define XSANE_EMAIL_ADR		"Oliver.Rauch@xsane.org"
3871be
 #define XSANE_HOMEPAGE		"http://www.xsane.org"
3871be
 #define XSANE_COPYRIGHT_TXT	XSANE_DATE " " XSANE_COPYRIGHT
3871be
+#ifndef XSANE_BUGTRACKER_URL
3871be
+#define XSANE_BUGTRACKER_URL             "(no bug tracker configured)"
3871be
+#endif
3871be
 
3871be
 /* ---------------------------------------------------------------------------------------------------------------------- */
3871be
 
3871be
-- 
3871be
1.7.11.4
3871be