Re: [gtk-list] Re: itemfactory radiomenuitems?



Robert_Gasch/PeopleSoft@peoplesoft.com wrote:
> 
> Hi,
> 
> I'm having some similar problem using itemfactory and
> radiomenuitems. In my case, if I have 2 menu items (A & B) ,
> the first time I select B, I get an event for A and B. Subsequent
> selects work OK ...
> I've been stuck on this 'bug' now for quite a while (something
> like 2 months) and I'm encouraged by the fact that you have
> (somewhat similar) problems ..
> 
> Can anybody confirm that it is possible to get a properly working
> menu of radioitems with itemfactory. I'm using Gtk--, but that
> shouldn't really matter ...
> 
> Thanks
> --> R
> 
> Marsel Osipov <virtuoso@jps.net> on 05/01/99 07:51:44 AM
> 
> Please respond to gtk-list@redhat.com
> 
> To:   Gtk list <gtk-list@redhat.com>
> cc:    (bcc: Robert Gasch/PeopleSoft)
> Subject:  [gtk-list] itemfactory radiomenuitems?
> 
> Hello all
> 
> Does anyone have  a working example of how to use radiomenuitems with
> itemfactory?  Or can anyone point me to what I am doing wrong?  I have
> an itemfactory that creates 2 radiomenuitems. "/Shade/Flat" and
> "/ShadeSmooth", now, when I run the prog, and click on "Shade", both of
> the items are selected.  I click on one of them, the other unselects,
> and the next time I click on the menu, they work as expected.  But it is
> the first time I click on the menu that I am having troubles with.  I
> create the items, and then use get_radiomenuitem_widget(path) to get the
> item so that I can set it active, but that does not work.  Any clues?
> 
> Thank you
> Marsel
> 
> --

 Funny this came up now, I am just starting to change over my manually
created menus to the itemfactory this morning and I have a group of
radio_menuitems in it. I have been playing with an example from Eric
Harlow's book http://www.bcpl.net/~eharlow/book/ch5.tar.gz that I had to
add the paths to for them to work properly but it seems to work all
right for me. It's not gtk-- but it should be similar enough. Maybe a
bug in gtk-- ?

HTH,

-- 
		Stephen



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