/pidgin/main: cf55be38bbbc: Add my website as a link at my name ...

Tomasz Wasilczyk twasilczyk at pidgin.im
Thu Nov 21 03:29:25 EST 2013


Changeset: cf55be38bbbc21706c41b5dc02dadac3b1004c1e
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2013-11-21 09:29 +0100
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/cf55be38bbbc

Description:

Add my website as a link at my name in devs dialog

diffstat:

 pidgin/gtkdialogs.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (26 lines):

diff --git a/pidgin/gtkdialogs.c b/pidgin/gtkdialogs.c
--- a/pidgin/gtkdialogs.c
+++ b/pidgin/gtkdialogs.c
@@ -97,7 +97,7 @@ static const struct developer developers
 	{"Will 'resiak' Thompson",             NULL,                  NULL},
 	{"Stu 'nosnilmot' Tomlinson",          NULL,                  NULL},
 	{"Jorge 'Masca' Villaseñor",           NULL,                  NULL},
-	{"Tomasz Wasilczyk",                   NULL,                  NULL},
+	{"Tomasz Wasilczyk",                   NULL,                  "https://www.wasilczyk.pl"},
 	{NULL, NULL, NULL}
 };
 
@@ -348,8 +348,12 @@ add_developers(GString *str, const struc
 {
 	for (; list->name != NULL; list++) {
 		if (list->email != NULL) {
+			const gchar *proto = "mailto:";
+			if (strchr(list->email, ':') != NULL)
+				proto = "";
 			g_string_append_printf(str,
-			                       "<li><a href=\"mailto:%s\" title=\"%s\">%s</a>%s%s%s</li>",
+			                       "<li><a href=\"%s%s\" title=\"%s\">%s</a>%s%s%s</li>",
+			                       proto,
 			                       list->email, list->email, _(list->name),
 			                       list->role ? " (" : "",
 			                       list->role ? _(list->role) : "",



More information about the Commits mailing list