GNOME Bugzilla – Bug 371705
Calendar's day view does not reset its IM context
Last modified: 2013-09-13 01:11:08 UTC
Forwarding this from a downstream bug report: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=176400 Verified this still exists in Evolution 2.8/2.9. Description of problem: Tested evolution calendar with scim and noticed that the pre-edit buffer is not reset when scim is activated in another time slot (input context). As a result, previous entries gets replicated. Version-Release number of selected component (if applicable): evolution-data-server-1.5.2-1.1 How reproducible: Always Steps to Reproduce: 1.start evolution -> calendar 2.in day view, click on 1PM 3.enter a to get focus 4.ctrl-space to activate scim 5.enter 'aka' 6.click on the next time slot and enter a 7.ctrl space to activate scim and enter genki Actual results: ããããã Expected results: ããã Additional info:
Our solution to this particular problem was to call gtk_im_context_reset() from e_day_view_start_editing_event(). But it's a poor hack. EText should reset its own input method context at the appropriate times. It looks like some progress was made towards this (see e_text_reset_im_context), but the code is unfinished.
Created attachment 78560 [details] [review] Proposed patch. Hi, The patch is up for review. Thanks, Mayank
Created attachment 78680 [details] [review] Updated patch Patch for review.
mbanes, it would be better if you review this patch..
mbarnes, ping :)
Patch doesn't work. My steps are: a) go to day view b) create event A and Event B c) click on the event A to edit its summary inline d) ctrl+space to active IM and write "hong" (without quotes) e) click on event B a press space, the character is removed from B and is pasted to A. With the patch is not moved the text from one event to another, but it's also not kept there, and turning on the IM again is not possible after moving to A.
Created attachment 175110 [details] [review] evo patch for evolution; Slightly extended previous patch. Unless the IM is finished, the text is not used.
Created commit e490db5 in evo master (2.91.3+)