Bug 178295

Summary: [calendar] unable to remove pre-edit buffer cleanly in day view
Product: [Fedora] Fedora Reporter: Lawrence Lim <llim>
Component: evolutionAssignee: Matthew Barnes <mbarnes>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 6CC: eng-i18n-bugs, majain, mattdm, mbarnes, tools-bugs
Target Milestone: ---Keywords: i18n
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-08 03:19:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 208799    
Attachments:
Description Flags
screenshot
none
patch for solution of the problem
none
rediffed patch
none
Modified patch none

Description Lawrence Lim 2006-01-19 07:22:13 UTC
Description of problem:
When a mistake is made during input, it is not possible to remove the characters
from the pre-edit buffer in the day view of calendar. 

Version-Release number of selected component (if applicable):
evolution-2.5.4-2
evolution-data-server-1.5.4-2
scim-1.4.2-9

How reproducible:
Always

Steps to Reproduce:
1.in any of the CJKI locale, start evolution-> calendar (eg ja_JP.UTF-8)
2.use the default day view
3.select 2PM, enter a
4.activate SCIM using Ctrl-SPACE
5.enter 'kaizoku' follow by backspace to remove everything entered earlier

  
Actual results:
unable to remove pre-edit buffer

Expected results:
able to remove pre-edit buffer cleanly

Additional info:

Comment 1 Mayank Jain 2006-03-21 09:39:52 UTC
Created attachment 126383 [details]
screenshot 

Hi llim,
You've mentioned that 
1.in any of the CJKI locale, start evolution-> calendar (eg ja_JP.UTF-8)
2.use the default day view
3.select 2PM, enter a
4.activate SCIM using Ctrl-SPACE

When I enter "a", I cannot activate the scim IM as there's no choice. Is the
default day view the same i'm using in the screenshot?

Note that I can activate scim IM in evo mail (html mode).

Comment 2 Mayank Jain 2006-03-21 10:50:24 UTC
Hi llim,

When you say "Select 2 pm", you mean mean to single click on 2 pm or double click?

- If single click, then scim cannot be activated as there's no option in right
click to choose the IM (as in screenshot).
- If you are talking of double click, which text box are you refering?

Thanks.

Comment 3 Lawrence Lim 2006-03-21 11:34:48 UTC
RE Comment #1
Yes, in the screenshot, tt's the day view.

RE Comment #2
Its a single click (notice the time slot gets focus and is hightlighted) 
-> enter a (allow u to start IC, u will see blinking cursor) 
-> Ctrl-SPACE 

Comment 4 Matthew Miller 2006-07-10 23:13:23 UTC
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!


Comment 5 Mayank Jain 2006-07-11 04:49:59 UTC
Hi Matthew,

I dont think this is a security issue. & this behaviour is still observed in
rawhide. Hence changing version from fc3t2 to devel. Also, changing component to
Evolution.

Thanks,
Mayank

Comment 6 Leon Ho 2006-07-11 07:47:05 UTC
As Mayank is working on this bug, reassigning it to him until he have completed.
Mayank, please report on your current status.

Comment 7 Mayank Jain 2006-07-25 12:41:33 UTC
If i'm not wrong,
when preedit is being deleted & the stage is reached when last char is left in
preedit buffer & backspace is hit, text->preedit_len becomes zero (expected
behaviour) but e_text_draw still draws it. If somehow it can be called again, i
think it will cleanly remove the string.

Comment 8 Mayank Jain 2006-07-25 13:17:37 UTC
calling reset_layout(EText) in e_text_draw does the thing.

Comment 9 Mayank Jain 2006-07-25 13:21:25 UTC
Created attachment 132979 [details]
patch for solution of the problem

The patch with some code reorganization & comments & fix for this bug.

Comment 10 Mayank Jain 2006-07-25 13:37:18 UTC
Filled bug upstream at http://bugzilla.gnome.org/show_bug.cgi?id=348638

Comment 11 Mayank Jain 2006-07-25 13:40:47 UTC
Matthew, can you please test the patch?

Comment 12 Matthew Miller 2006-07-25 15:41:59 UTC
Me?

Comment 13 Mayank Jain 2006-07-26 05:52:12 UTC
Oh No, it was for mbarnes :)

Comment 14 Matthew Miller 2006-07-26 10:41:56 UTC
Okay, good, 'cause I have *no idea*. I'm just visiting this bug. :)

Comment 15 Matthew Barnes 2006-07-26 11:14:41 UTC
Mayank, some of the logic has changed slightly in 2.7.90 so the patch does not
apply cleanly.  The changes are probably not relevant to this bug, but can you
please double check?

evolution-2.7.90-1 should be in Rawhide tomorrow.

Comment 16 Mayank Jain 2006-07-26 12:34:02 UTC
Created attachment 133068 [details]
rediffed patch

Okay, i diffed it again against the CVS head.

Comment 17 Mayank Jain 2006-07-26 12:36:00 UTC
CVS head as in upstream cvs.

Comment 18 Matthew Barnes 2006-07-26 15:10:45 UTC
(In reply to comment #15)
> evolution-2.7.90-1 should be in Rawhide tomorrow.

I take that back.  Evolution-Data-Server 1.7.90 changed a bunch of sonames, so I
need to rebuild some things before this patch gets into Rawhide.



Comment 19 Mayank Jain 2006-07-26 19:34:38 UTC
Oh... Mattew, i tell you, these version changes caused me so much trouble... the
builds were going perfect but my calendar was being rendered uneditable...
version mismatch between eds & evo!
The helpfull evo team at #evolution was there to help :)
Be carefull with the eds versions while building newer evo packages.

Comment 20 Mayank Jain 2006-07-26 19:39:49 UTC
Whoops, sorry for spelling your name incorrectly.

Comment 21 Akira TAGOH 2006-07-26 21:08:25 UTC
reviewed a patch. basically it looks good though, does the last chunk that
contains gtk_im_context_focus_in/out() really need to be called to fix this bug?

Comment 22 Mayank Jain 2006-07-27 06:01:02 UTC
Oops, I think that modifications were from a previous bug I was working on.
I'll remove that hunk & reupload the patch.

Thanks Tagoh san.

Comment 23 Mayank Jain 2006-07-28 06:41:29 UTC
Created attachment 133215 [details]
Modified patch

Modified patch with unrequired hunk removed.

Comment 24 Mayank Jain 2006-07-28 08:46:29 UTC
Tagoh san, there is one more patch in upstream bug. Kindly have a look.
Thanks.

Comment 25 Matthew Barnes 2006-08-01 16:43:45 UTC
Mayank,

Let me know when you have a patch ready for Rawhide.  I'm backing off of E-D-S
1.7.90 and sticking with 1.7.4 for now.  The upgrade breaks API/ABI stability
and was causing people grief (sounds like you're aware of the pain).

Comment 26 Mayank Jain 2006-08-03 07:24:40 UTC
Matthew, We have 2 patches available upstream, one by me & another by an
upstream developer. Since both of the patches are working fine, i've requested
him to select the best one as he is more experienced evo contributor than I
am... also, we want the best for evo :)

I'm waiting for his response, i'll notify you once its decided upstream.

Comment 27 Mayank Jain 2006-09-25 08:53:15 UTC
Pinged Srag on #evo (irc.gimp.org) & asked him to get the patches reviewed &
approved.

Comment 28 Red Hat Bugzilla 2007-05-14 01:21:32 UTC
User majain's account has been closed

Comment 29 Matthew Barnes 2007-11-08 03:19:48 UTC
Moving this to the upstream bug.  I have an updated patch there waiting for
review.  If someone could kindly apply the patch and verify that it works I can
go ahead and commit it.  I can assist with build issues if needed.

http://bugzilla.gnome.org/show_bug.cgi?id=348638