Re: Setting a RadioItem created with ItemFactory



On 04/01/07, Emmanuele Bassi <ebassi gmail com> wrote:
you should not use that: switching to Gtk2::UIManager usually solves
most issues, and UIManager is at least actively maintained - while
ItemFactory is deprecated.

Ah. Didn't know that. I'll add switching to the UIManager to the to do
list. Is there any chance of getting this added to the POD? The same
applies to FileChooser and FileSelector and I'm sure others too.

get the MenuItem widget from the ItemFactory using its path and then set
it to be active:

  $factory->get_item('/Frontend/scan_image')->set_active(TRUE);

Thanks. Works a treat.

Jeff



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