problem with GdkPixmap and GtkDrawingArea

2002-10-16 Thread beer
I try to draw something by use Pixmap and Drawing area but I get some problem.What is cause of problem?How can I fix it?Please tell me, thank you very much. Poblem is 1) Gdk-CRITICAL **: file gdkdraw.c: line 90 (gdk_draw_rectangle): assertion `gc != NULL' failed. error 1) occur when I

Re: GdkPixmap and GtkDrawingarea

2002-10-16 Thread Olexiy Avramchenko
beer wrote: I try to draw something by use Pixmap and Drawing area but I get some problem. What is cause of problem? How can I fix it? Please tell me, thank you very much. Poblem is 1) Gdk-CRITICAL **: file gdkdraw.c: line 90 (gdk_draw_rectangle): assertion `gc != NULL'

Re: GdkPixmap and GtkDrawingarea

2002-10-16 Thread Sven Neumann
Hi, Olexiy Avramchenko [EMAIL PROTECTED] writes: You have to be sure that your widget (GtkDrawingArea) was realized. If not - all gdk stuff inside it is not allocated. The simpliest way is to call gtk_widget_show(area) after area creation (before all your drawlings). Olexiy is right here

GdkPixmap and GtkDrawingarea

2002-10-15 Thread beer
I try to draw something by use Pixmap and Drawing area but I get some problem.What is cause of problem?How can I fix it?Please tell me, thank you very much. Poblem is 1) Gdk-CRITICAL **: file gdkdraw.c: line 90 (gdk_draw_rectangle): assertion `gc != NULL' failed. error 1) occur when I