2007-03-24 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/MarkupText.py (MarkupBuffer.set_text): better unicode encoding. * src/Editors/_EditPlace.py: source code encoding comment removed; EditPlace._validate_coordinate: proper unicode coding; EditPlace._setup_fields: longitude and latitude entries moved out to glade. * src/Editors/_EditNote.py (EditNote._local_init): redundant method call removed. * src/GrampsWidgets.py: enable custom widget support from glade; MonitoredEntry.connect: enable support for custom data for signal. * src/glade/gramps.glade (place_editor): include ValidatableMaskedEntry for longitude and latitude entries. * src/ManagedWindow.py (ManagedWindow.show): replace window.show() with window.show_all(). svn: r8311
This commit is contained in:
@@ -272,7 +272,7 @@ class MarkupBuffer(gtk.TextBuffer):
|
||||
Also translates Gramps XML markup language to gtk.TextTag's and vice versa.
|
||||
|
||||
Based on 'gourmet-0.13.3' L{http://grecipe-manager.sourceforge.net}
|
||||
Pango markup format is replaces by custom Gramps XML format.
|
||||
Pango markup format is replaced by custom Gramps XML format.
|
||||
|
||||
"""
|
||||
texttag_to_xml = {
|
||||
@@ -297,7 +297,7 @@ class MarkupBuffer(gtk.TextBuffer):
|
||||
def set_text(self, xmltext):
|
||||
"""Set the content of the buffer with markup tags."""
|
||||
try:
|
||||
parseString(str(xmltext), self.parser)
|
||||
parseString(xmltext.encode('utf-8'), self.parser)
|
||||
text = self.parser.content
|
||||
except:
|
||||
# if parse fails remove all tags and use clear text instead
|
||||
|
||||
Reference in New Issue
Block a user