diff options
author | rbuj <[email protected]> | 2019-02-15 20:19:27 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-02-16 11:34:48 +0100 |
commit | 068a1b75fcc5f0e044802424cdba16e41801f0e2 (patch) | |
tree | 62868022ed5875e96792a7031ddf9d714c2efbce | |
parent | 6cdce0a4c392da97f7092e98918c496201a37053 (diff) | |
download | pluma-068a1b75fcc5f0e044802424cdba16e41801f0e2.tar.bz2 pluma-068a1b75fcc5f0e044802424cdba16e41801f0e2.tar.xz |
Add License button in About Pluma dialog
-rw-r--r-- | pluma/pluma-commands-help.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pluma/pluma-commands-help.c b/pluma/pluma-commands-help.c index d0680228..d9374d9e 100644 --- a/pluma/pluma-commands-help.c +++ b/pluma/pluma-commands-help.c @@ -75,8 +75,26 @@ void _pluma_cmd_help_about(GtkAction* action, PlumaWindow* window) static const gchar comments[] = \ N_("Pluma is a small and lightweight text editor for the MATE Desktop"); + static const gchar *license[] ={ + N_("Pluma 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 2 of the License, or " + "(at your option) any later version."), + N_("Pluma 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 Pluma; if not, write to the Free Software Foundation, Inc., " + "51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA") + }; + + gchar *license_trans; + pluma_debug (DEBUG_COMMANDS); + license_trans = g_strjoin ("\n\n", _(license[0]), _(license[1]), _(license[2]), NULL); + gtk_show_about_dialog(GTK_WINDOW(window), "program-name", "Pluma", "authors", authors, @@ -87,10 +105,14 @@ void _pluma_cmd_help_about(GtkAction* action, PlumaWindow* window) "Copyright \xc2\xa9 2004-2010 Paolo Borelli, Jesse van den Kieboom\nSteve Fr\303\251cinaux, Ignacio Casal Quinteiro\n" "Copyright \xc2\xa9 2011 Perberos\n" "Copyright \xc2\xa9 2012-2019 MATE developers"), + "license", license_trans, + "wrap-license", TRUE, "documenters", documenters, "logo_icon_name", "accessories-text-editor", "translator-credits", _("translator-credits"), "version", VERSION, "website", "http://mate-desktop.org", NULL); + + g_free (license_trans); } |