Re: Gtk2::SimpleMenu proposal



On Sat, 2003-08-16 at 21:34, Gavin Brown wrote:
I've tried to get the <ImageItem> type working before and had no luck -
I've tried creating some inline data using gdk-pixbuf-csource and
sending it via a scalar and a reference and neither work.

From a developer's point of view, being able to supply a GdkPixbuf would
be a lot more desirable than using inline data.

according to the C api documentation you're supposed to send it a
GdkPixdata stream. the most likely canidate (that i can find) would be
gdk_pixdata_from_pixbuf, which isn't bound into perl. the only
references i could find to it on the web were message to the gtk-devel
mailing list complaining about the fact that it sucks and should take a
pixbuf or something similar. 

Otherwise, the SimpleMenu looks cool - are accelerators supported yet?

any of the members in a item factory entry are passed unmolested. to use
them you just put a key with the same name as one of the members of the
entry struct. so however you'd specify your acc's when using an item
factory you'd do the same (well similar) for SimpleMenu. as a side note
you can use the an array of hashes as input into itemfactory, but you
don't get the hierarchy that SimpleMenu gives you. take a look at the
itemfactory test for more info on that.

-rm




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