For radio menu items, it is best to keep a reference to each (or use the
GtkItemFactory.get_widget), and look at the active attribute.  Basically
the radio_menu_item_group is a singly linked list.  I have not exposed
this for creation of radio items because I am not sure what happens if you
give a different GSList struct when creating items (currently you give
another item that is in the group to the constructor).

As for slashes in GtkItemFactory stuff, I don't know how this would be
handled.  Since you are using gnome-libs stuff, you could look at the
GnomeUIInfo stuff.  I think it handles slashes properly.

In case anyone was wondering, the new redhat release will include
gnome-python (in the packages pygtk and pygnome), and the copy of python
will have been compiled with threading enabled.  It also contains my glint
replacement GnoRPM.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Fri, 19 Mar 1999, Markus F.X.J. Oberhumer wrote:

> I'm currently extending PySol to fully work with pygnome 1.0.1, and I'm stuck
> with the correct use of RadioMenus.
> 
> Creating and grouping the menus (using an ItemFactory) works fine,
> but I can't find a way to access or change the current setting.
> 
> What I would need is (pseudocode):
> 
>    radio_menu_item.get_group.set_selected(2)
>       - should set the 3rd menu in the radio-menu-group as selected
> 
>    ratio_menu_item.get_group.get_selected()
>       - return the index (or possibly the path) of the currently
>         selected menu-item in that group
> 
> It's obvious that something like this must exist, but I didn't find
> anything when searching in the source code.
> 
> On a related note, is there a way to have a '/' character in the
> menu text when using an ItemFactory ?
> 
> Thanks for any help,
> Markus
> 
> -----   Markus Oberhumer <[EMAIL PROTECTED]>   -----
> -----          http://wildsau.idv.uni-linz.ac.at/mfx/           -----
> -----     5E CB 5C 85 DE AF 9E BF  E9 DA 7E 6A 39 F8 CC 67      -----
> 
>                          3 WARPS TO URANUS
> 
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to