Skip to content

Commit acd6123

Browse files
rbujraveit65
authored andcommitted
License text in About dialog
1 parent 9fa6ae5 commit acd6123

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/callbacks.cpp

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,23 @@ cb_about (GtkAction *action, gpointer data)
181181
NULL
182182
};
183183

184+
const gchar * license[] = {
185+
N_("System Monitor is free software; you can redistribute it and/or modify "
186+
"it under the terms of the GNU General Public License as published by "
187+
"the Free Software Foundation; either version 2 of the License, or "
188+
"(at your option) any later version."),
189+
N_("System Monitor is distributed in the hope that it will be useful, "
190+
"but WITHOUT ANY WARRANTY; without even the implied warranty of "
191+
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "
192+
"GNU General Public License for more details."),
193+
N_("You should have received a copy of the GNU General Public License "
194+
"along with System Monitor; if not, write to the Free Software Foundation, Inc., "
195+
"51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA")
196+
};
197+
198+
gchar *license_trans;
199+
license_trans = g_strjoin ("\n\n", _(license[0]), _(license[1]), _(license[2]), NULL);
200+
184201
gtk_show_about_dialog (
185202
GTK_WINDOW (procdata->app),
186203
"name", _("System Monitor"),
@@ -194,11 +211,13 @@ cb_about (GtkAction *action, gpointer data)
194211
"artists", artists,
195212
"documenters", documenters,
196213
"translator-credits", _("translator-credits"),
197-
"license", "GPL 2+",
214+
"license", license_trans,
198215
"wrap-license", TRUE,
199216
"website", "http://www.mate-desktop.org",
200217
NULL
201218
);
219+
220+
g_free (license_trans);
202221
}
203222

204223

0 commit comments

Comments
 (0)