]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-chat-view.c
use the 48x48 version of the local-xmpp icon
[empathy.git] / libempathy-gtk / empathy-chat-view.c
index e68839635f6068bce1aca71f3124afc0efa3c9cd..f5d6ddf095deba9f09a1c3332edefa484a3e0e5e 100644 (file)
@@ -61,13 +61,15 @@ chat_view_base_init (gpointer klass)
 
 void
 empathy_chat_view_append_message (EmpathyChatView *view,
-                                 EmpathyMessage  *msg)
+                                 EmpathyMessage  *msg,
+                                 gboolean         should_highlight)
 {
        g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
 
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_message) {
                EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_message (view,
-                                                                        msg);
+                                                                        msg,
+                                                                        should_highlight);
        }
 }
 
@@ -83,6 +85,34 @@ 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)
+{
+       g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
+
+       if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->edit_message) {
+               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->edit_message (
+                       view, message);
+       }
+}
+
 void
 empathy_chat_view_scroll (EmpathyChatView *view,
                          gboolean        allow_scrolling)
@@ -164,6 +194,7 @@ empathy_chat_view_find_next (EmpathyChatView *view,
 void
 empathy_chat_view_find_abilities (EmpathyChatView *view,
                                  const gchar    *search_criteria,
+                                 gboolean        match_case,
                                  gboolean       *can_do_previous,
                                  gboolean       *can_do_next)
 {
@@ -172,6 +203,7 @@ empathy_chat_view_find_abilities (EmpathyChatView *view,
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_abilities) {
                EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_abilities (view,
                                                                         search_criteria,
+                                                                        match_case,
                                                                         can_do_previous,
                                                                         can_do_next);
        }
@@ -199,3 +231,25 @@ empathy_chat_view_copy_clipboard (EmpathyChatView *view)
        }
 }
 
+void
+empathy_chat_view_focus_toggled (EmpathyChatView *view,
+                                gboolean         has_focus)
+{
+       g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
+
+       if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->focus_toggled) {
+               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->focus_toggled (view, has_focus);
+       }
+}
+
+void
+empathy_chat_view_message_acknowledged (EmpathyChatView *view,
+                                       EmpathyMessage  *message)
+{
+       g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
+
+       if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->message_acknowledged) {
+               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->message_acknowledged (view, message);
+       }
+}
+