Re: Gtk2::ItemFactory bug or feature?!

Jens Wilke said:
On Friday 13 August 2004 14:07, muppet wrote:

do the hardcoded string and the subbed one match exactly by byte
values, or do they just look the same to the eye?

Sorry, they don't match, since it isn't the very first Item (not branch)
of the factory any more.
$factory->get_item_by_action("albumlist"); # albumlist is the callback
returns Argument "albumlist" isn't numeric in subroutine entry at...
and it returns always the first Item.

get_item_by_action() wants a number, not a string -- the numeric action code
associated with the item.  "albumlist" is a string, and doesn't look like a
number, so the conversion to number gives you 0, which is the first action, so
you always get the first item.

muppet <scott at asofyet dot org>

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