From af5e65fd7953a0e9e0d1fc4a75a26b103df9dbaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 27 Jul 2016 15:46:38 +0200 Subject: [PATCH] global: Make timestamp parameter unsigned Negative values don't make sense to timestamps, and an unsigned timestamp as returned by shell_global_get_current_time() or Gdk/Clutter events may exceed the range of signed integers. https://bugzilla.gnome.org/show_bug.cgi?id=769216 --- src/shell-global.c | 2 +- src/shell-global.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell-global.c b/src/shell-global.c index 2b6eb8f65..480b2fe4d 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1583,7 +1583,7 @@ shell_global_get_current_time (ShellGlobal *global) */ GAppLaunchContext * shell_global_create_app_launch_context (ShellGlobal *global, - int timestamp, + guint32 timestamp, int workspace) { GdkAppLaunchContext *context; diff --git a/src/shell-global.h b/src/shell-global.h index c043f4714..47c441553 100644 --- a/src/shell-global.h +++ b/src/shell-global.h @@ -71,7 +71,7 @@ void shell_global_sync_pointer (ShellGlobal *global); GAppLaunchContext * shell_global_create_app_launch_context (ShellGlobal *global, - int timestamp, + guint32 timestamp, int workspace); void shell_global_play_theme_sound (ShellGlobal *global,