diff options
Diffstat (limited to 'libempathy-gtk/empathy-profile-chooser.c')
-rw-r--r-- | libempathy-gtk/empathy-profile-chooser.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-profile-chooser.c b/libempathy-gtk/empathy-profile-chooser.c index ae32aff7f..256f95ddd 100644 --- a/libempathy-gtk/empathy-profile-chooser.c +++ b/libempathy-gtk/empathy-profile-chooser.c @@ -55,6 +55,16 @@ empathy_profile_chooser_get_selected (GtkWidget *widget) return profile; } +gint +empathy_profile_chooser_n_profiles (GtkWidget *widget) +{ + GtkTreeModel *model; + + model = gtk_combo_box_get_model (GTK_COMBO_BOX (widget)); + + return gtk_tree_model_iter_n_children (model, NULL); +} + static gint profile_chooser_sort_profile_value (McProfile *profile) { |