]> git.0d.be Git - empathy.git/commitdiff
Add empathy_chat_view_append_event_markup
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Tue, 17 May 2011 15:34:55 +0000 (16:34 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 5 Sep 2011 15:06:40 +0000 (16:06 +0100)
Conflicts:

libempathy-gtk/empathy-chat-view.c
libempathy-gtk/empathy-chat-view.h

libempathy-gtk/empathy-chat-view.c
libempathy-gtk/empathy-chat-view.h

index 49c384489e6d79ada3bbd169e70e2d3be51e874a..088b1208478139975fcabc2e1b3aa2edd4518b02 100644 (file)
@@ -83,6 +83,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)
index 1fa44450ab30fec559a5fa2f5cdd3a4ae04798ee..bc9e9176105921abb18bfbe722635e3d71ace512 100644 (file)
@@ -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,