def add_journal_button(self): if not self._journal: palette = ExtensionPalette() self._journal = get_journal() self._listview = self._journal.get_list_view() self._volumes_toolbar = self._journal.get_volumes_toolbar() self._volume_button = ExtensionButton(ACCOUNT_ICON, ICONS_PATH) self._volume_button.connect('toggled', self._journal_toggled) self._volume_button.connect('load-files', self._load_files) self._volume_button.connect('data-upload', self._upload_file) self._volumes_toolbar.add_extension_button(self._volume_button, ACCOUNT_NAME, palette) palette.set_item_cb(self.update_files)
def __show_contents_cb(self, menu_item): journal = journalactivity.get_journal() journal.set_active_volume(self._mount) journal.reveal()
def handle_open_search(self, event_time): journalactivity.get_journal().show_journal()
def __button_release_event_cb(self, widget, event): journal = journalactivity.get_journal() journal.set_active_volume(self._mount) journal.reveal() return True