Re: Gtk2::ItemFactory bug or feature?!

On Aug 12, 2004, at 6:35 PM, Jens Wilke wrote:

the documentation of  Gtk2::ItemFactory confused me, and i was not able
to convert the path of a MenuItem to delete it from the factory.

        my $oitm = $factory->get_item_by_action('albumlist');
        my ($path, $tmp) =  $oitm->path;
        # $path is s'thing like 
#'GtkWindow.<main>/Album/Aktualisieren.<main>/Album/Aktualisieren/ Album'
        $factory->delete_item($path); #does not work
        $factory->delete_item('<main>/Album/Aktualisieren/Album'); #   
works hardcoded

        $path =~ s/(.+)\.//g; # $path = '<main>/Album/Aktualisieren/Album'
        $factory->delete_item($path) # doesn't work too

I decided, to hardcode it, but may be there's a bug.

the bindings for these are trivial passthroughs, so this is more a question for gtk-list.

elysse (in labor): is the head the biggest part?
midwife: yes.
elysse: oh, good.

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