Example #1
0
 def __action_invoked(self, notification, action):
     """Called when buttons in the notification is pressed."""
     if action == "file":
         uri = gnomevfs.make_uri_from_input_with_dirs(self.download.file, 2)
         gnomevfs.url_show(uri)
     elif action == "folder":
         uri = gnomevfs.make_uri_from_input(self.download.path)
         gnomevfs.url_show(uri)
     notification.close()
Example #2
0
 def __action_invoked(self, notification, action):
     """Called when buttons in the notification is pressed."""
     if action == "file":
         uri = gnomevfs.make_uri_from_input_with_dirs(self.download.file, 2)
         gnomevfs.url_show(uri)
     elif action == "folder":
         uri = gnomevfs.make_uri_from_input(self.download.path)
         gnomevfs.url_show(uri)
     notification.close()
Example #3
0
def open_file_on_screen(file, screen):
    uri = gnomevfs.make_uri_from_input_with_dirs(file, 2)
    gnome.ui.url_show_on_screen(uri, screen)