summaryrefslogtreecommitdiff
path: root/pluma/pluma-app.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-05-10 19:36:29 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-06-16 19:53:18 +0200
commit7ce1a66e8b52e4f6f03a57f08973c750f6bc5ead (patch)
tree8699f9012e3b09cc4bd4382f77b74cdacd09df96 /pluma/pluma-app.c
parent43ee3b27f218ab513a11a253b4b8161eeec9b0df (diff)
downloadpluma-7ce1a66e8b52e4f6f03a57f08973c750f6bc5ead.tar.bz2
pluma-7ce1a66e8b52e4f6f03a57f08973c750f6bc5ead.tar.xz
Remove warning ‘GTimeVal’ is deprecated
Diffstat (limited to 'pluma/pluma-app.c')
-rw-r--r--pluma/pluma-app.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/pluma/pluma-app.c b/pluma/pluma-app.c
index 1cffa77f..c9d2e614 100644
--- a/pluma/pluma-app.c
+++ b/pluma/pluma-app.c
@@ -448,14 +448,10 @@ window_destroy (PlumaWindow *window,
static gchar *
gen_role (void)
{
- GTimeVal result;
static gint serial;
- g_get_current_time (&result);
-
- return g_strdup_printf ("pluma-window-%ld-%ld-%d-%s",
- result.tv_sec,
- result.tv_usec,
+ return g_strdup_printf ("pluma-window-%" G_GINT64_FORMAT "-%d-%s",
+ g_get_real_time (),
serial++,
g_get_host_name ());
}