aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-08-19 05:36:54 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-08-19 05:36:54 +0800
commit684f7de99bb013711b5446fa5ceb8c9fa46b5fe6 (patch)
tree2157aa56719f223829b61e1173ce4f8e0cf3a752
parentcef2b039adb5f26d90493a161c92392d1ea68da0 (diff)
downloadgsoc2013-empathy-684f7de99bb013711b5446fa5ceb8c9fa46b5fe6.tar
gsoc2013-empathy-684f7de99bb013711b5446fa5ceb8c9fa46b5fe6.tar.gz
gsoc2013-empathy-684f7de99bb013711b5446fa5ceb8c9fa46b5fe6.tar.bz2
gsoc2013-empathy-684f7de99bb013711b5446fa5ceb8c9fa46b5fe6.tar.lz
gsoc2013-empathy-684f7de99bb013711b5446fa5ceb8c9fa46b5fe6.tar.xz
gsoc2013-empathy-684f7de99bb013711b5446fa5ceb8c9fa46b5fe6.tar.zst
gsoc2013-empathy-684f7de99bb013711b5446fa5ceb8c9fa46b5fe6.zip
Do not display MSN Haze if butterfly is installed
svn path=/trunk/; revision=1350
-rw-r--r--libempathy-gtk/empathy-profile-chooser.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-profile-chooser.c b/libempathy-gtk/empathy-profile-chooser.c
index 6c46b6cc5..578bd2a4e 100644
--- a/libempathy-gtk/empathy-profile-chooser.c
+++ b/libempathy-gtk/empathy-profile-chooser.c
@@ -124,6 +124,7 @@ empathy_profile_chooser_new (void)
GtkWidget *combo_box;
GtkTreeIter iter;
gboolean iter_set = FALSE;
+ McManager *btf_cm;
/* set up combo box with new store */
store = gtk_list_store_new (COL_COUNT,
@@ -146,10 +147,12 @@ empathy_profile_chooser_new (void)
"text", COL_LABEL,
NULL);
+ btf_cm = mc_manager_lookup ("butterfly");
profiles = mc_profiles_list ();
for (l = profiles; l; l = l->next) {
- McProfile *profile;
- McProtocol *protocol;
+ McProfile *profile;
+ McProtocol *protocol;
+ const gchar *unique_name;
profile = l->data;
@@ -161,6 +164,12 @@ empathy_profile_chooser_new (void)
}
g_object_unref (protocol);
+ /* Skip MSN-Haze if we have butterfly */
+ unique_name = mc_profile_get_unique_name (profile);
+ if (btf_cm && strcmp (unique_name, "msn-haze") == 0) {
+ continue;
+ }
+
gtk_list_store_insert_with_values (store, &iter, 0,
COL_ICON, mc_profile_get_icon_name (profile),
COL_LABEL, mc_profile_get_display_name (profile),
@@ -168,6 +177,9 @@ empathy_profile_chooser_new (void)
-1);
iter_set = TRUE;
}
+ if (btf_cm) {
+ g_object_unref (btf_cm);
+ }
/* Set the profile sort function */
gtk_tree_sortable_set_sort_func (GTK_TREE_SORTABLE (store),