[wiican: 6/16] [s][bin] Check wheter to launch default mapping on startup
- From: J. FÃlix OntaÃÃn <felixonta src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wiican: 6/16] [s][bin] Check wheter to launch default mapping on startup
- Date: Sun, 19 Aug 2012 23:22:54 +0000 (UTC)
commit a202836966f97e8aa1a2460a642c332e394a281f
Author: J. FÃlix OntaÃÃn <fontanon emergya es>
Date: Sun Feb 26 00:22:09 2012 +0100
[s][bin] Check wheter to launch default mapping on startup
bin/wiican | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/bin/wiican b/bin/wiican
index 46f1709..302e8e5 100755
--- a/bin/wiican
+++ b/bin/wiican
@@ -94,6 +94,11 @@ class WiicanIndicator(appindicator.Indicator, GConfStore):
self.__notificator = Notificator('wiican')
self.__status_cb(self.__cur_status)
+ # Check wheter to launch default mapping on startup
+ def_mapping = mapping_manager.get_default_mapping()
+ if def_mapping:
+ self.__launch_mapping(def_mapping)
+
# Check whether to show Mapping Manager on startup
self.loadconf(only_defaults=True)
self.mngrstartup_menuitem.set_active(self.options['show_manager_on_startup'])
@@ -197,6 +202,9 @@ class WiicanIndicator(appindicator.Indicator, GConfStore):
sys.exit(0)
def __discover_cb(self, discover_item, mapping=None):
+ self.__launch_mapping(mapping)
+
+ def __launch_mapping(self, mapping=None):
if self.__cur_status & WC_WIIMOTE_DISCOVERING:
self.__wiican_iface.DisconnectWiimote()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]