aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.h
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-10-10 02:07:57 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-10-10 02:07:57 +0800
commitb152949a3102c150af0c99fb84e8fecf2c69191f (patch)
tree373a7f9d282419ee869db15c8a61ae8b13af53ef /libempathy-gtk/empathy-contact-widget.h
parentbfe4734f01b202ae448616e6c711a46c5d0d7f6e (diff)
downloadgsoc2013-empathy-b152949a3102c150af0c99fb84e8fecf2c69191f.tar
gsoc2013-empathy-b152949a3102c150af0c99fb84e8fecf2c69191f.tar.gz
gsoc2013-empathy-b152949a3102c150af0c99fb84e8fecf2c69191f.tar.bz2
gsoc2013-empathy-b152949a3102c150af0c99fb84e8fecf2c69191f.tar.lz
gsoc2013-empathy-b152949a3102c150af0c99fb84e8fecf2c69191f.tar.xz
gsoc2013-empathy-b152949a3102c150af0c99fb84e8fecf2c69191f.tar.zst
gsoc2013-empathy-b152949a3102c150af0c99fb84e8fecf2c69191f.zip
More flexible API for EmpathyContactWidget, we now have flags to set
2007-10-09 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-main-window.c: * libempathy-gtk/empathy-contact-dialogs.c: * libempathy-gtk/empathy-contact-list-view.c: * libempathy-gtk/empathy-contact-dialogs.h: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/empathy-contact-widget.h: * libempathy-gtk/empathy-chat-window.c: * megaphone/src/megaphone-applet.c: More flexible API for EmpathyContactWidget, we now have flags to set editable each fields. Implement personal information menu item in main window. svn path=/trunk/; revision=365
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.h')
-rw-r--r--libempathy-gtk/empathy-contact-widget.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.h b/libempathy-gtk/empathy-contact-widget.h
index 71fc06acb..3a2aed996 100644
--- a/libempathy-gtk/empathy-contact-widget.h
+++ b/libempathy-gtk/empathy-contact-widget.h
@@ -30,16 +30,17 @@
G_BEGIN_DECLS
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 */
- CONTACT_WIDGET_TYPE_EDIT_USER /* used to edit our own information */
-} EmpathyContactWidgetType;
+ EMPATHY_CONTACT_WIDGET_EDIT_ALIAS = 1 << 0,
+ EMPATHY_CONTACT_WIDGET_EDIT_AVATAR = 1 << 1,
+ EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT = 1 << 2,
+ EMPATHY_CONTACT_WIDGET_EDIT_ID = 1 << 3,
+ EMPATHY_CONTACT_WIDGET_EDIT_GROUPS = 1 << 4,
+} EmpathyContactWidgetFlags;
-GtkWidget * empathy_contact_widget_new (EmpathyContact *contact,
- EmpathyContactWidgetType type);
-EmpathyContact *empathy_contact_widget_get_contact (GtkWidget *widget);
+GtkWidget * empathy_contact_widget_new (EmpathyContact *contact,
+ EmpathyContactWidgetFlags flags);
+EmpathyContact *empathy_contact_widget_get_contact (GtkWidget *widget);
G_END_DECLS
+
#endif /* __EMPATHY_CONTACT_WIDGET_H__ */