Re: Add GtkRadioGroup?



On Mon, 2010-11-01 at 23:51 -0400, Ryan Lortie wrote:
> hi Alex,
> 
> I was thinking of doing the same thing, but making the GtkRadioGroup
> implement GAction with a state type of string (and each radio button in
> the group being identified by a string).
> 
> Setting the action to a state equal to the name of a radio item would
> activate that item.  Easy DBus exporting for all.
> 
> Thoughts?

I'm not sure forcing every radio item to have a name is a good idea.

Also, I don't think exposing raw widgets as exported actions is a good
idea. Its probably better to have more highlevel actions, or at least
some separation between action specification and implementation.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl redhat com            alexander larsson gmail com 
He's an immortal vegetarian filmmaker whom everyone believes is mad. She's a 
transdimensional hypochondriac former first lady in the witness protection 
program. They fight crime! 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]