Skip to content
Permalink
Browse files

License text in About dialog

  • Loading branch information...
rbuj authored and raveit65 committed Feb 15, 2019
1 parent 9fa6ae5 commit acd6123cf163948434e364c419d96cf1cfcae32a
Showing with 20 additions and 1 deletion.
  1. +20 −1 src/callbacks.cpp
@@ -181,6 +181,23 @@ cb_about (GtkAction *action, gpointer data)
NULL
};

const gchar * license[] = {
N_("System Monitor 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_("System Monitor 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 System Monitor; if not, write to the Free Software Foundation, Inc., "
"51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA")
};

gchar *license_trans;
license_trans = g_strjoin ("\n\n", _(license[0]), _(license[1]), _(license[2]), NULL);

gtk_show_about_dialog (
GTK_WINDOW (procdata->app),
"name", _("System Monitor"),
@@ -194,11 +211,13 @@ cb_about (GtkAction *action, gpointer data)
"artists", artists,
"documenters", documenters,
"translator-credits", _("translator-credits"),
"license", "GPL 2+",
"license", license_trans,
"wrap-license", TRUE,
"website", "http://www.mate-desktop.org",
NULL
);

g_free (license_trans);
}


0 comments on commit acd6123

Please sign in to comment.
You can’t perform that action at this time.