[empathy: 12/22] chat-view: add message_acknowledged vfunc



commit 3329e947496629d8275ad68791d73c49d9fc820f
Author: Jonny Lamb <jonnylamb gnome org>
Date:   Fri May 13 11:35:42 2011 +0100

    chat-view: add message_acknowledged vfunc
    
    Signed-off-by: Jonny Lamb <jonnylamb gnome org>

 libempathy-gtk/empathy-chat-view.c |   11 +++++++++++
 libempathy-gtk/empathy-chat-view.h |    4 ++++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat-view.c b/libempathy-gtk/empathy-chat-view.c
index 097215c..43d89dd 100644
--- a/libempathy-gtk/empathy-chat-view.c
+++ b/libempathy-gtk/empathy-chat-view.c
@@ -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);
+	}
+}
+
diff --git a/libempathy-gtk/empathy-chat-view.h b/libempathy-gtk/empathy-chat-view.h
index 1af0721..73245c4 100644
--- a/libempathy-gtk/empathy-chat-view.h
+++ b/libempathy-gtk/empathy-chat-view.h
@@ -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
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]