Catch the change in API for gtk.TextBuffer

svn: r1295
This commit is contained in:
Don Allingham
2003-02-10 04:11:01 +00:00
parent 9d892febfa
commit 0e8a88146a
3 changed files with 27 additions and 12 deletions

View File

@@ -755,7 +755,12 @@ class ReportDialog:
self.extra_textbox_label = gtk.Label(et_label)
self.extra_textbox_label.set_alignment(1.0,0)
self.extra_textbox = gtk.TextView()
self.extra_textbox.get_buffer().set_text(string,len(string))
try:
self.extra_textbox.get_buffer().set_text(string,len(string))
except TypeError:
self.extra_textbox.get_buffer().set_text(string)
self.extra_textbox.set_editable(1)
self.add_tooltip(self.extra_textbox,et_tip)
table.attach(self.extra_textbox_label,0,1,row,row+1,xoptions=gtk.FILL,