Re: Gtk2::ItemFactory bug or feature?!

On Thu, Aug 12, 2004 at 20:08:24 -0400, muppet wrote:

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 
    $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.

Well, if the variable and the hardcoded string are really the same, it
would be on the perl side. It'd need a bit of debugging. Print the
argument from perl and then from C to see whether it's passed right.

                                                 Jan 'Bulb' Hudec <bulb ucw cz>

Attachment: signature.asc
Description: Digital signature

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