+ self.fetcher = None
+ self.connect('destroy', self.on_destroy)
+
+ # Results list
+ self.panarea = hildon.PannableArea()
+ self.musiclist = MusicList()
+ self.musiclist.loading_message = "Nothing found yet"
+ self.musiclist.empty_message = "No matching results"
+ self.musiclist.connect('row-activated', self.row_activated)
+ self.panarea.add(self.musiclist)
+ vbox.pack_start(self.panarea, True, True, 0)
+
+
+ # Create selector for search mode
+ self.mode_selector = hildon.TouchSelector(text=True)
+
+ self.mode_selector.append_text("Artists")
+ self.mode_selector.append_text("Albums")
+ self.mode_selector.append_text("Tracks")
+ self.mode = hildon.PickerButton(gtk.HILDON_SIZE_FINGER_HEIGHT,
+ hildon.BUTTON_ARRANGEMENT_VERTICAL)
+ self.mode.set_title("Search for")
+ self.mode.set_selector(self.mode_selector)
+ self.mode_selector.connect("changed", self.mode_changed)
+ #vbox.pack_start(self.mode, False)
+ self.mode.set_active(1)
+
+
+ # Search box
+ hbox = gtk.HBox(False, 0)