* src/plugins/stock_link.png: added icon for scratchpad display
	* src/DdTargets.py (all_text): new method to return all text ddtypes
	* src/TreeTips.py (__treetip_show): added support for tips to be callable
	methods so that tips can be generated on the fly.
	* src/plugins/Makefile.am: added stock_link.png icon
	* src/plugins/ScratchPad.py: almost complete rewrite to make proper use
	of gtk widgets and make more flexible for adding support for new
	dnd object types. Added link icon if the object is a link to a primary
	object.


svn: r4262
This commit is contained in:
Richard Taylor
2005-03-31 13:16:20 +00:00
parent 1d6f8fba1d
commit 306b962470
6 changed files with 548 additions and 356 deletions

View File

@@ -131,6 +131,13 @@ class _DdTargets(object):
def is_text_type(self,type_name):
return type_name in self.all_text_types()
def all_text(self):
return (self.TEXT,
self.TEXT_MIME,
self.STRING,
self.COMPOUND_TEXT,
self.UTF8_STRING)
def all_text_types(self):
"""return a list of all the type names that could be
used as the type of a string."""