[gtk+/gtk-3-20] about-dialog: Fix "format not a string literal" errors
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] about-dialog: Fix "format not a string literal" errors
- Date: Tue, 5 Apr 2016 11:02:20 +0000 (UTC)
commit ff8d0dc54c2feafa9ee21076a36301826de998ed
Author: Bastien Nocera <hadess hadess net>
Date: Mon Apr 4 14:16:17 2016 +0200
about-dialog: Fix "format not a string literal" errors
A non-intrusive fix.
https://bugzilla.gnome.org/show_bug.cgi?id=764585
gtk/gtkaboutdialog.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 269c840..25afd8b 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -108,11 +108,6 @@ typedef struct
const gchar *url;
} LicenseInfo;
-/* Translators: this is the license preamble; the string at the end
- * contains the name of the license as link text.
- */
-static const gchar *gtk_license_preamble = N_("This program comes with absolutely no warranty.\nSee the <a
href=\"%s\">%s</a> for details.");
-
/* LicenseInfo for each GtkLicense type; keep in the same order as the enumeration */
static const LicenseInfo gtk_license_info [] = {
{ N_("License"), NULL },
@@ -2488,7 +2483,10 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about,
url = priv->website_url;
str = g_string_sized_new (256);
- g_string_append_printf (str, _(gtk_license_preamble), url, name);
+ /* Translators: this is the license preamble; the string at the end
+ * contains the name of the license as link text.
+ */
+ g_string_append_printf (str, _("This program comes with absolutely no warranty.\nSee the <a
href=\"%s\">%s</a> for details."), url, name);
g_free (priv->license);
priv->license = g_string_free (str, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]