Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(33)

Issue 45510043: Hide Property Panel when users type keys except for shortcut keys. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by fujiwara
Modified:
10 years, 3 months ago
Reviewers:
shawn.p.huang, Peng
CC:
shawn.p.huang_gmail.com, fujiwara
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Hide Property Panel when input cursor or preedit text is changed. BUG=http://code.google.com/p/ibus/issues/detail?id=1659 TEST=ui/gtk3/ibus-ui-gtk3

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated with message #2. #

Patch Set 3 : Updated set_preedit_text. #

Total comments: 2

Patch Set 4 : Updated with message #4. #

Patch Set 5 : Fix typo. #

Patch Set 6 : Fixed typo. #

Total comments: 20

Patch Set 7 : Updated with message #6. #

Patch Set 8 : Added debug codes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -23 lines) Patch
M data/ibus.schemas.in View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gtk3/panel.vala View 1 2 3 4 5 6 4 chunks +9 lines, -4 lines 0 comments Download
M ui/gtk3/propertypanel.vala View 1 2 3 4 5 6 7 7 chunks +109 lines, -16 lines 0 comments Download

Messages

Total messages: 9
fujiwara
10 years, 4 months ago (2013-12-25 07:27:08 UTC) #1
Peng
https://codereview.appspot.com/45510043/diff/1/bus/panelproxy.c File bus/panelproxy.c (right): https://codereview.appspot.com/45510043/diff/1/bus/panelproxy.c#newcode414 bus/panelproxy.c:414: NULL, NULL, NULL); I can see this change will ...
10 years, 4 months ago (2013-12-25 22:05:15 UTC) #2
fujiwara
https://codereview.appspot.com/45510043/diff/1/bus/panelproxy.c File bus/panelproxy.c (right): https://codereview.appspot.com/45510043/diff/1/bus/panelproxy.c#newcode414 bus/panelproxy.c:414: NULL, NULL, NULL); On 2013/12/25 22:05:15, Peng wrote: > ...
10 years, 4 months ago (2013-12-26 07:12:26 UTC) #3
Peng
https://codereview.appspot.com/45510043/diff/40001/bus/inputcontext.c File bus/inputcontext.c (right): https://codereview.appspot.com/45510043/diff/40001/bus/inputcontext.c#newcode127 bus/inputcontext.c:127: UPDATE_PREEDIT_TEXT_BY_CONTEXT, Don't understand why need a new signal. Could ...
10 years, 4 months ago (2013-12-26 15:57:06 UTC) #4
fujiwara
https://codereview.appspot.com/45510043/diff/40001/bus/inputcontext.c File bus/inputcontext.c (right): https://codereview.appspot.com/45510043/diff/40001/bus/inputcontext.c#newcode127 bus/inputcontext.c:127: UPDATE_PREEDIT_TEXT_BY_CONTEXT, On 2013/12/26 15:57:06, Peng wrote: > Don't understand ...
10 years, 4 months ago (2013-12-27 03:39:16 UTC) #5
Peng
https://codereview.appspot.com/45510043/diff/100001/data/ibus.schemas.in File data/ibus.schemas.in (right): https://codereview.appspot.com/45510043/diff/100001/data/ibus.schemas.in#newcode204 data/ibus.schemas.in:204: <key>/schemas/desktop/ibus/panel/timeout</key> auto_hide_timeout? https://codereview.appspot.com/45510043/diff/100001/ui/gtk3/propertypanel.vala File ui/gtk3/propertypanel.vala (right): https://codereview.appspot.com/45510043/diff/100001/ui/gtk3/propertypanel.vala#newcode36 ui/gtk3/propertypanel.vala:36: private ...
10 years, 3 months ago (2013-12-30 22:54:17 UTC) #6
fujiwara
https://codereview.appspot.com/45510043/diff/100001/data/ibus.schemas.in File data/ibus.schemas.in (right): https://codereview.appspot.com/45510043/diff/100001/data/ibus.schemas.in#newcode204 data/ibus.schemas.in:204: <key>/schemas/desktop/ibus/panel/timeout</key> On 2013/12/30 22:54:18, Peng wrote: > auto_hide_timeout? Done. ...
10 years, 3 months ago (2014-01-07 05:14:41 UTC) #7
Peng
lgtm https://codereview.appspot.com/45510043/diff/100001/ui/gtk3/propertypanel.vala File ui/gtk3/propertypanel.vala (right): https://codereview.appspot.com/45510043/diff/100001/ui/gtk3/propertypanel.vala#newcode95 ui/gtk3/propertypanel.vala:95: if (m_cursor_location != location) { On 2014/01/07 05:14:42, ...
10 years, 3 months ago (2014-01-07 21:47:31 UTC) #8
fujiwara
10 years, 3 months ago (2014-01-08 07:34:47 UTC) #9
https://codereview.appspot.com/45510043/diff/100001/ui/gtk3/propertypanel.vala
File ui/gtk3/propertypanel.vala (right):

https://codereview.appspot.com/45510043/diff/100001/ui/gtk3/propertypanel.val...
ui/gtk3/propertypanel.vala:95: if (m_cursor_location != location) {
On 2014/01/07 21:47:31, Peng wrote:
> On 2014/01/07 05:14:42, fujiwara wrote:
> > On 2013/12/30 22:54:18, Peng wrote:
> > > I am thinking when the (m_cursor_location == location) is true. Maybe most
> > apps
> > > will update cursor location when preedit text is changed. If it true,
> probably
> > > we don't need send preedit text to panel, if embedded preedit text is
> enabled.
> > > We just need hide the property panel when set_cursor_location is received.
> > 
> > You're right. I didn't notice the behavior is different by applications in
> > embedded preedit mode.
> > At the moment, I removed the patch in bus/inputcontext.c and added a comment
> > here.
> > I will investigate VTE later.
> > I'm not sure if we also can change xterm.
> 
> Thanks. I think probable it is OK for some apps the panel is not hide
> automatically when preedit is changed. It is not a big issue. if you could
place
> the properties panel carefully, to avoid it covers the preedit text.  right?

I think the original request (issue #1659) is to hide the panel with a key
whether it covers the preedit or not. Also the disabled-embedded preedit is
always superior to property panel so maybe your issue is no problem but probably
I need to investigate some applications about get_preedit_string().

I think property panel does not hide embedded preedit.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b