* src/NoteEdit.py: Unicode conversion from gtk.TextView.

svn: r2537
This commit is contained in:
Alex Roitman 2003-12-17 16:09:13 +00:00
parent 9f84452198
commit 67736d2f3d
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
2003-12-17 Alex Roitman <shura@alex.neuro.umn.edu> 2003-12-17 Alex Roitman <shura@alex.neuro.umn.edu>
* src/Sources.py: Unicode conversion from gtk.TextView. * src/Sources.py: Unicode conversion from gtk.TextView.
* src/NoteEdit.py: Unicode conversion from gtk.TextView.
* src/Witness.py: Unicode conversion from gtk.TextView. * src/Witness.py: Unicode conversion from gtk.TextView.
* src/Report.py: Unicode conversion from gtk.TextView. * src/Report.py: Unicode conversion from gtk.TextView.
* src/NameEdit.py: Unicode conversion from gtk.TextView. * src/NameEdit.py: Unicode conversion from gtk.TextView.

View File

@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# $Id$
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# GTK/Gnome modules # GTK/Gnome modules
@ -85,8 +87,8 @@ class NoteEditor:
def on_save_note_clicked(self): def on_save_note_clicked(self):
"""Saves the note and closes the window""" """Saves the note and closes the window"""
buffer = self.entry.get_buffer() buffer = self.entry.get_buffer()
text = buffer.get_text(buffer.get_start_iter(), text = unicode(buffer.get_text(buffer.get_start_iter(),
buffer.get_end_iter(),gtk.FALSE) buffer.get_end_iter(),gtk.FALSE))
if text != self.data.getNote(): if text != self.data.getNote():
self.data.setNote(text) self.data.setNote(text)
Utils.modified() Utils.modified()