diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-08-04 08:39:47 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 21:17:38 +0800 |
commit | 008fe6aa33bcc251a83b4670ead7eff5f552c268 (patch) | |
tree | 828c22751248788b273cd055e77ee5ec5e8396f3 /libempathy-gtk/empathy-protocol-chooser.h | |
parent | f6a4501ee0965a8353b9ed638d37367f7068b34a (diff) | |
download | gsoc2013-empathy-008fe6aa33bcc251a83b4670ead7eff5f552c268.tar gsoc2013-empathy-008fe6aa33bcc251a83b4670ead7eff5f552c268.tar.gz gsoc2013-empathy-008fe6aa33bcc251a83b4670ead7eff5f552c268.tar.bz2 gsoc2013-empathy-008fe6aa33bcc251a83b4670ead7eff5f552c268.tar.lz gsoc2013-empathy-008fe6aa33bcc251a83b4670ead7eff5f552c268.tar.xz gsoc2013-empathy-008fe6aa33bcc251a83b4670ead7eff5f552c268.tar.zst gsoc2013-empathy-008fe6aa33bcc251a83b4670ead7eff5f552c268.zip |
Add an API to filter protocols
Diffstat (limited to 'libempathy-gtk/empathy-protocol-chooser.h')
-rw-r--r-- | libempathy-gtk/empathy-protocol-chooser.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-protocol-chooser.h b/libempathy-gtk/empathy-protocol-chooser.h index d6b944a2f..55e8e355e 100644 --- a/libempathy-gtk/empathy-protocol-chooser.h +++ b/libempathy-gtk/empathy-protocol-chooser.h @@ -39,7 +39,7 @@ G_BEGIN_DECLS EMPATHY_TYPE_PROTOCOL_CHOOSER)) #define EMPATHY_IS_PROTOCOL_CHOOSER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \ EMPATHY_TYPE_PROTOCOL_CHOOSER)) -#define EMPATHY_PROTOCOL_CHOOSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), \ +#define EMPATHY_PROTOCOL_CHOOSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o),\ EMPATHY_TYPE_PROTOCOL_CHOOSER, EmpathyProtocolChooserClass)) typedef struct _EmpathyProtocolChooser EmpathyProtocolChooser; @@ -58,11 +58,20 @@ struct _EmpathyProtocolChooserClass GtkComboBoxClass parent_class; }; +typedef gboolean (*EmpathyProtocolChooserFilterFunc) (TpConnectionManager *cm, + TpConnectionManagerProtocol *protocol, gpointer user_data); + GType empathy_protocol_chooser_get_type (void) G_GNUC_CONST; GtkWidget * empathy_protocol_chooser_new (void); TpConnectionManager *empathy_protocol_chooser_dup_selected ( EmpathyProtocolChooser *protocol_chooser, TpConnectionManagerProtocol **protocol); +void empathy_protocol_chooser_set_visible ( + EmpathyProtocolChooser *protocol_chooser, + EmpathyProtocolChooserFilterFunc func, + gpointer user_data); + + G_END_DECLS #endif /* __EMPATHY_PROTOCOL_CHOOSER_H__ */ |