diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2022-02-08 12:18:46 -0300 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-02-09 18:13:27 +0100 |
commit | 7be70893490a561934bc848120adbffc5b4e4656 (patch) | |
tree | b2ff063438019a72b4765ebcd6266c8a30ea3c6b | |
parent | 740d71cadf6c2cba84738828109258cf00a4ad39 (diff) | |
download | totem-7be70893490a561934bc848120adbffc5b4e4656.tar.gz |
open-directory: Replace GTimeVal by g_get_monotonic_time()
GTimeVal is deprecated, and will be removed in a future version
of GLib. Use g_get_monotonic_time() instead.
-rw-r--r-- | src/plugins/open-directory/totem-open-directory.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/open-directory/totem-open-directory.c b/src/plugins/open-directory/totem-open-directory.c index 0171ab3d6..30ce8a14a 100644 --- a/src/plugins/open-directory/totem-open-directory.c +++ b/src/plugins/open-directory/totem-open-directory.c @@ -41,10 +41,9 @@ TOTEM_PLUGIN_REGISTER(TOTEM_TYPE_OPEN_DIRECTORY_PLUGIN, TotemOpenDirectoryPlugin static char * get_notification_id (void) { - GTimeVal time; - - g_get_current_time (&time); - return g_strdup_printf ("%s_TIME%ld", "totem", time.tv_sec); + return g_strdup_printf ("%s_TIME%ld", + "totem", + g_get_monotonic_time () / G_TIME_SPAN_SECOND); } static void |