[gnome-games/wip/exalm/ui4: 1/7] fullscreen-box: Use proper type for timeout id



commit ce043272f4fee814d36dc4480ef4dfb3f44d4e4a
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]