Re: now that we're on GtkDrawingArea... =)
- From: Paul Davis <pbd Op Net>
- To: davidgn servidor unam mx
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: now that we're on GtkDrawingArea... =)
- Date: Thu, 28 Feb 2002 09:56:00 -0500
>I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a noteboo
>k on a table..... like the song...
>
>I couldnt use any function that gets a GdkWindow as a parameter. As in the scr
>ibble example, the Area is just under the Window, and it works. But i had the
>DrawingArea somewhere else, and area->window sent messages like:
>
>Gdk-CRITICAL **: file gdkdraw.c: line 42 (gdk_draw_point): assertion `drawable
> != NULL' failed.
at what point in your code are you trying to draw on the DrawingArea?
i hope, given all the messages about this, that its within an
expose_event handler.
>As i read, some widgets does not have its own window (but the example worked u
>sing the Area's window, widget-window), and they draw on its parent window.
>I thought maybe DrawingArea is one such widget (though doesnt sound like it),
>and since the example works, i used the main window's window as the parameter
>to gdk_pixmap_new and other functions. It works.
it has its own window.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]