diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-05-17 23:34:55 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-05-18 00:53:55 +0800 |
commit | 7946005c5c3b2d2821ed8c2cbfca85f31a8104fe (patch) | |
tree | 8bc29a4cf16f32195b88ec10249f03036483b6c3 /libempathy-gtk | |
parent | 7a50f19c30cf8388774e1182652eb2c1329ef220 (diff) | |
download | gsoc2013-empathy-7946005c5c3b2d2821ed8c2cbfca85f31a8104fe.tar gsoc2013-empathy-7946005c5c3b2d2821ed8c2cbfca85f31a8104fe.tar.gz gsoc2013-empathy-7946005c5c3b2d2821ed8c2cbfca85f31a8104fe.tar.bz2 gsoc2013-empathy-7946005c5c3b2d2821ed8c2cbfca85f31a8104fe.tar.lz gsoc2013-empathy-7946005c5c3b2d2821ed8c2cbfca85f31a8104fe.tar.xz gsoc2013-empathy-7946005c5c3b2d2821ed8c2cbfca85f31a8104fe.tar.zst gsoc2013-empathy-7946005c5c3b2d2821ed8c2cbfca85f31a8104fe.zip |
Add empathy_chat_view_append_event_markup
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-chat-view.c | 16 | ||||
-rw-r--r-- | libempathy-gtk/empathy-chat-view.h | 6 |
2 files changed, 22 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat-view.c b/libempathy-gtk/empathy-chat-view.c index ada669885..720ff2bbf 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_scroll (EmpathyChatView *view, gboolean allow_scrolling) { diff --git a/libempathy-gtk/empathy-chat-view.h b/libempathy-gtk/empathy-chat-view.h index 96365a618..d25797db5 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 (*scroll) (EmpathyChatView *view, gboolean allow_scrolling); void (*scroll_down) (EmpathyChatView *view); @@ -75,6 +78,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_scroll (EmpathyChatView *view, gboolean allow_scrolling); void empathy_chat_view_scroll_down (EmpathyChatView *view); |