[gnome-games/wip/exalm/ui4: 20/26] fullscreen-box: Use proper type for timeout id
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/ui4: 20/26] fullscreen-box: Use proper type for timeout id
- Date: Fri, 2 Aug 2019 20:15:22 +0000 (UTC)
commit 986a19ff3b5694af457e547b8cd39dbe81f41e33
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Jun 9 15:50:17 2019 +0500
fullscreen-box: Use proper type for timeout id
Use uint instead of long.
src/ui/fullscreen-box.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/fullscreen-box.vala b/src/ui/fullscreen-box.vala
index 73e83f38..e197c5a1 100644
--- a/src/ui/fullscreen-box.vala
+++ b/src/ui/fullscreen-box.vala
@@ -34,7 +34,7 @@ private class Games.FullscreenBox : Gtk.EventBox, Gtk.Buildable {
private Binding visible_binding;
private Binding fullscreen_binding;
- private long timeout_id;
+ private uint timeout_id;
construct {
visible_binding = bind_property ("is-fullscreen", header_bar_revealer,
@@ -75,7 +75,7 @@ private class Games.FullscreenBox : Gtk.EventBox, Gtk.Buildable {
private void on_activity () {
if (timeout_id != -1) {
- Source.remove ((uint) timeout_id);
+ Source.remove (timeout_id);
timeout_id = -1;
}
@@ -102,7 +102,7 @@ private class Games.FullscreenBox : Gtk.EventBox, Gtk.Buildable {
private void on_restore () {
if (timeout_id != -1) {
- Source.remove ((uint) timeout_id);
+ Source.remove (timeout_id);
timeout_id = -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]