[hitori] About dialog: use GtkLicense
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hitori] About dialog: use GtkLicense
- Date: Sat, 5 Jul 2014 20:29:13 +0000 (UTC)
commit 4dd8aebf7d3f91f266e4d58785926c28639ce585
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Jul 5 15:27:10 2014 -0500
About dialog: use GtkLicense
src/interface.c | 23 +----------------------
1 files changed, 1 insertions(+), 22 deletions(-)
---
diff --git a/src/interface.c b/src/interface.c
index 2225e81..94a77fa 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -627,7 +627,6 @@ static void
about_cb (GSimpleAction *action, GVariant *parameters, gpointer user_data)
{
HitoriApplication *self = HITORI_APPLICATION (user_data);
- gchar *license;
const gchar *authors[] =
{
@@ -635,24 +634,6 @@ about_cb (GSimpleAction *action, GVariant *parameters, gpointer user_data)
"Ben Windsor <benjw_823 hotmail com>",
NULL
};
- const gchar *license_parts[] = {
- N_("Hitori is free software: you can redistribute it and/or modify "
- "it under the terms of the GNU General Public License as published by "
- "the Free Software Foundation, either version 3 of the License, or "
- "(at your option) any later version."),
- N_("Hitori is distributed in the hope that it will be useful, "
- "but WITHOUT ANY WARRANTY; without even the implied warranty of "
- "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "
- "GNU General Public License for more details."),
- N_("You should have received a copy of the GNU General Public License "
- "along with Hitori. If not, see <http://www.gnu.org/licenses/>.")
- };
-
- license = g_strjoin ("\n\n",
- _(license_parts[0]),
- _(license_parts[1]),
- _(license_parts[2]),
- NULL);
gtk_show_about_dialog (GTK_WINDOW (self->window),
"version", VERSION,
@@ -661,13 +642,11 @@ about_cb (GSimpleAction *action, GVariant *parameters, gpointer user_data)
"authors", authors,
"translator-credits", _("translator-credits"),
"logo-icon-name", "hitori",
- "license", license,
+ "license-type", GTK_LICENSE_GPL_3_0,
"wrap-license", TRUE,
"website-label", _("Hitori Website"),
"website", PACKAGE_URL,
NULL);
-
- g_free (license);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]