[empathy/gnome-3-0] add empathy_get_current_action_time()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-3-0] add empathy_get_current_action_time()
- Date: Thu, 12 May 2011 10:19:29 +0000 (UTC)
commit 74ce4ee413292d40eaab8671ef1933ba9560722f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu May 12 11:55:50 2011 +0200
add empathy_get_current_action_time()
libempathy-gtk/empathy-ui-utils.c | 6 ++++++
libempathy-gtk/empathy-ui-utils.h | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 89c6c09..cc829a8 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1994,3 +1994,9 @@ empathy_context_menu_new (GtkWidget *attach_to)
return menu;
}
+
+gint64
+empathy_get_current_action_time (void)
+{
+ return (tp_user_action_time_from_x11 (gtk_get_current_event_time ()));
+}
diff --git a/libempathy-gtk/empathy-ui-utils.h b/libempathy-gtk/empathy-ui-utils.h
index 6dd64ac..d33b8c9 100644
--- a/libempathy-gtk/empathy-ui-utils.h
+++ b/libempathy-gtk/empathy-ui-utils.h
@@ -150,6 +150,8 @@ void empathy_make_color_whiter (GdkRGBA *color);
GtkWidget * empathy_context_menu_new (GtkWidget *attach_to);
+gint64 empathy_get_current_action_time (void);
+
G_END_DECLS
#endif /* __EMPATHY_UI_UTILS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]