Beispiel #1
0
 def __item_activate_cb(self, menu_item, service_name):
     mime_type = self._metadata.get('mime_type', '')
     if mime_type:
         mime_registry = mimeregistry.get_registry()
         mime_registry.set_default_activity(mime_type, service_name)
     misc.resume(self._metadata, bundle_id=service_name,
                 alert_window=journalwindow.get_journal_window())
Beispiel #2
0
    def _resume_clicked_cb(self, button):
        if not misc.can_resume(self._metadata):
            palette = self._resume.get_palette()
            palette.popup(immediate=True)

        misc.resume(self._metadata,
                    alert_window=journalwindow.get_journal_window())
Beispiel #3
0
 def __icon_clicked_cb(self, cell, path):
     row = self.tree_view.get_model()[path]
     metadata = model.get(row[ListModel.COLUMN_UID])
     if metadata["activity"] == PROJECT_BUNDLE_ID:
         self.emit("project-view-activate", metadata)
         return
     misc.resume(metadata, alert_window=journalwindow.get_journal_window())
Beispiel #4
0
 def __get_last_activity_reply_handler_cb(self, entries, total_count):
     registry = bundleregistry.get_registry()
     if entries:
         misc.resume(entries[0], entries[0]['activity'])
     else:
         bundle = registry.get_bundle(self._activity_selected)
         misc.launch(bundle)
Beispiel #5
0
 def _open_item_activate_cb(self, menu_item):
     logging.debug('_open_item_activate_cb')
     percent = self._cb_object.get_percent()
     if percent < 100 or menu_item.get_submenu() is not None:
         return
     jobject = self._copy_to_journal()
     misc.resume(jobject.metadata, self._get_activities()[0])
     jobject.destroy()
Beispiel #6
0
 def __item_activate_cb(self, menu_item, service_name):
     mime_type = self._metadata.get('mime_type', '')
     if mime_type:
         mime_registry = mimeregistry.get_registry()
         mime_registry.set_default_activity(mime_type, service_name)
     misc.resume(self._metadata,
                 bundle_id=service_name,
                 alert_window=journalwindow.get_journal_window())
Beispiel #7
0
 def __icon_clicked_cb(self, cell, path):
     row = self.tree_view.get_model()[path]
     metadata = model.get(row[ListModel.COLUMN_UID])
     if metadata['activity'] == PROJECT_BUNDLE_ID:
         self.emit('project-view-activate', metadata)
         return
     misc.resume(metadata,
                 alert_window=journalwindow.get_journal_window())
 def _open_submenu_item_activate_cb(self, menu_item, service_name):
     logging.debug('_open_submenu_item_activate_cb')
     percent = self._cb_object.get_percent()
     if percent < 100:
         return
     jobject = self._copy_to_journal()
     misc.resume(jobject.metadata, service_name)
     jobject.destroy()
 def _open_item_activate_cb(self, menu_item):
     logging.debug('_open_item_activate_cb')
     percent = self._cb_object.get_percent()
     if percent < 100 or menu_item.get_submenu() is not None:
         return
     jobject = self._copy_to_journal()
     misc.resume(jobject.metadata, self._get_activities()[0])
     jobject.destroy()
Beispiel #10
0
 def _open_submenu_item_activate_cb(self, menu_item, service_name):
     logging.debug('_open_submenu_item_activate_cb')
     percent = self._cb_object.get_percent()
     if percent < 100:
         return
     jobject = self._copy_to_journal()
     misc.resume(jobject.metadata, service_name)
     jobject.destroy()
Beispiel #11
0
 def _resume_menu_item_activate_cb(self, menu_item, service_name):
     misc.resume(self._metadata, service_name)
Beispiel #12
0
 def _preview_box_button_release_event_cb(self, button, event):
     logging.debug('_preview_box_button_release_event_cb')
     misc.resume(self._metadata,
                 alert_window=journalwindow.get_journal_window())
     return True
Beispiel #13
0
 def _preview_box_button_release_event_cb(self, button, event):
     logging.debug('_preview_box_button_release_event_cb')
     misc.resume(self._metadata,
                 alert_window=journalwindow.get_journal_window())
     return True
Beispiel #14
0
 def __item_activate_cb(self, menu_item, service_name):
     mime_type = self._metadata.get('mime_type', '')
     if mime_type:
         mime_registry = mimeregistry.get_registry()
         mime_registry.set_default_activity(mime_type, service_name)
     misc.resume(self._metadata, service_name)
Beispiel #15
0
 def _resume(self, journal_entry):
     if not journal_entry['activity_id']:
         journal_entry['activity_id'] = activityfactory.create_activity_id()
     misc.resume(journal_entry, self._activity_info.get_bundle_id())
Beispiel #16
0
 def _resume_clicked_cb(self, button):
     misc.resume(self._metadata,
                 alert_window=journalwindow.get_journal_window())
Beispiel #17
0
 def __icon_clicked_cb(self, cell, path):
     row = self.tree_view.get_model()[path]
     metadata = model.get(row[ListModel.COLUMN_UID])
     misc.resume(metadata)
Beispiel #18
0
 def _preview_box_button_release_event_cb(self, button, event):
     logging.debug('_preview_box_button_release_event_cb')
     misc.resume(self._metadata)
     return True
Beispiel #19
0
 def __icon_activate_cb(self, button):
     misc.resume(self._metadata,
                 alert_window=journalwindow.get_journal_window())
     return True
Beispiel #20
0
 def _resume_menu_item_activate_cb(self, menu_item, service_name):
     misc.resume(self._metadata,
                 service_name,
                 alert_window=journalwindow.get_journal_window())
Beispiel #21
0
 def __icon_clicked_cb(self, cell, path):
     row = self.tree_view.get_model()[path]
     metadata = model.get(row[ListModel.COLUMN_UID])
     misc.resume(metadata)
Beispiel #22
0
 def __get_last_activity_reply_handler_cb(self, entries, total_count):
     if entries:
         if not entries[0]['activity_id']:
             entries[0]['activity_id'] = activityfactory.create_activity_id()
         misc.resume(entries[0], entries[0]['activity'])
Beispiel #23
0
 def __icon_clicked_cb(self, cell, path):
     row = self.tree_view.get_model()[path]
     metadata = model.get(row[ListModel.COLUMN_UID])
     misc.resume(metadata,
                 alert_window=journalwindow.get_journal_window())
Beispiel #24
0
 def _preview_box_button_release_event_cb(self, button, event):
     logging.debug('_preview_box_button_release_event_cb')
     misc.resume(self._metadata)
     return True
Beispiel #25
0
 def __start_activate_cb(self, menu_item):
     misc.resume(self._metadata,
                 alert_window=journalwindow.get_journal_window())
Beispiel #26
0
 def _resume_clicked_cb(self, button):
     misc.resume(self._metadata)
Beispiel #27
0
 def _resume_menu_item_activate_cb(self, menu_item, service_name):
     misc.resume(self._metadata,
                 alert_window=journalwindow.get_journal_window())
Beispiel #28
0
 def _resume_menu_item_activate_cb(self, menu_item, service_name):
     misc.resume(self._metadata, service_name)
Beispiel #29
0
 def __start_activate_cb(self, menu_item):
     misc.resume(self._metadata)
Beispiel #30
0
 def __start_activate_cb(self, menu_item):
     misc.resume(self._metadata)
Beispiel #31
0
 def _resume(self, journal_entry):
     if not journal_entry['activity_id']:
         journal_entry['activity_id'] = activityfactory.create_activity_id()
     misc.resume(journal_entry, self._activity_info.get_bundle_id())
Beispiel #32
0
 def __item_activate_cb(self, menu_item, service_name):
     mime_type = self._metadata.get('mime_type', '')
     if mime_type:
         mime_registry = mimeregistry.get_registry()
         mime_registry.set_default_activity(mime_type, service_name)
     misc.resume(self._metadata, service_name)
Beispiel #33
0
 def __icon_clicked_cb(self, cell, path):
     row = self.tree_view.get_model()[path]
     metadata = model.get(row[ListModel.COLUMN_UID])
     misc.resume(metadata, alert_window=journalwindow.get_journal_window())
Beispiel #34
0
 def __start_activate_cb(self, menu_item):
     misc.resume(self._metadata,
                 alert_window=journalwindow.get_journal_window())
Beispiel #35
0
 def __icon_activate_cb(self, button):
     misc.resume(self._metadata,
                 alert_window=journalwindow.get_journal_window())
     return True
Beispiel #36
0
 def _resume_clicked_cb(self, button):
     misc.resume(self._metadata)