From bc51bf4283ead42b56ddcd174d3273b446ac4aa4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 26 Jul 2007 14:27:45 +0000 Subject: Do not show salut accounts in the add contact dialog. Rework a bit 2007-07-26 Xavier Claessens * libempathy-gtk/empathy-account-chooser.c: * libempathy-gtk/empathy-new-chatroom-dialog.c: * libempathy-gtk/empathy-account-chooser.h: * libempathy-gtk/empathy-contact-dialogs.c: * libempathy-gtk/empathy-chatrooms-window.c: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/empathy-contact-widget.h: * libempathy-gtk/empathy-log-window.c: * doc/*: Do not show salut accounts in the add contact dialog. Rework a bit EmpathyContactWidget. Fixes bug #459100 (Guillaume Desmottes, Xavier Claessens). svn path=/trunk/; revision=197 --- libempathy-gtk/empathy-contact-widget.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'libempathy-gtk/empathy-contact-widget.h') diff --git a/libempathy-gtk/empathy-contact-widget.h b/libempathy-gtk/empathy-contact-widget.h index f48d15e70..119d8a596 100644 --- a/libempathy-gtk/empathy-contact-widget.h +++ b/libempathy-gtk/empathy-contact-widget.h @@ -29,9 +29,16 @@ G_BEGIN_DECLS -GtkWidget * empathy_contact_widget_new (EmpathyContact *contact, - gboolean editable); -EmpathyContact *empathy_contact_widget_get_contact (GtkWidget *widget); +typedef enum { + CONTACT_WIDGET_TYPE_SHOW, /* used to show contact information */ + CONTACT_WIDGET_TYPE_EDIT, /* used to edit contact information */ + CONTACT_WIDGET_TYPE_ADD, /* used to add a new contact */ + CONTACT_WIDGET_TYPE_SUBSCRIPTION /* used to accepte/reject a new contact */ +} EmpathyContactWidgetType; + +GtkWidget * empathy_contact_widget_new (EmpathyContact *contact, + EmpathyContactWidgetType type); +EmpathyContact *empathy_contact_widget_get_contact (GtkWidget *widget); G_END_DECLS #endif /* __EMPATHY_CONTACT_WIDGET_H__ */ -- cgit v1.2.3