diff options
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 6 | ||||
-rw-r--r-- | 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 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__ */ |