aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-08-02 19:27:13 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-08-02 19:27:13 +0800
commit48fd13dde6d5bee784a2ae32fde6a0664597b820 (patch)
treec0f98cae92495a5f5c2bcc2906f055aa07d87e7e /libempathy-gtk
parent6796f373b5b2a157351a2e36c06732ba4332a463 (diff)
downloadgsoc2013-empathy-48fd13dde6d5bee784a2ae32fde6a0664597b820.tar
gsoc2013-empathy-48fd13dde6d5bee784a2ae32fde6a0664597b820.tar.gz
gsoc2013-empathy-48fd13dde6d5bee784a2ae32fde6a0664597b820.tar.bz2
gsoc2013-empathy-48fd13dde6d5bee784a2ae32fde6a0664597b820.tar.lz
gsoc2013-empathy-48fd13dde6d5bee784a2ae32fde6a0664597b820.tar.xz
gsoc2013-empathy-48fd13dde6d5bee784a2ae32fde6a0664597b820.tar.zst
gsoc2013-empathy-48fd13dde6d5bee784a2ae32fde6a0664597b820.zip
Adding new empathy_strdiff API stolen from telepathy-glib. It check if
2007-08-02 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-accounts-dialog.c: * libempathy/empathy-utils.c: * libempathy/empathy-utils.h: Adding new empathy_strdiff API stolen from telepathy-glib. It check if strings are != NULL before using strcmp. Using that API to fix bug #461886. Should be used in more places. svn path=/trunk/; revision=224
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-accounts-dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-accounts-dialog.c b/libempathy-gtk/empathy-accounts-dialog.c
index 94a569730..151922e27 100644
--- a/libempathy-gtk/empathy-accounts-dialog.c
+++ b/libempathy-gtk/empathy-accounts-dialog.c
@@ -281,11 +281,11 @@ accounts_dialog_update_account (EmpathyAccountsDialog *dialog,
config_ui = mc_profile_get_configuration_ui (profile);
g_object_unref (profile);
- if (strcmp (config_ui, "jabber") == 0) {
+ if (!empathy_strdiff (config_ui, "jabber")) {
dialog->settings_widget =
empathy_account_widget_jabber_new (account);
}
- else if (strcmp (config_ui, "msn") == 0) {
+ else if (!empathy_strdiff (config_ui, "msn")) {
dialog ->settings_widget =
empathy_account_widget_msn_new (account);
}