Index: channels/bookmarks.py ================================================================== --- channels/bookmarks.py +++ channels/bookmarks.py @@ -44,37 +44,14 @@ # cache list, to determine if a PLS url is bookmarked urls = [] - drag_types = [ - ("UTF8_STRING", 0, 5), - ("STRING", 0, 5), - ("text/plain", 0, 10), - ("text/uri-list", 0, 11), - ("application/x-scpls", 0, 21), - ("*/*", 0, 22), - ] - def gui(self, parent): GenericChannel.gui(self, parent) parent.notebook_channels.set_menu_label_text(parent.v_bookmarks, "bookmarks") - #DND - w = self.gtk_list - #self.gtk_list.drag_source_set_icon_stock("gtk-folder") - w.enable_model_drag_source(gtk.gdk.BUTTON1_MASK, self.drag_types, gtk.gdk.ACTION_DEFAULT|gtk.gdk.ACTION_COPY|gtk.gdk.ACTION_MOVE) - w.enable_model_drag_dest(self.drag_types, gtk.gdk.ACTION_DEFAULT|gtk.gdk.ACTION_COPY) - w.connect('drag_drop', self.drop_cb) - - # function to print out the mime type of the drop item - def drop_cb(self, wid, context, x, y, time, *e): - print '\n'.join([str(t) for t in context.targets]) - # What should I put here to get the URL of the link? - context.finish(True, False, time) - return True - # this channel does not actually retrieve/parse data from anywhere def update_categories(self): pass # but category sub-plugins might provide a hook