aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat-text-view.h
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-12-16 17:24:35 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-12-16 17:24:35 +0800
commit40d7a5f59c1f9e6f29108238e77c206ed453883f (patch)
treee65ec3672e6c2df4ede307296d81adf348c7e560 /libempathy-gtk/empathy-chat-text-view.h
parenta4c5b1a7462ff78724f38729b8c3556395c6bcfb (diff)
downloadgsoc2013-empathy-40d7a5f59c1f9e6f29108238e77c206ed453883f.tar
gsoc2013-empathy-40d7a5f59c1f9e6f29108238e77c206ed453883f.tar.gz
gsoc2013-empathy-40d7a5f59c1f9e6f29108238e77c206ed453883f.tar.bz2
gsoc2013-empathy-40d7a5f59c1f9e6f29108238e77c206ed453883f.tar.lz
gsoc2013-empathy-40d7a5f59c1f9e6f29108238e77c206ed453883f.tar.xz
gsoc2013-empathy-40d7a5f59c1f9e6f29108238e77c206ed453883f.tar.zst
gsoc2013-empathy-40d7a5f59c1f9e6f29108238e77c206ed453883f.zip
Completely rework the theming system to make easy implementing themes based on other classes like webkit.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1993 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-chat-text-view.h')
-rw-r--r--libempathy-gtk/empathy-chat-text-view.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-chat-text-view.h b/libempathy-gtk/empathy-chat-text-view.h
index 2e8bee48d..120d370f1 100644
--- a/libempathy-gtk/empathy-chat-text-view.h
+++ b/libempathy-gtk/empathy-chat-text-view.h
@@ -38,16 +38,14 @@ G_BEGIN_DECLS
#define EMPATHY_TYPE_CHAT_TEXT_VIEW (empathy_chat_text_view_get_type ())
#define EMPATHY_CHAT_TEXT_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CHAT_TEXT_VIEW, EmpathyChatTextView))
-#define EMPATHY_CHAT_TEXT_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_CHAT_TEXT_VIEW, EmpathyChatViewClass))
+#define EMPATHY_CHAT_TEXT_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_CHAT_TEXT_VIEW, EmpathyChatTextViewClass))
#define EMPATHY_IS_CHAT_TEXT_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CHAT_TEXT_VIEW))
#define EMPATHY_IS_CHAT_TEXT_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CHAT_TEXT_VIEW))
-#define EMPATHY_CHAT_TEXT_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CHAT_TEXT_VIEW, EmpathyChatViewClass))
+#define EMPATHY_CHAT_TEXT_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CHAT_TEXT_VIEW, EmpathyChatTextViewClass))
typedef struct _EmpathyChatTextView EmpathyChatTextView;
typedef struct _EmpathyChatTextViewClass EmpathyChatTextViewClass;
-#include "empathy-theme.h"
-
struct _EmpathyChatTextView {
GtkTextView parent;
gpointer priv;
@@ -55,10 +53,33 @@ struct _EmpathyChatTextView {
struct _EmpathyChatTextViewClass {
GtkTextViewClass parent_class;
+
+ /* <vtable> */
+ void (*append_message) (EmpathyChatTextView *view,
+ EmpathyMessage *message);
};
-GType empathy_chat_text_view_get_type (void) G_GNUC_CONST;
-EmpathyChatTextView *empathy_chat_text_view_new (void);
+#define EMPATHY_CHAT_TEXT_VIEW_TAG_CUT "cut"
+#define EMPATHY_CHAT_TEXT_VIEW_TAG_HIGHLIGHT "highlight"
+#define EMPATHY_CHAT_TEXT_VIEW_TAG_SPACING "spacing"
+#define EMPATHY_CHAT_TEXT_VIEW_TAG_TIME "time"
+#define EMPATHY_CHAT_TEXT_VIEW_TAG_ACTION "action"
+#define EMPATHY_CHAT_TEXT_VIEW_TAG_BODY "body"
+#define EMPATHY_CHAT_TEXT_VIEW_TAG_EVENT "event"
+#define EMPATHY_CHAT_TEXT_VIEW_TAG_LINK "link"
+
+GType empathy_chat_text_view_get_type (void) G_GNUC_CONST;
+EmpathyContact * empathy_chat_text_view_get_last_contact (EmpathyChatTextView *view);
+void empathy_chat_text_view_set_only_if_date (EmpathyChatTextView *view,
+ gboolean only_if_date);
+void empathy_chat_text_view_append_body (EmpathyChatTextView *view,
+ const gchar *body,
+ const gchar *tag);
+void empathy_chat_text_view_append_spacing (EmpathyChatTextView *view);
+GtkTextTag * empathy_chat_text_view_tag_set (EmpathyChatTextView *view,
+ const gchar *tag_name,
+ const gchar *first_property_name,
+ ...);
G_END_DECLS