comparison src/cagou/plugins/plugin_wid_widget_selector.py @ 18:790dbc5c4e89

plugin widget selector: display improvment + host profiles are now used by default
author Goffi <goffi@goffi.org>
date Mon, 08 Aug 2016 00:54:11 +0200
parents ba14b596b90e
children d09bd16dbbe2
comparison
equal deleted inserted replaced
17:5c9feaa060a5 18:790dbc5c4e89
46 super(WidgetSelItem, self).__init__(**kwargs) 46 super(WidgetSelItem, self).__init__(**kwargs)
47 47
48 def select(self, *args): 48 def select(self, *args):
49 log.debug(u"widget selection: {}".format(self.plugin_info["name"])) 49 log.debug(u"widget selection: {}".format(self.plugin_info["name"]))
50 factory = self.plugin_info["factory"] 50 factory = self.plugin_info["factory"]
51 G.host.switchWidget(self, factory(self.plugin_info, None, None)) 51 G.host.switchWidget(self, factory(self.plugin_info, None, profiles=iter(G.host.profiles)))
52 52
53 def deselect(self, *args): 53 def deselect(self, *args):
54 pass 54 pass
55 55
56 56