aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.h
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-07-26 22:27:45 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-07-26 22:27:45 +0800
commitbc51bf4283ead42b56ddcd174d3273b446ac4aa4 (patch)
tree0c13a5b7b0cc6e8a678db595e6b79eb2d46ffa25 /libempathy-gtk/empathy-contact-widget.h
parent7907c710253ba70cf1b3f475a1f7be79d0e3f546 (diff)
downloadgsoc2013-empathy-bc51bf4283ead42b56ddcd174d3273b446ac4aa4.tar
gsoc2013-empathy-bc51bf4283ead42b56ddcd174d3273b446ac4aa4.tar.gz
gsoc2013-empathy-bc51bf4283ead42b56ddcd174d3273b446ac4aa4.tar.bz2
gsoc2013-empathy-bc51bf4283ead42b56ddcd174d3273b446ac4aa4.tar.lz
gsoc2013-empathy-bc51bf4283ead42b56ddcd174d3273b446ac4aa4.tar.xz
gsoc2013-empathy-bc51bf4283ead42b56ddcd174d3273b446ac4aa4.tar.zst
gsoc2013-empathy-bc51bf4283ead42b56ddcd174d3273b446ac4aa4.zip
Do not show salut accounts in the add contact dialog. Rework a bit
2007-07-26 Xavier Claessens <xclaesse@gmail.com> * 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
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.h')
-rw-r--r--libempathy-gtk/empathy-contact-widget.h13
1 files changed, 10 insertions, 3 deletions
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__ */