Index: channels/specbuttons.py ================================================================== --- channels/specbuttons.py +++ channels/specbuttons.py @@ -1,9 +1,9 @@ # encoding: utf-8 # title: Spec buttons for apps # description: Adds configurable mini toolbar buttons -# version: 0.8.1 +# version: 0.8.2 # depends: streamtuner2 >= 2.2.0 # type: feature # category: ui # config: # { name: specbutton_rows, value: 2, max: 4, type: int, description: "Number of rows to arrange buttons in." } @@ -61,11 +61,13 @@ # clean up for widget in self.specbuttons.get_children(): widget.destroy() # add icon buttons - for xy, (btn, cmd) in enumerate(conf.specbuttons.items()): + #for xy, (btn, cmd) in enumerate(conf.specbuttons.items()): + for xy, (btn) in enumerate( sorted ( conf.specbuttons )): + cmd = conf.specbuttons [btn] #log.IN(btn, cmd) w_btn = gtk.Button() w_btn.set_image(self.icon(btn)) w_btn.connect("clicked", lambda x0, cmd=cmd, *x: self.action(cmd)) self.specbuttons.attach(