Subject: problem with PiGTK
From: <peterpan@airinbox.com>
Date: Tue, 25 Feb 2003 AD 01:42:53 -0500
the code:
GTK.setup_gtk();
GTK.Dialog win=GTK.Dialog();
win->set_modal(1);
if(win->action_area==0)
werror("bad\n");
GTK.HbuttonBox hbox=win->action_area();
GDK.Image img=GDK.Image(0,Image.image(200,200)->test());
hbox->add(GTK.Button()->add(GTK.Image(img)));
win->show_all();
break;
the stderr:
Gdk-CRITICAL **: file gdkimage.c: line 476 (gdk_image_put_normal): assertion `image->type == GDK_IMAGE_NORMAL' failed.
Gdk-CRITICAL **: file gdkimage.c: line 476 (gdk_image_put_normal): assertion `image->type == GDK_IMAGE_NORMAL' failed.
and there was no picture showed on the button.
any advice?
Return to results