aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-about-dialog.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-12-07 17:43:59 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-12-07 17:43:59 +0800
commit1893cd80d606371b3810070f9dea63b14186e9c1 (patch)
tree721c3538a86ec436e43094130d48e998e90ca431 /src/empathy-about-dialog.c
parentae0db917820904a353850d532eb3b638f36cb8c6 (diff)
downloadgsoc2013-empathy-1893cd80d606371b3810070f9dea63b14186e9c1.tar
gsoc2013-empathy-1893cd80d606371b3810070f9dea63b14186e9c1.tar.gz
gsoc2013-empathy-1893cd80d606371b3810070f9dea63b14186e9c1.tar.bz2
gsoc2013-empathy-1893cd80d606371b3810070f9dea63b14186e9c1.tar.lz
gsoc2013-empathy-1893cd80d606371b3810070f9dea63b14186e9c1.tar.xz
gsoc2013-empathy-1893cd80d606371b3810070f9dea63b14186e9c1.tar.zst
gsoc2013-empathy-1893cd80d606371b3810070f9dea63b14186e9c1.zip
about: Polish the code to generate the license string
Diffstat (limited to 'src/empathy-about-dialog.c')
-rw-r--r--src/empathy-about-dialog.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/empathy-about-dialog.c b/src/empathy-about-dialog.c
index 04b2753b6..3204d0f08 100644
--- a/src/empathy-about-dialog.c
+++ b/src/empathy-about-dialog.c
@@ -88,24 +88,26 @@ static const char *license[] = {
"GNU General Public License for more details."),
N_("You should have received a copy of the GNU General Public License "
"along with Empathy; if not, write to the Free Software Foundation, Inc., "
- "51 Franklin Street, Fifth Floor, Boston, MA 02110-130159 USA")
+ "51 Franklin Street, Fifth Floor, Boston, MA 02110-130159 USA"),
+ NULL
};
void
empathy_about_dialog_new (GtkWindow *parent)
{
- gchar *license_trans;
+ GString *license_trans = g_string_new (NULL);
+ int i;
- license_trans = g_strconcat (_(license[0]), "\n\n",
- _(license[1]), "\n\n",
- _(license[2]), "\n\n",
- NULL);
+ for (i = 0; license[i] != NULL; i++) {
+ g_string_append (license_trans, _(license[i]));
+ g_string_append (license_trans, "\n\n");
+ }
gtk_show_about_dialog (parent,
"artists", artists,
"authors", authors,
"comments", _("An Instant Messaging client for GNOME"),
- "license", license_trans,
+ "license", license_trans->str,
"wrap-license", TRUE,
"copyright", "Imendio AB 2002-2007\nCollabora Ltd 2007-2011",
"documenters", documenters,
@@ -115,7 +117,7 @@ empathy_about_dialog_new (GtkWindow *parent)
"website", WEB_SITE,
NULL);
- g_free (license_trans);
+ g_string_free (license_trans, TRUE);
}