Re: GtkCellLayout interface

2007-12-29 Thread muppet
On Dec 29, 2007, at 6:40 PM, Kevin Ryde wrote: > Is GtkCellLayout available as an interface thingie for perl code > widgets > to implement? Or is it needed? I guess you could just write the > corresponding method funcs if you like its style and that'd be close > enough for use from other perl

Re: weakened userdata

2007-12-29 Thread muppet
On Dec 29, 2007, at 7:34 PM, Kevin Ryde wrote: > When making a signal callback in a child widget to act on some parent, > with the parent as the userdata in the signal, is there a usual way to > weaken or do something to that userdata to avoid creating a circular > reference? This issue exists w

weakened userdata

2007-12-29 Thread Kevin Ryde
When making a signal callback in a child widget to act on some parent, with the parent as the userdata in the signal, is there a usual way to weaken or do something to that userdata to avoid creating a circular reference? Including possibly a child component which is a popup menu and so not direct

Re: GtkGC shared auto-release

2007-12-29 Thread Kevin Ryde
Torsten Schoenfeld <[EMAIL PROTECTED]> writes: > > Gtk2::GC itself already offers shared GCs, so there > ought to be something better than SharedGC. I think I'll end up with Gtk2::Ex::GtkGCobj, which is nice and similar to GtkGC since nothing more advanced than its sharing is offered, and "obj" tr

Re: Gtk2 dmake test hangs

2007-12-29 Thread T.J. Ferraro
My suggestion? Move on unless you have a *lot* of time on your hands :) nmake test: Failed Test Stat Wstat Total Fail List of Failed --- t/Gdk.t 4 1024 17 12 12-17 t/GdkDisplay.t 255 65280 24 47 1-24 t/GdkInput.t 1 256 16

Re: Gtk 1.162 build issues under win32

2007-12-29 Thread T.J. Ferraro
Yep, moving the statement up one line did the trick. Thanks T.J. muppet wrote: > Try changing the code to this: > > static void > gtk2perl_pango_cairo_shape_renderer_func (cairo_t *cr, > PangoAttrShape * attr, >

GtkCellLayout interface

2007-12-29 Thread Kevin Ryde
Is GtkCellLayout available as an interface thingie for perl code widgets to implement? Or is it needed? I guess you could just write the corresponding method funcs if you like its style and that'd be close enough for use from other perl code. (I'm tinkering with a scrolling stock ticker and thou

Re: Gtk 1.162 build issues under win32

2007-12-29 Thread muppet
On Dec 29, 2007, at 6:22 AM, T.J. Ferraro wrote: > Using VC7. My condolences. I have no access to this, so i can only offer hints > Dumb idea? I don't know the code...I just know it compiled :) Thanks > for > any thoughts on the matter. That sounds an awful lot like one of the macros

Gtk2 dmake test hangs

2007-12-29 Thread rahed
Hi, I run dmake test for Gtk2-1.162 on windows which hangs at Gdk.t test. Actually after ok 11, when $window -> show_now(); is called. A small gtk window pops up but the test doesn't go on. Any pointers? Thanks. -- Radek ___ gtk-perl-list mailing l

Re: failed test when installing Cairo on windows

2007-12-29 Thread Torsten Schoenfeld
On Fri, 2007-12-28 at 23:57 -0800, T.J. Ferraro wrote: > *alloc/free is not safe. You should be using New* and Safefree for > *alloc/free calls. I remember the same problem being resolved in DBD-Pg > a little while back. The attached diff is against 1.044. At first I > only changed the calloc/

Re: failed test when installing Cairo on windows

2007-12-29 Thread rahed
"T.J. Ferraro" <[EMAIL PROTECTED]> writes: > *alloc/free is not safe. You should be using New* and Safefree for > *alloc/free calls. I remember the same problem being resolved in > DBD-Pg a little while back. The attached diff is against 1.044. At > first I only changed the calloc/free calls, whi

Re: Gtk 1.162 build issues under win32

2007-12-29 Thread Torsten Schoenfeld
On Sat, 2007-12-29 at 03:22 -0800, T.J. Ferraro wrote: > Using VC7. If I compile against pango < 1.17 it compiles fine. Otherwise: > > PangoCairo.c > xs\PangoCairo.xs(24) : error C2143: syntax error : missing ';' before > 'type' > [...] That's weird. I don't see anything wrong with the code. W

Gtk 1.162 build issues under win32

2007-12-29 Thread T.J. Ferraro
Using VC7. If I compile against pango < 1.17 it compiles fine. Otherwise: PangoCairo.c xs\PangoCairo.xs(24) : error C2143: syntax error : missing ';' before 'type' xs\PangoCairo.xs(26) : error C2065: 'callback' : undeclared identifier xs\PangoCairo.xs(26) : error C2223: left of '->priv' must poin