diff options
author | rbuj <[email protected]> | 2021-11-23 13:48:00 +0100 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2022-07-18 08:31:26 -0400 |
commit | 5a89697d32317b45c70a15ce0e6c67ebced75251 (patch) | |
tree | 6b83415793135f5afc18ca57b82022bcadd37405 /src/terminal-util.c | |
parent | e81e15ed093783d496b5165bfacc021b5392020c (diff) | |
download | mate-terminal-5a89697d32317b45c70a15ce0e6c67ebced75251.tar.bz2 mate-terminal-5a89697d32317b45c70a15ce0e6c67ebced75251.tar.xz |
Remove time.h
Diffstat (limited to 'src/terminal-util.c')
-rw-r--r-- | src/terminal-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal-util.c b/src/terminal-util.c index ce97f41..3ef9040 100644 --- a/src/terminal-util.c +++ b/src/terminal-util.c @@ -24,7 +24,6 @@ #include <string.h> #include <stdlib.h> -#include <time.h> #include <unistd.h> #include <sys/types.h> @@ -49,7 +48,8 @@ terminal_util_set_unique_role (GtkWindow *window, const char *prefix) { char *role; - role = g_strdup_printf ("%s-%d-%d-%d", prefix, getpid (), g_random_int (), (int) time (NULL)); + role = g_strdup_printf ("%s-%d-%d-%" G_GINT64_FORMAT, prefix, getpid (), g_random_int (), + g_get_real_time () / G_USEC_PER_SEC); gtk_window_set_role (window, role); g_free (role); } |