[gnome-games] input-mode-switcher: Handle NONE in the switch statement



commit 7be729c353c5760476bf45f4b6b0081058c76b6b
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri May 1 17:17:29 2020 +0500

    input-mode-switcher: Handle NONE in the switch statement
    
    Fix a compile-time warning.

 src/ui/input-mode-switcher.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/ui/input-mode-switcher.vala b/src/ui/input-mode-switcher.vala
index 13321973..d808f040 100644
--- a/src/ui/input-mode-switcher.vala
+++ b/src/ui/input-mode-switcher.vala
@@ -49,6 +49,9 @@ private class Games.InputModeSwitcher : Gtk.Box {
                        keyboard_mode.active = true;
 
                        break;
+
+               case InputMode.NONE:
+                       break;
                }
        }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]