Re: gtkradiobutton property group

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

 



On Thu, Apr 1, 2010 at 9:41 PM, John Williams <asb1231@xxxxxxxxx> wrote:
> If you are wright where is the function that get/set the property? And
> what's the property set/get by the functions _set_group() and
> _get_group()?

gtk_radio_button_set/get_group():
   o Deals with a const GSList * of radio buttons

GtkRadioButton:group property:
  o Is a GtkRadioButton * object type

To set a radio button onto the group of another, you can do:

g_object_set (button, "group", group_button, NULL);

Its essentially the same as calling:

gtk_radio_button_set_group (group, gtk_radio_button_get_group (group_button));

Essentially they mean the same thing, but dont confuse the property with
the accessor functions that happen to have the same name because of their
similar meaning, this is just not a case of a typed property with a
corresponding
accessor and mutator, they are separate apis.

Cheers,
       -Tristan


>
> 2010/3/31 Tristan Van Berkom <tvb@xxxxxxxxx>:
>> On Wed, Mar 31, 2010 at 10:10 PM, John Williams <asb1231@xxxxxxxxx> wrote:
>>> Hello,
>>>
>>> I'm looking at the GtkRadioButton
>>> (http://library.gnome.org/devel/gtk/stable/GtkRadioButton.html) and
>>> see that the property group is of type GtkRadioButton *, but the
>>> return of the function gtk_radio_button_get_group is a GSList *. Is
>>> this right?
>>
>> Correct, the property is of type GtkRadioButton, _get_group() should
>> not be confused with the property (although its tempting).
>>
>> The slist should be a list of buttons, thats correct.
>>
>> Cheers,
>>            -Tristan
>>
>>>
>>> I suppose that the in the group property have all the other radio
>>> buttons of the same group, is this right?
>>>
>>> Thank you!
>>> _______________________________________________
>>> gtk-list mailing list
>>> gtk-list@xxxxxxxxx
>>> http://mail.gnome.org/mailman/listinfo/gtk-list
>>>
>>
>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux