]> git.0d.be Git - empathy.git/commitdiff
chat-view: add message_acknowledged vfunc
authorJonny Lamb <jonnylamb@gnome.org>
Fri, 13 May 2011 10:35:42 +0000 (11:35 +0100)
committerJonny Lamb <jonnylamb@gnome.org>
Fri, 13 May 2011 14:25:15 +0000 (15:25 +0100)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
libempathy-gtk/empathy-chat-view.c
libempathy-gtk/empathy-chat-view.h

index 097215cfdfd615e9800b6b352191dd5c038fd89c..43d89dd78a090dc5a5858252d1c67c1d6cddb157 100644 (file)
@@ -212,3 +212,14 @@ empathy_chat_view_focus_toggled (EmpathyChatView *view,
        }
 }
 
+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);
+       }
+}
+
index 1af0721a3c3cfe7fe03fc741839af0c325e4945c..73245c4228f1bbd88a2a182174eef0ed1b9d9820 100644 (file)
@@ -70,6 +70,8 @@ struct _EmpathyChatViewIface {
        void             (*copy_clipboard)       (EmpathyChatView *view);
        void             (*focus_toggled)        (EmpathyChatView *view,
                                                  gboolean         has_focus);
+       void             (*message_acknowledged) (EmpathyChatView *view,
+                                                 EmpathyMessage  *message);
 };
 
 GType            empathy_chat_view_get_type             (void) G_GNUC_CONST;
@@ -101,6 +103,8 @@ void             empathy_chat_view_highlight            (EmpathyChatView *view,
 void             empathy_chat_view_copy_clipboard       (EmpathyChatView *view);
 void             empathy_chat_view_focus_toggled        (EmpathyChatView *view,
                                                         gboolean         has_focus);
+void             empathy_chat_view_message_acknowledged (EmpathyChatView *view,
+                                                        EmpathyMessage  *message);
 
 G_END_DECLS