示例#1
0
    def build_widget(self):
        itemlistcontroller.SimpleItemListController.build_widget(self)

        # this only gets shown when the user is searching for things
        # in the feed and there are no results.
        text = _('No Results')
        self.widget.list_empty_mode_vbox.pack_start(
            itemlistwidgets.EmptyListHeader(text))
示例#2
0
 def build_widget(self):
     itemlistcontroller.SimpleItemListController.build_widget(self)
     text = _('This Playlist is Empty')
     self.widget.list_empty_mode_vbox.pack_start(
         itemlistwidgets.EmptyListHeader(text))
     text = _('To add an item, drag it onto the name of this playlist '
              'in the sidebar.')
     self.widget.list_empty_mode_vbox.pack_start(
         itemlistwidgets.EmptyListDescription(text))
示例#3
0
    def build_widget(self):
        feed_info = widgetutil.get_feed_info(self.id)

        self.titlebar.connect('filter-clicked', self.on_filter_clicked)
        self.titlebar.switch_to_view(self.widget.selected_view)
        self.titlebar.connect('search-changed', self._on_search_changed)
        self.widget.titlebar_vbox.pack_start(self.titlebar)
        if not self.is_folder and not self.is_directory_feed:
            self.widget.statusbar_vbox.pack_start(
                self._make_toolbar(feed_info))

        # this only gets shown when the user is searching for things
        # in the feed and there are no results.
        text = _('No Results')
        self.widget.list_empty_mode_vbox.pack_start(
                itemlistwidgets.EmptyListHeader(text))