* src/plugins/ScratchPad.py: handle unicode better

* src/DdTargets.py: handle unicode better


svn: r5189
This commit is contained in:
Don Allingham 2005-09-12 20:38:59 +00:00
parent 1b7a21225f
commit 83b7e669dc
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2005-09-12 Don Allingham <don@gramps-project.org>
* src/plugins/ScratchPad.py: handle unicode better
* src/DdTargets.py: handle unicode better
2005-09-11 Don Allingham <don@gramps-project.org>
* src/NameDisplay: include nickname if available
* src/plugins/ScratchPad.py: Handle null handle

View File

@ -135,11 +135,11 @@ class _DdTargets(object):
# List of all the test types. These are types
# that can be interpreted as text.
self._all_text_types = (self.TEXT,
self._all_text_types = (self.UTF8_STRING,
self.TEXT,
self.TEXT_MIME,
self.STRING,
self.COMPOUND_TEXT,
self.UTF8_STRING)
self.COMPOUND_TEXT)
def insert(self,dd_type):
"""Add a target to the lookup lists. These lists are

View File

@ -405,6 +405,7 @@ class ScratchPadText(ScratchPadWrapper):
self._type = _("Text")
self._title = ""
self._obj = unicode(self._obj)
self._value = self._obj
def tooltip(self):
@ -630,7 +631,6 @@ class ScratchPadListView:
o = model.get_value(iter, 1)
cell.set_property('text', o.get_title())
def object_value(self, column, cell, model, iter, user_data=None):
o = model.get_value(iter, 1)
cell.set_property('text', o.get_value())