2007-03-21 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/MarkupText.py (MarkupBuffer.set_text): convert unicode to byte string for parseString. * src/Editors/_EditAddress.py: * src/Editors/_EditLdsOrd.py: * src/Editors/_EditSourceRef.py: * src/Editors/_EditEventRef.py: * src/Editors/_EditMedia.py: * src/Editors/_EditName.py: * src/Editors/_EditEvent.py: attach ValidatableMaskedEntry into table with FILL=False yoption for having the validation error tip at right position. svn: r8309
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,3 +1,16 @@
|
||||
2007-03-21 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||
* src/MarkupText.py (MarkupBuffer.set_text): convert unicode to byte
|
||||
string for parseString.
|
||||
* src/Editors/_EditAddress.py:
|
||||
* src/Editors/_EditLdsOrd.py:
|
||||
* src/Editors/_EditSourceRef.py:
|
||||
* src/Editors/_EditEventRef.py:
|
||||
* src/Editors/_EditMedia.py:
|
||||
* src/Editors/_EditName.py:
|
||||
* src/Editors/_EditEvent.py: attach ValidatableMaskedEntry into table
|
||||
with FILL=False yoption for having the validation error tip at right
|
||||
position.
|
||||
|
||||
2007-03-20 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/IndivComplete.py: handle multiple notes
|
||||
|
||||
|
@@ -83,7 +83,7 @@ class EditAddress(EditSecondary):
|
||||
table = self.top.get_widget('table26')
|
||||
date_entry = ValidatableMaskedEntry(str)
|
||||
date_entry.show()
|
||||
table.attach(date_entry, 1, 6, 0, 1)
|
||||
table.attach(date_entry, 1, 6, 0, 1, yoptions=gtk.EXPAND)
|
||||
|
||||
self.addr_start = MonitoredDate(
|
||||
date_entry,
|
||||
|
@@ -148,7 +148,7 @@ class EditEvent(EditPrimary):
|
||||
table = self.top.get_widget('table21')
|
||||
date_entry = ValidatableMaskedEntry(str)
|
||||
date_entry.show()
|
||||
table.attach(date_entry, 3, 4, 0, 1)
|
||||
table.attach(date_entry, 3, 4, 0, 1, yoptions=gtk.EXPAND)
|
||||
|
||||
self.date_field = MonitoredDate(
|
||||
date_entry,
|
||||
|
@@ -142,7 +142,7 @@ class EditEventRef(EditReference):
|
||||
table = self.top.get_widget('table62')
|
||||
date_entry = ValidatableMaskedEntry(str)
|
||||
date_entry.show()
|
||||
table.attach(date_entry, 1, 2, 1, 2)
|
||||
table.attach(date_entry, 1, 2, 1, 2, yoptions=gtk.EXPAND)
|
||||
|
||||
self.date_check = MonitoredDate(
|
||||
date_entry,
|
||||
|
@@ -178,7 +178,7 @@ class EditLdsOrd(EditSecondary):
|
||||
table = self.top.get_widget('table')
|
||||
date_entry = ValidatableMaskedEntry(str)
|
||||
date_entry.show()
|
||||
table.attach(date_entry, 1, 2, 3, 4)
|
||||
table.attach(date_entry, 1, 2, 3, 4, yoptions=gtk.EXPAND)
|
||||
|
||||
self.date_field = MonitoredDate(
|
||||
date_entry,
|
||||
@@ -368,7 +368,7 @@ class EditFamilyLdsOrd(EditSecondary):
|
||||
table = self.top.get_widget('table')
|
||||
date_entry = ValidatableMaskedEntry(str)
|
||||
date_entry.show()
|
||||
table.attach(date_entry, 1, 2, 3, 4)
|
||||
table.attach(date_entry, 1, 2, 3, 4, yoptions=gtk.EXPAND)
|
||||
|
||||
self.date_field = MonitoredDate(
|
||||
date_entry,
|
||||
|
@@ -100,7 +100,7 @@ class EditMedia(EditPrimary):
|
||||
table = self.glade.get_widget('table8')
|
||||
date_entry = ValidatableMaskedEntry(str)
|
||||
date_entry.show()
|
||||
table.attach(date_entry, 2, 3, 2, 3)
|
||||
table.attach(date_entry, 2, 3, 2, 3, yoptions=gtk.EXPAND)
|
||||
|
||||
self.date_field = MonitoredDate(
|
||||
date_entry,
|
||||
|
@@ -163,7 +163,7 @@ class EditName(EditSecondary):
|
||||
table = self.top.get_widget('table23')
|
||||
date_entry = ValidatableMaskedEntry(str)
|
||||
date_entry.show()
|
||||
table.attach(date_entry, 2, 3, 4, 5)
|
||||
table.attach(date_entry, 2, 3, 4, 5, yoptions=gtk.EXPAND)
|
||||
|
||||
self.date = MonitoredDate(
|
||||
date_entry,
|
||||
|
@@ -122,7 +122,7 @@ class EditSourceRef(EditReference):
|
||||
table = self.top.get_widget('table67')
|
||||
date_entry = ValidatableMaskedEntry(str)
|
||||
date_entry.show()
|
||||
table.attach(date_entry, 1, 2, 0, 1)
|
||||
table.attach(date_entry, 1, 2, 0, 1, yoptions=gtk.EXPAND)
|
||||
|
||||
self.date = MonitoredDate(
|
||||
date_entry,
|
||||
|
@@ -297,7 +297,7 @@ class MarkupBuffer(gtk.TextBuffer):
|
||||
def set_text(self, xmltext):
|
||||
"""Set the content of the buffer with markup tags."""
|
||||
try:
|
||||
parseString(xmltext, self.parser)
|
||||
parseString(str(xmltext), 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