Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
 def __show_contents_cb(self, menu_item):
     journal = journalactivity.get_journal()
     journal.set_active_volume(self._mount)
     journal.reveal()
Пример #4
0
 def handle_open_search(self, event_time):
     journalactivity.get_journal().show_journal()
Пример #5
0
 def __show_contents_cb(self, menu_item):
     journal = journalactivity.get_journal()
     journal.set_active_volume(self._mount)
     journal.reveal()
Пример #6
0
 def handle_open_search(self, event_time):
     journalactivity.get_journal().show_journal()
Пример #7
0
 def __button_release_event_cb(self, widget, event):
     journal = journalactivity.get_journal()
     journal.set_active_volume(self._mount)
     journal.reveal()
     return True