Ejemplo n.º 1
0
 def show_menu(self):
     active_profile = g15profile.get_active_profile(self.screen.device)
     g15plugin.G15MenuPlugin.show_menu(self)
     if active_profile:
         item = find(lambda m: m.profile == active_profile, self.menu.get_children())
         if item:
             self.menu.set_selected_item(item)
Ejemplo n.º 2
0
Archivo: menu.py Proyecto: FPar/gnome15
 def show_menu(self):
     visible_page = self.screen.get_visible_page()
     g15plugin.G15MenuPlugin.show_menu(self)
     self._reset_delete_timer()
     if visible_page:
         item = find(lambda m: m._item_page == visible_page, self.menu.get_children())
         if item:
             self.menu.set_selected_item(item)
Ejemplo n.º 3
0
 def show_menu(self):
     active_profile = g15profile.get_active_profile(self.screen.device)
     g15plugin.G15MenuPlugin.show_menu(self)
     if active_profile:
         item = find(lambda m: m.profile == active_profile,
                     self.menu.get_children())
         if item:
             self.menu.set_selected_item(item)
Ejemplo n.º 4
0
 def show_menu(self):
     visible_page = self.screen.get_visible_page()
     g15plugin.G15MenuPlugin.show_menu(self)
     self._reset_delete_timer()
     if visible_page:
         item = find(lambda m: m._item_page == visible_page,
                     self.menu.get_children())
         if item:
             self.menu.set_selected_item(item)
Ejemplo n.º 5
0
 def _get_item_for_current_resolution(self):
     return g15pythonlang.find(lambda m: m.current, self.menu.get_children())
Ejemplo n.º 6
0
 def _get_item_for_current_resolution(self):
     return g15pythonlang.find(lambda m: m.current, self.menu.get_children())
Ejemplo n.º 7
0
def find(f, seq):
    return g15pythonlang.find(f, seq)