#define __EMPATHY_CHAT_VIEW_H__
#include <gtk/gtktextview.h>
-#include <gtk/gtktooltips.h>
#include <libempathy/empathy-contact.h>
#include <libempathy/empathy-message.h>
typedef struct _EmpathyChatViewClass EmpathyChatViewClass;
typedef struct _EmpathyChatViewPriv EmpathyChatViewPriv;
+#include "empathy-theme.h"
+
struct _EmpathyChatView {
GtkTextView parent;
};
GtkTextViewClass parent_class;
};
+typedef enum {
+ EMPATHY_CHAT_VIEW_BLOCK_NONE,
+ EMPATHY_CHAT_VIEW_BLOCK_SELF,
+ EMPATHY_CHAT_VIEW_BLOCK_OTHER,
+ EMPATHY_CHAT_VIEW_BLOCK_EVENT,
+ EMPATHY_CHAT_VIEW_BLOCK_TIME,
+ EMPATHY_CHAT_VIEW_BLOCK_INVITE
+} EmpathyChatViewBlock;
+
GType empathy_chat_view_get_type (void) G_GNUC_CONST;
EmpathyChatView *empathy_chat_view_new (void);
void empathy_chat_view_append_message (EmpathyChatView *view,
void empathy_chat_view_highlight (EmpathyChatView *view,
const gchar *text);
void empathy_chat_view_copy_clipboard (EmpathyChatView *view);
-gboolean empathy_chat_view_get_irc_style (EmpathyChatView *view);
-void empathy_chat_view_set_irc_style (EmpathyChatView *view,
- gboolean irc_style);
+EmpathyTheme * empathy_chat_view_get_theme (EmpathyChatView *view);
+void empathy_chat_view_set_theme (EmpathyChatView *view,
+ EmpathyTheme *theme);
void empathy_chat_view_set_margin (EmpathyChatView *view,
gint margin);
GtkWidget * empathy_chat_view_get_smiley_menu (GCallback callback,
- gpointer user_data,
- GtkTooltips *tooltips);
+ gpointer user_data);
void empathy_chat_view_set_is_group_chat (EmpathyChatView *view,
gboolean is_group_chat);
+time_t empathy_chat_view_get_last_timestamp (EmpathyChatView *view);
+void empathy_chat_view_set_last_timestamp (EmpathyChatView *view,
+ time_t timestamp);
+EmpathyChatViewBlock empathy_chat_view_get_last_block_type (EmpathyChatView *view);
+void empathy_chat_view_set_last_block_type (EmpathyChatView *view,
+ EmpathyChatViewBlock block_type);
+EmpathyContact * empathy_chat_view_get_last_contact (EmpathyChatView *view);
+void empathy_chat_view_set_last_contact (EmpathyChatView *view,
+ EmpathyContact *contact);
+GdkPixbuf * empathy_chat_view_get_avatar_pixbuf_with_cache (EmpathyContact *contact);
G_END_DECLS