diff options
Diffstat (limited to 'libempathy-gtk/empathy-chat-view.h')
-rw-r--r-- | libempathy-gtk/empathy-chat-view.h | 60 |
1 files changed, 48 insertions, 12 deletions
diff --git a/libempathy-gtk/empathy-chat-view.h b/libempathy-gtk/empathy-chat-view.h index 0c54abdc7..acbcc8bc5 100644 --- a/libempathy-gtk/empathy-chat-view.h +++ b/libempathy-gtk/empathy-chat-view.h @@ -34,27 +34,60 @@ G_BEGIN_DECLS #define EMPATHY_TYPE_CHAT_VIEW (empathy_chat_view_get_type ()) #define EMPATHY_CHAT_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CHAT_VIEW, EmpathyChatView)) -#define EMPATHY_CHAT_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_CHAT_VIEW, EmpathyChatViewClass)) #define EMPATHY_IS_CHAT_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CHAT_VIEW)) -#define EMPATHY_IS_CHAT_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CHAT_VIEW)) -#define EMPATHY_CHAT_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CHAT_VIEW, EmpathyChatViewClass)) +#define EMPATHY_TYPE_CHAT_VIEW_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), EMPATHY_TYPE_CHAT_VIEW, EmpathyChatViewIface)) +#define empathy_chat_view_new(o) EMPATHY_CHAT_VIEW(empathy_chat_simple_view_new(o)) typedef struct _EmpathyChatView EmpathyChatView; -typedef struct _EmpathyChatViewClass EmpathyChatViewClass; +typedef struct _EmpathyChatViewIface EmpathyChatViewIface; #include "empathy-theme.h" -struct _EmpathyChatView { - GtkTextView parent; - gpointer priv; -}; +struct _EmpathyChatViewIface { + GTypeInterface base_iface; + + /* VTabled */ +void (*append_message) (EmpathyChatView *view, + EmpathyMessage *msg); +void (*append_event) (EmpathyChatView *view, + const gchar *str); +void (*append_button) (EmpathyChatView *view, + const gchar *message, + GtkWidget *button1, + GtkWidget *button2); +void (*set_margin) (EmpathyChatView *view, + gint margin); +void (*scroll) (EmpathyChatView *view, + gboolean allow_scrolling); +void (*scroll_down) (EmpathyChatView *view); +gboolean (*get_selection_bounds) (EmpathyChatView *view, + GtkTextIter *start, + GtkTextIter *end); +void (*clear) (EmpathyChatView *view); +gboolean (*find_previous) (EmpathyChatView *view, + const gchar *search_criteria, + gboolean new_search); +gboolean (*find_next) (EmpathyChatView *view, + const gchar *search_criteria, + gboolean new_search); +void (*find_abilities) (EmpathyChatView *view, + const gchar *search_criteria, + gboolean *can_do_previous, + gboolean *can_do_next); +void (*highlight) (EmpathyChatView *view, + const gchar *text); +void (*copy_clipboard) (EmpathyChatView *view); +EmpathyTheme * (*get_theme) (EmpathyChatView *view); +void (*set_theme) (EmpathyChatView *view, + EmpathyTheme *theme); +time_t (*get_last_timestamp) (EmpathyChatView *view); +void (*set_last_timestamp) (EmpathyChatView *view, + time_t timestamp); +EmpathyContact * (*get_last_contact) (EmpathyChatView *view); -struct _EmpathyChatViewClass { - GtkTextViewClass parent_class; }; -GType empathy_chat_view_get_type (void) G_GNUC_CONST; -EmpathyChatView *empathy_chat_view_new (void); +GType empathy_chat_view_get_type (void) G_GNUC_CONST; void empathy_chat_view_append_message (EmpathyChatView *view, EmpathyMessage *msg); void empathy_chat_view_append_event (EmpathyChatView *view, @@ -98,4 +131,7 @@ GdkPixbuf * empathy_chat_view_get_avatar_pixbuf_with_cache (EmpathyContact G_END_DECLS +#include "empathy-chat-simple-view.h" + #endif /* __EMPATHY_CHAT_VIEW_H__ */ + |