Re: GladeXML Gtk2::Gdk::Drawable



On Tue, 2003-11-18 at 01:48, muppet wrote:
On Tue, 2003-11-18 at 01:16, Bruce Alderson wrote:
I'm porting the scribble Gtk2:: example to GladeXML, and am getting the
following error on the expose event:

*** unhandled exception in callback:
***   variable is not of type Gtk2::Gdk::Drawable at ./scribble.pl line
114.
***  ignoring at ./scribble.pl line 38.

very odd.  i can't recreate that.
tetsuo:~$ pkg-config --modversion libglade gtk+-2.0
0.17
2.0.6
tetsuo:~$ 

you probably want libglade-2.0's version.
pkg-config --modversion libglade-2.0 gtk+-2.0
2.0.1
2.2.1

i get the same error message.

dumping the params to the expose callback, perl scribble.pl:
$VAR1 = bless( {}, 'Gtk2::DrawingArea' );
$VAR2 = bless( {}, 'Gtk2::Gdk::Window' );
*** unhandled exception in callback:
***   variable is not of type Gtk2::Gdk::Drawable at scribble.pl line
116.
***  ignoring at scribble.pl line 38.

from the looks of it the draw_drawable function was a
Gtk2::Gdk::Drawable and for some reason doesn't think that a
Gtk2::Gdk::Window is one, which according to the hierarchy it is. as for
why this isn't a problem with the scribble in examples and is with the
glade-ized one i haven't a clue.

-rm




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