aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-dialogs.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-10-21 21:22:40 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-10-21 21:22:40 +0800
commit83e0eceb85a5362835421555408e90013664b00a (patch)
tree6193292ba2fb6995a6c1be4e17bb41275eddf357 /libempathy-gtk/empathy-contact-dialogs.c
parent004e78f70d1088c94bdd00e66c96260abe03cae9 (diff)
downloadgsoc2013-empathy-83e0eceb85a5362835421555408e90013664b00a.tar
gsoc2013-empathy-83e0eceb85a5362835421555408e90013664b00a.tar.gz
gsoc2013-empathy-83e0eceb85a5362835421555408e90013664b00a.tar.bz2
gsoc2013-empathy-83e0eceb85a5362835421555408e90013664b00a.tar.lz
gsoc2013-empathy-83e0eceb85a5362835421555408e90013664b00a.tar.xz
gsoc2013-empathy-83e0eceb85a5362835421555408e90013664b00a.tar.zst
gsoc2013-empathy-83e0eceb85a5362835421555408e90013664b00a.zip
Don't allow to change account if we are editing information of
2007-10-21 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-contact-dialogs.h: * libempathy-gtk/empathy-contact-dialogs.c: * libempathy-gtk/empathy-main-window.c: * libempathy-gtk/empathy-contact-list-view.c: Don't allow to change account if we are editing information of self-contact. svn path=/trunk/; revision=385
Diffstat (limited to 'libempathy-gtk/empathy-contact-dialogs.c')
-rw-r--r--libempathy-gtk/empathy-contact-dialogs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c
index 96895cc2f..6026374ea 100644
--- a/libempathy-gtk/empathy-contact-dialogs.c
+++ b/libempathy-gtk/empathy-contact-dialogs.c
@@ -151,7 +151,7 @@ void
empathy_contact_information_dialog_show (EmpathyContact *contact,
GtkWindow *parent,
gboolean edit,
- gboolean edit_groups)
+ gboolean is_user)
{
GtkWidget *dialog;
GtkWidget *button;
@@ -186,12 +186,12 @@ empathy_contact_information_dialog_show (EmpathyContact *contact,
/* Contact info widget */
if (edit) {
flags |= EMPATHY_CONTACT_WIDGET_EDIT_ALIAS;
- if (empathy_contact_is_user (contact)) {
- flags |= EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT |
- EMPATHY_CONTACT_WIDGET_EDIT_AVATAR;
- }
}
- if (edit_groups) {
+ if (is_user) {
+ flags |= EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT;
+ flags |= EMPATHY_CONTACT_WIDGET_EDIT_AVATAR;
+ }
+ if (!is_user && edit) {
flags |= EMPATHY_CONTACT_WIDGET_EDIT_GROUPS;
}
contact_widget = empathy_contact_widget_new (contact, flags);