From c148fa47c66cda9d3ae499b1da97e858aedd0ce1 Mon Sep 17 00:00:00 2001 From: epage Date: Fri, 27 Mar 2009 01:03:05 +0000 Subject: [PATCH] Fixing a bug and cutting down the noise git-svn-id: file:///svnroot/ejpi/trunk@25 df6cc7de-23d0-4ae0-bb86-c17aa67b2a9d --- src/ejpi_glade.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/ejpi_glade.py b/src/ejpi_glade.py index d02a976..3a94566 100755 --- a/src/ejpi_glade.py +++ b/src/ejpi_glade.py @@ -197,10 +197,7 @@ class Calculator(object): global hildon self._app = None self._isFullScreen = False - if hildon is not None and self.__window is gtk.Window: - warnings.warn("Hildon installed but glade file not updated to work with hildon", UserWarning, 2) - hildon = None - elif hildon is not None: + if hildon is not None: self._app = hildon.Program() self.__window = hildon.Window() self._widgetTree.get_widget("mainLayout").reparent(self.__window) @@ -217,7 +214,7 @@ class Calculator(object): self.__window.connect("key-press-event", self._on_key_press) self.__window.connect("window-state-event", self._on_window_state_change) else: - warnings.warn("No Hildon", UserWarning, 2) + pass # warnings.warn("No Hildon", UserWarning, 2) self.__errorDisplay = ErrorDisplay(self._widgetTree) self.__userEntry = ValueEntry(self._widgetTree.get_widget("entryView")) @@ -273,7 +270,7 @@ class Calculator(object): device = osso.DeviceState(self._osso) device.set_device_state_callback(self._on_device_state_change, 0) else: - warnings.warn("No OSSO", UserWarning, 2) + pass # warnings.warn("No OSSO", UserWarning, 2) def display_error_message(self, msg): error_dialog = gtk.MessageDialog(None, 0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, msg) -- 1.7.9.5