def handle_drag_data_received(self, selection, target_type): for uri in selection.get_uris(): item = FileItem(uri) if item.get_mimetype() == "application/x-desktop": bookmarks.add_bookmark(uri, item.get_mimetype()) else: launcher.launch_uri(uri)
def handle_drag_data_received(self, selection, target_type): for uri in selection.get_uris(): item = FileItem(uri) if not item.get_mimetype() in ("application/x-desktop", "gaim/buddy", "gaim/log"): bookmarks.add_bookmark(uri, item.get_mimetype())
def handle_drag_data_received(self, selection, target_type): for uri in selection.get_uris(): item = self.get_item_for_uri(uri) if item: bookmarks.add_bookmark(uri, item.get_mimetype())
def handle_drag_data_received(self, selection, target_type): for uri in selection.get_uris(): if uri.lower().startswith("aim:goim?screenname="): bookmarks.add_bookmark(uri, self._get_mime_prefix() + "/buddy")