Example #1
0
 def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
     log.debug("Selection(s) dropped on main window %s", selection_data.data)
     if selection_data.get_uris():
         process_args(selection_data.get_uris())
     else:
         process_args(selection_data.data.split())
     drag_context.finish(True, True)
Example #2
0
 def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
     log.debug("Selection(s) dropped on main window %s", selection_data.data)
     if selection_data.get_uris():
         process_args(selection_data.get_uris())
     else:
         process_args(selection_data.data.split())
     drag_context.finish(True, True)
Example #3
0
 def on_drag_data_received_event(self, widget, drag_context, x, y,
                                 selection_data, info, timestamp):
     args = []
     for uri in selection_data.data.split():
         args.append(urllib.unquote(uri))
     process_args(args)
     drag_context.finish(True, True)
Example #4
0
 def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
     args = []
     for uri in selection_data.data.split():
         if deluge.common.windows_check():
             args.append(urllib.url2pathname(uri[7:]))
         else:
             args.append(urllib.unquote(urlparse(uri).path))
     process_args(args)
     drag_context.finish(True, True)
Example #5
0
 def on_drag_data_received_event(self, widget, drag_context, x, y,
                                 selection_data, info, timestamp):
     args = []
     for uri in selection_data.data.split():
         if deluge.common.windows_check():
             args.append(urllib.url2pathname(uri[7:]))
         else:
             args.append(urllib.unquote(urlparse(uri).path))
     process_args(args)
     drag_context.finish(True, True)
Example #6
0
 def nsapp_open_file(osxapp, filename):
     # Will be raised at app launch (python opening main script)
     if filename.endswith('Deluge-bin'):
         return True
     from deluge.ui.gtkui.ipcinterface import process_args
     process_args([filename])
Example #7
0
 def add_torrent(model, path, iter, data):
     torrent_path = model.get_value(iter, 1)
     process_args([torrent_path])
Example #8
0
 def nsapp_open_file(osxapp, filename):
     # Will be raised at app launch (python opening main script)
     if filename.endswith('Deluge-bin'):
         return True
     from deluge.ui.gtkui.ipcinterface import process_args
     process_args([filename])
Example #9
0
 def add_torrent(model, path, _iter, data):
     torrent_path = model.get_value(_iter, 1).decode('utf-8')
     process_args([torrent_path])
Example #10
0
 def add_torrent(model, path, iter, data):
     torrent_path = model.get_value(iter, 1)
     process_args([torrent_path])
Example #11
0
 def nsapp_open_file(osxapp, filename):
     # Ignore command name which is raised at app launch (python opening main script).
     if filename == sys.argv[0]:
         return True
     process_args([filename])
Example #12
0
 def nsapp_open_file(osxapp, filename):
     # Ignore command name which is raised at app launch (python opening main script).
     if filename == sys.argv[0]:
         return True
     process_args([filename])
Example #13
0
 def nsapp_open_file(osxapp, filename):
     # Ignore command name which is raised at app launch (python opening main script).
     if filename == sys.argv[0]:
         return True
     from deluge.ui.gtkui.ipcinterface import process_args
     process_args([filename])
Example #14
0
 def on_drag_data_received_event(self, widget, drag_context, x, y, selection_data, info, timestamp):
     args = []
     for uri in selection_data.data.split():
         args.append(urllib.unquote(uri))
     process_args(args)
     drag_context.finish(True, True)