[wiican: 9/16] [s][ui] Bugfixes on mappings menu sensitive status
- From: J. FÃlix OntaÃÃn <felixonta src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wiican: 9/16] [s][ui] Bugfixes on mappings menu sensitive status
- Date: Sun, 19 Aug 2012 23:23:09 +0000 (UTC)
commit 1cc2906eb96b6c8362384205234fdd02c162ada1
Author: J. FÃlix OntaÃÃn <fontanon emergya es>
Date: Sun Feb 26 23:09:55 2012 +0100
[s][ui] Bugfixes on mappings menu sensitive status
bin/wiican | 3 +++
data/mapping.ui | 4 +++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/bin/wiican b/bin/wiican
index 302e8e5..c399978 100755
--- a/bin/wiican
+++ b/bin/wiican
@@ -149,6 +149,8 @@ class WiicanIndicator(appindicator.Indicator, GConfStore):
return True
self.disconnect_menuitem.set_sensitive(True)
+ for mapping_menuitem in self.menu_mappings:
+ mapping_menuitem.set_sensitive(False)
gobject.timeout_add(500, animate)
def __load_mappings_menu(self):
@@ -171,6 +173,7 @@ class WiicanIndicator(appindicator.Indicator, GConfStore):
menuitem.set_tooltip_text(mapping.get_comment())
menuitem.set_image(gtk.image_new_from_pixbuf(icon))
menuitem.connect('activate', self.__discover_cb, mapping)
+ if self.__cur_status & WC_WIIMOTE_DISCOVERING: menuitem.set_sensitive(False)
menuitem.show()
no_visible_mappings = False
self.main_menu.insert(menuitem, cur_position)
diff --git a/data/mapping.ui b/data/mapping.ui
index 05dd6dc..1d06adb 100644
--- a/data/mapping.ui
+++ b/data/mapping.ui
@@ -701,10 +701,12 @@ Changes will be saved in a new mapping.</property>
<property name="title">Menu</property>
<child>
<object class="GtkCellRendererToggle" id="visible_cell">
+ <property name="xpad">12</property>
+ <property name="xalign">1</property>
<signal name="toggled" handler="visible_cell_toggled_cb" swapped="no"/>
</object>
<attributes>
- <attribute name="activatable">4</attribute>
+ <attribute name="active">4</attribute>
</attributes>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]