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