Skip to content

Commit

Permalink
Fixes multiline text box usage of Gtk.TextBuffer.get_text()
Browse files Browse the repository at this point in the history
  • Loading branch information
astroDimitrios committed Jan 16, 2025
1 parent 423b1d7 commit d20e928
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion metomi/rose/config_editor/valuewidget/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@ def set_focus_index(self, focus_index=None):
self.entrybuffer.place_cursor(iter_)

def setter(self, widget):
text = widget.get_text(widget.get_start_iter(), widget.get_end_iter())
print(widget)
text = Gtk.TextBuffer.get_text(
widget,
widget.get_start_iter(),
widget.get_end_iter(),
False
)
if text != self.value:
self.value = text
self.set_value(self.value)
Expand Down

0 comments on commit d20e928

Please sign in to comment.