aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-08-02 23:46:54 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-08-02 23:46:54 +0800
commit045b80e42cce904bc55cb59eec6cc798501aba23 (patch)
tree3113c497b802799e19f5e4ad1d66d10fb33de4b8 /libempathy-gtk
parentb3c114de37a14c884a2749a90461236e6b2b00b8 (diff)
downloadgsoc2013-empathy-045b80e42cce904bc55cb59eec6cc798501aba23.tar
gsoc2013-empathy-045b80e42cce904bc55cb59eec6cc798501aba23.tar.gz
gsoc2013-empathy-045b80e42cce904bc55cb59eec6cc798501aba23.tar.bz2
gsoc2013-empathy-045b80e42cce904bc55cb59eec6cc798501aba23.tar.lz
gsoc2013-empathy-045b80e42cce904bc55cb59eec6cc798501aba23.tar.xz
gsoc2013-empathy-045b80e42cce904bc55cb59eec6cc798501aba23.tar.zst
gsoc2013-empathy-045b80e42cce904bc55cb59eec6cc798501aba23.zip
Do not list profiles that don't have the corresponding CM installed when
2007-08-02 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-profile-chooser.c: Do not list profiles that don't have the corresponding CM installed when creating a new account. This is a workaround for MC bug: SF #1688779. svn path=/trunk/; revision=226
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-profile-chooser.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-profile-chooser.c b/libempathy-gtk/empathy-profile-chooser.c
index 6276c90b5..4bc1d6c95 100644
--- a/libempathy-gtk/empathy-profile-chooser.c
+++ b/libempathy-gtk/empathy-profile-chooser.c
@@ -26,6 +26,7 @@
#include <gtk/gtk.h>
#include <libmissioncontrol/mc-profile.h>
+#include <libmissioncontrol/mc-protocol.h>
#include "empathy-profile-chooser.h"
#include "empathy-ui-utils.h"
@@ -146,10 +147,19 @@ empathy_profile_chooser_new (void)
profiles = mc_profiles_list ();
for (l = profiles; l; l = l->next) {
- McProfile *profile;
+ McProfile *profile;
+ McProtocol *protocol;
profile = l->data;
+ /* Check if the CM is installed, otherwise skip that profile.
+ * Workaround SF bug #1688779 */
+ protocol = mc_profile_get_protocol (profile);
+ if (!protocol) {
+ continue;
+ }
+ g_object_unref (protocol);
+
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
COL_ICON, mc_profile_get_icon_name (profile),