aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-12 17:55:50 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-12 18:05:12 +0800
commitf312b6f85b4128dffd08a5afc7797b7c204c7887 (patch)
treea04fce76f7d5bf4ca2fbc6040c5260f4231e0ef2 /libempathy-gtk
parentd1bc3524be5909a9287b12b309f2dd2e97fc5778 (diff)
downloadgsoc2013-empathy-f312b6f85b4128dffd08a5afc7797b7c204c7887.tar
gsoc2013-empathy-f312b6f85b4128dffd08a5afc7797b7c204c7887.tar.gz
gsoc2013-empathy-f312b6f85b4128dffd08a5afc7797b7c204c7887.tar.bz2
gsoc2013-empathy-f312b6f85b4128dffd08a5afc7797b7c204c7887.tar.lz
gsoc2013-empathy-f312b6f85b4128dffd08a5afc7797b7c204c7887.tar.xz
gsoc2013-empathy-f312b6f85b4128dffd08a5afc7797b7c204c7887.tar.zst
gsoc2013-empathy-f312b6f85b4128dffd08a5afc7797b7c204c7887.zip
add empathy_get_current_action_time()
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c6
-rw-r--r--libempathy-gtk/empathy-ui-utils.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 89c6c09ae..cc829a894 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 6dd64ac51..d33b8c987 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__ */