diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2007-10-19 20:48:29 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-10-19 20:48:29 +0800 |
commit | e67e130e7203f3bc99013f1814df8b2cff89d72f (patch) | |
tree | 82df81264ab85ba837d0d3923ae98674768be48d /libempathy-gtk/empathy-profile-chooser.c | |
parent | a4b1c43fd11f07d46c207204db5e2cd8d11da7f3 (diff) | |
download | gsoc2013-empathy-e67e130e7203f3bc99013f1814df8b2cff89d72f.tar gsoc2013-empathy-e67e130e7203f3bc99013f1814df8b2cff89d72f.tar.gz gsoc2013-empathy-e67e130e7203f3bc99013f1814df8b2cff89d72f.tar.bz2 gsoc2013-empathy-e67e130e7203f3bc99013f1814df8b2cff89d72f.tar.lz gsoc2013-empathy-e67e130e7203f3bc99013f1814df8b2cff89d72f.tar.xz gsoc2013-empathy-e67e130e7203f3bc99013f1814df8b2cff89d72f.tar.zst gsoc2013-empathy-e67e130e7203f3bc99013f1814df8b2cff89d72f.zip |
set unsensitive the add button if there is no profile installed and tell
2007-10-19 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-profile-chooser.c:
* libempathy-gtk/empathy-profile-chooser.h:
* libempathy-gtk/empathy-accounts-dialog.c: set unsensitive the add
button if there is no profile installed and tell the user to install
some connection managers.
* libempathy-gtk/empathy-ui-utils.c: Fix indentation.
svn path=/trunk/; revision=381
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) { |