]> git.0d.be Git - empathy.git/commitdiff
Add edit_message() method to ChatView iface
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Wed, 18 May 2011 02:52:29 +0000 (12:52 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Sun, 12 Jun 2011 06:56:47 +0000 (07:56 +0100)
libempathy-gtk/empathy-chat-view.c
libempathy-gtk/empathy-chat-view.h

index 43d89dd78a090dc5a5858252d1c67c1d6cddb157..49c384489e6d79ada3bbd169e70e2d3be51e874a 100644 (file)
@@ -83,6 +83,18 @@ empathy_chat_view_append_event (EmpathyChatView *view,
        }
 }
 
+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)
index 73245c4228f1bbd88a2a182174eef0ed1b9d9820..1fa44450ab30fec559a5fa2f5cdd3a4ae04798ee 100644 (file)
@@ -46,6 +46,8 @@ struct _EmpathyChatViewIface {
                                                  EmpathyMessage  *msg);
        void             (*append_event)         (EmpathyChatView *view,
                                                  const gchar     *str);
+       void             (*edit_message)         (EmpathyChatView *view,
+                                                 EmpathyMessage  *message);
        void             (*scroll)               (EmpathyChatView *view,
                                                  gboolean         allow_scrolling);
        void             (*scroll_down)          (EmpathyChatView *view);
@@ -79,6 +81,8 @@ 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_edit_message         (EmpathyChatView *view,
+                                                        EmpathyMessage  *message);
 void             empathy_chat_view_scroll               (EmpathyChatView *view,
                                                         gboolean         allow_scrolling);
 void             empathy_chat_view_scroll_down          (EmpathyChatView *view);