summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-09-23 14:01:40 +0200
committerraveit65 <[email protected]>2020-10-11 23:16:16 +0200
commit1207980e643c7a8ed0a9dca7049d7a3c44475f3e (patch)
treeacac4ff163d7866f6f5ccb4ff6b6eeef228b7fff
parent7fc62dcf0d80f9fc8b6adc92aca3f837060e55c1 (diff)
downloadmate-settings-daemon-1207980e643c7a8ed0a9dca7049d7a3c44475f3e.tar.bz2
mate-settings-daemon-1207980e643c7a8ed0a9dca7049d7a3c44475f3e.tar.xz
msd-media-keys-manager: 'GTimeVal' is deprecated
-rw-r--r--plugins/media-keys/msd-media-keys-manager.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c
index 8c0184a..14cb02d 100644
--- a/plugins/media-keys/msd-media-keys-manager.c
+++ b/plugins/media-keys/msd-media-keys-manager.c
@@ -1069,10 +1069,7 @@ msd_media_keys_manager_grab_media_player_keys (MsdMediaKeysManager *manager,
MediaPlayer *media_player;
if (time == GDK_CURRENT_TIME) {
- GTimeVal tv;
-
- g_get_current_time (&tv);
- time = tv.tv_sec * 1000 + tv.tv_usec / 1000;
+ time = (guint32)(g_get_monotonic_time () / 1000);
}
iter = g_list_find_custom (manager->priv->media_players,