2008-03-27 Michael Natterer <mitch@imendio.com>
authorMichael Natterer <mitch@imendio.com>
Thu, 27 Mar 2008 12:21:47 +0000 (12:21 +0000)
committerMichael Natterer <mitch@imendio.com>
Thu, 27 Mar 2008 12:21:47 +0000 (12:21 +0000)
commiteeb8bae141513274f7fb90ea5e66d241babc9a09
tree79330662135d8ab89bd69dbddd088508f9d4c566
parente18c09275132b33abe1a77b00fb4d69fc0f1cbe6
2008-03-27 Michael Natterer <mitch@imendio.com>

Fixes: NB#81696: The passcode is not overwritten even after
selecting

* src/hildon-code-dialog.c
(hildon_code_dialog_button_clicked)
(hildon_code_dialog_im_commit): don't use gtk_entry_append_text()
because that doesn't overwrite selected text. Instead, emit the
"commit" signal on the entry's im_context so the entry's normal
insert logic is triggered. Set the cursor to the end of the entry
after each insert operation so that we *only* insert in the middle
of the text if something was selected.
ChangeLog
src/hildon-code-dialog.c