diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2007-12-21 00:39:49 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-12-21 00:39:49 +0800 |
commit | 63e82d2437ba18c31876defafb691422862fc91b (patch) | |
tree | bccd4385c38e6d7b2345a944b2d797cf0eaaeddf /libempathy-gtk/empathy-chat-view.h | |
parent | 94d5a22a766d6ad184a1ea9ae6468a875e847312 (diff) | |
download | gsoc2013-empathy-63e82d2437ba18c31876defafb691422862fc91b.tar gsoc2013-empathy-63e82d2437ba18c31876defafb691422862fc91b.tar.gz gsoc2013-empathy-63e82d2437ba18c31876defafb691422862fc91b.tar.bz2 gsoc2013-empathy-63e82d2437ba18c31876defafb691422862fc91b.tar.lz gsoc2013-empathy-63e82d2437ba18c31876defafb691422862fc91b.tar.xz gsoc2013-empathy-63e82d2437ba18c31876defafb691422862fc91b.tar.zst gsoc2013-empathy-63e82d2437ba18c31876defafb691422862fc91b.zip |
New chat theme engine imported from Gossip (Daniel Gryniewicz, Xavier Claessens).
svn path=/trunk/; revision=494
Diffstat (limited to 'libempathy-gtk/empathy-chat-view.h')
-rw-r--r-- | libempathy-gtk/empathy-chat-view.h | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-chat-view.h b/libempathy-gtk/empathy-chat-view.h index 0402bd7c0..37a7f9977 100644 --- a/libempathy-gtk/empathy-chat-view.h +++ b/libempathy-gtk/empathy-chat-view.h @@ -43,6 +43,8 @@ typedef struct _EmpathyChatView EmpathyChatView; typedef struct _EmpathyChatViewClass EmpathyChatViewClass; typedef struct _EmpathyChatViewPriv EmpathyChatViewPriv; +#include "empathy-theme.h" + struct _EmpathyChatView { GtkTextView parent; }; @@ -51,6 +53,15 @@ struct _EmpathyChatViewClass { GtkTextViewClass parent_class; }; +typedef enum { + BLOCK_TYPE_NONE, + BLOCK_TYPE_SELF, + BLOCK_TYPE_OTHER, + BLOCK_TYPE_EVENT, + BLOCK_TYPE_TIME, + BLOCK_TYPE_INVITE +} BlockType; + GType empathy_chat_view_get_type (void) G_GNUC_CONST; EmpathyChatView *empathy_chat_view_new (void); void empathy_chat_view_append_message (EmpathyChatView *view, @@ -83,15 +94,25 @@ void empathy_chat_view_find_abilities (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); 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); +BlockType empathy_chat_view_get_last_block_type (EmpathyChatView *view); +void empathy_chat_view_set_last_block_type (EmpathyChatView *view, + BlockType 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 |