aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-17 23:34:55 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-09-05 23:06:40 +0800
commit6c8045628c9b9092e80aa0183d0e33798c37d661 (patch)
treefe91286bea9ce09d8a3a21ba28aa9dd4b783e2f9
parent2ab17b3039eef2c93d6fce4c5bee5f452fa8e8c1 (diff)
downloadgsoc2013-empathy-6c8045628c9b9092e80aa0183d0e33798c37d661.tar
gsoc2013-empathy-6c8045628c9b9092e80aa0183d0e33798c37d661.tar.gz
gsoc2013-empathy-6c8045628c9b9092e80aa0183d0e33798c37d661.tar.bz2
gsoc2013-empathy-6c8045628c9b9092e80aa0183d0e33798c37d661.tar.lz
gsoc2013-empathy-6c8045628c9b9092e80aa0183d0e33798c37d661.tar.xz
gsoc2013-empathy-6c8045628c9b9092e80aa0183d0e33798c37d661.tar.zst
gsoc2013-empathy-6c8045628c9b9092e80aa0183d0e33798c37d661.zip
Add empathy_chat_view_append_event_markup
Conflicts: libempathy-gtk/empathy-chat-view.c libempathy-gtk/empathy-chat-view.h
-rw-r--r--libempathy-gtk/empathy-chat-view.c16
-rw-r--r--libempathy-gtk/empathy-chat-view.h6
2 files changed, 22 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat-view.c b/libempathy-gtk/empathy-chat-view.c
index 49c384489..088b12084 100644
--- a/libempathy-gtk/empathy-chat-view.c
+++ b/libempathy-gtk/empathy-chat-view.c
@@ -84,6 +84,22 @@ empathy_chat_view_append_event (EmpathyChatView *view,
}
void
+empathy_chat_view_append_event_markup (EmpathyChatView *view,
+ const gchar *markup_text,
+ const gchar *fallback_text)
+{
+ g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
+
+ if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_event_markup) {
+ EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_event_markup (view,
+ markup_text,
+ fallback_text);
+ } else {
+ empathy_chat_view_append_event (view, fallback_text);
+ }
+}
+
+void
empathy_chat_view_edit_message (EmpathyChatView *view,
EmpathyMessage *message)
{
diff --git a/libempathy-gtk/empathy-chat-view.h b/libempathy-gtk/empathy-chat-view.h
index 1fa44450a..bc9e91761 100644
--- a/libempathy-gtk/empathy-chat-view.h
+++ b/libempathy-gtk/empathy-chat-view.h
@@ -46,6 +46,9 @@ struct _EmpathyChatViewIface {
EmpathyMessage *msg);
void (*append_event) (EmpathyChatView *view,
const gchar *str);
+ void (*append_event_markup) (EmpathyChatView *view,
+ const gchar *markup_text,
+ const gchar *fallback_text);
void (*edit_message) (EmpathyChatView *view,
EmpathyMessage *message);
void (*scroll) (EmpathyChatView *view,
@@ -81,6 +84,9 @@ void empathy_chat_view_append_message (EmpathyChatView *view,
EmpathyMessage *msg);
void empathy_chat_view_append_event (EmpathyChatView *view,
const gchar *str);
+void empathy_chat_view_append_event_markup (EmpathyChatView *view,
+ const gchar *markup_text,
+ const gchar *fallback_text);
void empathy_chat_view_edit_message (EmpathyChatView *view,
EmpathyMessage *message);
void empathy_chat_view_scroll (EmpathyChatView *view,