GNOME Bugzilla – Bug 612505
Entry layout not updated when underlying buffer changes
Last modified: 2010-03-14 20:37:16 UTC
Created attachment 155790 [details] [review] Patch to update entry layout and visual state at buffer change time Im attaching a short patch that fixes this problem. It also includes resetting the cursor position in _set_buffer(), since without that we get an assertion while calling pango_layout_get_cursor_pos() (i.e. the cursor is skewed into the old buffer space and needs resetting). Currently it sets the cursor position to 0. but it could hypothetically be set to: cursor = MIN (cursor, new_buffer_length) instead... I think 0 is sane though....
Thanks, fixed
Created attachment 156076 [details] [review] Saner patch to nullify buffer in dispose This one: a.) Updates the display when the buffer is set to NULL b.) Breaks the reference to the buffer in dispose instead of finalize
Reopening...
Looks ok, assuming the tests work.
Review of attachment 156076 [details] [review]: Thanks, committing and closing bug.