From e03a94e9430943923fd7bc8812a70f2cab5267c6 Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Mon, 17 Jan 2011 11:42:52 +0200 Subject: Raise an error when no keyboard is loaded. --- caribou/ui/window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/caribou/ui/window.py b/caribou/ui/window.py index d6739f1..153a280 100644 --- a/caribou/ui/window.py +++ b/caribou/ui/window.py @@ -222,6 +222,8 @@ class CaribouWindow(Gtk.Window, Clutter.Animatable, ProximityWindowBase): if os.path.exists(xml_path): return xml_path + raise Exception("Could not load keyboard %s" % conf_file_path) + def show_all(self): Gtk.Window.show_all(self) -- cgit v1.2.1