diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-05-18 10:52:29 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-05-20 10:03:14 +0800 |
commit | e15d6b9eef9e7d1f2841e0aff52261e56d52bbfb (patch) | |
tree | 797be81c5102e96e8fc5005dde25f28dcc37dd4f | |
parent | 04e06bd134669152715ea52a33193c50f0ed0d87 (diff) | |
download | gsoc2013-empathy-e15d6b9eef9e7d1f2841e0aff52261e56d52bbfb.tar gsoc2013-empathy-e15d6b9eef9e7d1f2841e0aff52261e56d52bbfb.tar.gz gsoc2013-empathy-e15d6b9eef9e7d1f2841e0aff52261e56d52bbfb.tar.bz2 gsoc2013-empathy-e15d6b9eef9e7d1f2841e0aff52261e56d52bbfb.tar.lz gsoc2013-empathy-e15d6b9eef9e7d1f2841e0aff52261e56d52bbfb.tar.xz gsoc2013-empathy-e15d6b9eef9e7d1f2841e0aff52261e56d52bbfb.tar.zst gsoc2013-empathy-e15d6b9eef9e7d1f2841e0aff52261e56d52bbfb.zip |
Add edit_message() method to ChatView iface
-rw-r--r-- | libempathy-gtk/empathy-chat-view.c | 12 | ||||
-rw-r--r-- | libempathy-gtk/empathy-chat-view.h | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat-view.c b/libempathy-gtk/empathy-chat-view.c index ada669885..4002e8b31 100644 --- a/libempathy-gtk/empathy-chat-view.c +++ b/libempathy-gtk/empathy-chat-view.c @@ -84,6 +84,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) { diff --git a/libempathy-gtk/empathy-chat-view.h b/libempathy-gtk/empathy-chat-view.h index 96365a618..05360e047 100644 --- a/libempathy-gtk/empathy-chat-view.h +++ b/libempathy-gtk/empathy-chat-view.h @@ -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); @@ -75,6 +77,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); |