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

Issue 5148041: Fix hiding button items in GTK panel. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by Daiki Ueno
Modified:
12 years, 9 months ago
Reviewers:
shawn.p.huang, Peng
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Fix hiding button items in GTK panel. BUG=none TEST=manual

Patch Set 1 #

Total comments: 4

Patch Set 2 : use Gtk.Widget#hide() instead of hide_all() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -8 lines) Patch
M ui/gtk/toolitem.py View 1 2 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 9
Daiki Ueno
self.hide_all() has no effect because "no_show_all" is set on the previous line.
12 years, 9 months ago (2011-09-28 07:45:32 UTC) #1
Peng
https://codereview.appspot.com/5148041/diff/1/ui/gtk/toolitem.py File ui/gtk/toolitem.py (right): https://codereview.appspot.com/5148041/diff/1/ui/gtk/toolitem.py#newcode79 ui/gtk/toolitem.py:79: self.hide_all() ditto https://codereview.appspot.com/5148041/diff/1/ui/gtk/toolitem.py#newcode134 ui/gtk/toolitem.py:134: self.hide_all() it is better to ...
12 years, 9 months ago (2011-09-28 19:05:52 UTC) #2
Daiki Ueno
It seems the code could be simplified more. Since ToolButton and ToggleToolButton are directly derived ...
12 years, 9 months ago (2011-09-29 00:46:12 UTC) #3
Peng
On 2011/09/29 00:46:12, Daiki Ueno wrote: > It seems the code could be simplified more. ...
12 years, 9 months ago (2011-09-29 01:09:30 UTC) #4
Daiki Ueno
On 2011/09/29 01:09:30, Peng wrote: > On 2011/09/29 00:46:12, Daiki Ueno wrote: > > It ...
12 years, 9 months ago (2011-09-29 01:34:07 UTC) #5
Daiki Ueno
On 2011/09/29 01:34:07, Daiki Ueno wrote: > My test case is, with ibus-m17n and the ...
12 years, 9 months ago (2011-09-29 01:47:12 UTC) #6
Peng
On 2011/09/29 01:34:07, Daiki Ueno wrote: > On 2011/09/29 01:09:30, Peng wrote: > > On ...
12 years, 9 months ago (2011-09-29 01:54:42 UTC) #7
Daiki Ueno
On 2011/09/29 01:54:42, Peng wrote: > Actually self.set_no_show_all(True) is not for preventing re-show the item ...
12 years, 9 months ago (2011-09-29 02:17:30 UTC) #8
Peng
12 years, 9 months ago (2011-09-29 02:53:45 UTC) #9
On 2011/09/29 02:17:30, Daiki Ueno wrote:
> On 2011/09/29 01:54:42, Peng wrote:
> > Actually self.set_no_show_all(True) is not for preventing re-show the item
> when
> > self.show_all() is called. It is for preventing re-showing the item, when
> > show_all() of the language bar (It is the parent widget of all property
items
> )
> > is called.
> 
> Yeah, I know, but unintuitively, it does also affect self.show_all().
> 
> http://git.gnome.org/browse/gtk+/tree/gtk/gtkwidget.c#n4061
> 
> > Maybe you could try below steps when a property is hidden:
> > $ gconftool-2 --set --type=int /desktop/ibus/panel/show 0
> > # Hide language bar
> > $ gconftool-2 --set --type=int /desktop/ibus/panel/show 2
> > # Always show language bar
> 
> I ran the following shell script on another terminal, enabled ibus-m17n and
did
> show/hide the status prop, the prop is still hidden after re-show.
> 
> #!/bin/sh
> sleep 10
> gconftool-2 --set --type=int /desktop/ibus/panel/show 0
> sleep 5
> gconftool-2 --set --type=int /desktop/ibus/panel/show 2

lgtm
Sign in to reply to this message.

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