From 83e0eceb85a5362835421555408e90013664b00a Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 21 Oct 2007 13:22:40 +0000 Subject: Don't allow to change account if we are editing information of 2007-10-21 Xavier Claessens * 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 --- libempathy-gtk/empathy-contact-dialogs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libempathy-gtk/empathy-contact-dialogs.c') 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); -- cgit v1.2.3