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

Issue 240100043: ibus-ui-gtk3: radio and check menu items work with GTK 3.16 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 11 months ago by fujiwara
Modified:
8 years, 11 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

ibus-ui-gtk3: radio and check menu items work with GTK 3.16 GTK 3.16 has cleared the radio buttons' state in gtk_radio_menu_item_set_group(): https://git.gnome.org/browse/gtk+/commit/?id=955aed9227 BUG=https://code.google.com/p/ibus/issues/detail?id=1784 TEST=ui/gtk3/ibus-ui-gtk3

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -4 lines) Patch
M ui/gtk3/property.vala View 3 chunks +41 lines, -4 lines 3 comments Download

Messages

Total messages: 4
fujiwara
8 years, 11 months ago (2015-05-22 03:12:13 UTC) #1
Peng
https://codereview.appspot.com/240100043/diff/1/ui/gtk3/property.vala File ui/gtk3/property.vala (right): https://codereview.appspot.com/240100043/diff/1/ui/gtk3/property.vala#newcode193 ui/gtk3/property.vala:193: public void update_property(IBus.Property property) { Seems those function implementations ...
8 years, 11 months ago (2015-05-22 03:23:59 UTC) #2
fujiwara
https://codereview.appspot.com/240100043/diff/1/ui/gtk3/property.vala File ui/gtk3/property.vala (right): https://codereview.appspot.com/240100043/diff/1/ui/gtk3/property.vala#newcode193 ui/gtk3/property.vala:193: public void update_property(IBus.Property property) { On 2015/05/22 03:23:59, Peng ...
8 years, 11 months ago (2015-05-22 04:57:35 UTC) #3
Peng
8 years, 11 months ago (2015-05-22 10:32:56 UTC) #4
lgtm

https://codereview.appspot.com/240100043/diff/1/ui/gtk3/property.vala
File ui/gtk3/property.vala (right):

https://codereview.appspot.com/240100043/diff/1/ui/gtk3/property.vala#newcode193
ui/gtk3/property.vala:193: public void update_property(IBus.Property property) {
On 2015/05/22 04:57:35, fujiwara wrote:
> On 2015/05/22 03:23:59, Peng wrote:
> > Seems those function implementations are similar to functions in
> > PropCheckMenuItem. Can PropCheckMenuItem and PropRadioMenuItem share one
> parent
> > class to avoid duplicate code?
> > 
> > For example:
> > 
> > class PropItem : IPropItem {
> >  void update_propertu(...) { ... }
> >  ...
> > }
> > class PropRadioMenuItem : Gtk.RadioMenuItem, PropRadioItem {}
> > class PropCheckMenuItem : Gtk.RadioMenuItem, PropRadioItem {}
> 
> I think the PropCheckItem class can have only update_property() because sync()
> and toggled() uses GTK APIs internally.
> E.g. set_label() in sync() is a GTK API.
> E.g. get_active() in toggled() is a GTK API.
> And also need to create a new method in PropCheckItem.
> E.g. set_property_label(label) calls m_property.set_label(label) internally.
> 
> So I don't think this way avoid the duplicated codes?

I see.
Sign in to reply to this message.

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