+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.
+
2007-08-02 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-account-widget-generic.c: Remove size_group.
#include <gtk/gtk.h>
#include <libmissioncontrol/mc-profile.h>
+#include <libmissioncontrol/mc-protocol.h>
#include "empathy-profile-chooser.h"
#include "empathy-ui-utils.h"
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),