2005-03-31 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* 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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user