aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-profile-chooser.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-07-29 05:21:53 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-07-29 05:21:53 +0800
commit6669583ddb6c0c37352b5d2383cfbbb3e139c017 (patch)
treebde23dd3ce1d418d3be771f7ec21e011164bd0fb /libempathy-gtk/empathy-profile-chooser.c
parent3109fe09afb26094dd04973d1ab6c176b0a1390b (diff)
downloadgsoc2013-empathy-6669583ddb6c0c37352b5d2383cfbbb3e139c017.tar
gsoc2013-empathy-6669583ddb6c0c37352b5d2383cfbbb3e139c017.tar.gz
gsoc2013-empathy-6669583ddb6c0c37352b5d2383cfbbb3e139c017.tar.bz2
gsoc2013-empathy-6669583ddb6c0c37352b5d2383cfbbb3e139c017.tar.lz
gsoc2013-empathy-6669583ddb6c0c37352b5d2383cfbbb3e139c017.tar.xz
gsoc2013-empathy-6669583ddb6c0c37352b5d2383cfbbb3e139c017.tar.zst
gsoc2013-empathy-6669583ddb6c0c37352b5d2383cfbbb3e139c017.zip
Better like that
svn path=/trunk/; revision=211
Diffstat (limited to 'libempathy-gtk/empathy-profile-chooser.c')
-rw-r--r--libempathy-gtk/empathy-profile-chooser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-profile-chooser.c b/libempathy-gtk/empathy-profile-chooser.c
index f1d508ffc..212869da4 100644
--- a/libempathy-gtk/empathy-profile-chooser.c
+++ b/libempathy-gtk/empathy-profile-chooser.c
@@ -59,11 +59,12 @@ profile_chooser_sort_profile_value (McProfile *profile)
const gchar *profile_name;
const gchar *names[] = {"jabber",
"salut",
- "gtalk"};
+ "gtalk",
+ NULL};
profile_name = mc_profile_get_unique_name (profile);
- for (i = 0 ; i < G_N_ELEMENTS (names); i++) {
+ for (i = 0 ; names[i]; i++) {
if (strcmp (profile_name, names[i]) == 0) {
return i;
}