Gtk2::ItemFactory bug or feature?!



Hi,

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.

Rgds, Jens




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