Skip to content

Commit

Permalink
Use the GtkEntry's GtkIMContext instead of creating one for the sheet.
Browse files Browse the repository at this point in the history
Bug 797264 - 3.5 can't use Chinese IME input
Bug 797329 - Using Japanese IME to enter transactions results in
unexpected field jumps
  • Loading branch information
jralls committed May 4, 2020
1 parent faacd96 commit 3475939
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 346 deletions.
2 changes: 2 additions & 0 deletions gnucash/register/register-core/pricecell.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ gnc_price_cell_modify_verify (BasicCell *_cell,
}

gnc_basic_cell_set_value_internal (_cell, newval);
*cursor_position += g_utf8_strlen (newval, -1);
*end_selection = *start_selection = *cursor_position;
cell->need_to_parse = TRUE;
}

Expand Down
2 changes: 2 additions & 0 deletions gnucash/register/register-gnome/datecell-gnome.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ gnc_date_cell_modify_verify (BasicCell *_cell,
{
gnc_basic_cell_set_value_internal (&cell->cell, newval);
gnc_parse_date (&(box->date), newval, FALSE);
*cursor_position += g_utf8_strlen (change, -1);
*end_selection = *start_selection = *cursor_position;

if (!box->date_picker)
return;
Expand Down
Loading

0 comments on commit 3475939

Please sign in to comment.