Re: [gtk-list] Offscreen Surfaces



It is not an arbitrary point at all (it just seems so).  The window
attribute is initalized once the widget is realized.  You can realize it 
any time after you have created it with gtk_drawing_area_new.

On Wed, 30
Jun 1999, Mindbender wrote:

> Hi,
> 
> I'm having a problem using Gtk's drawing area widget.  I prepare the
> widget
> using the following calls.
> 
>     gtk_drawing_area_size( ... );
>     gtk_box_pack_start( ... );
>     gtk_widget_realize( drawing_area );
>     gtk_widget_show( drawing_area );
>     gtk_widget_show( box );
> 
> Then I would like to assign the actual drawable to another internal
> variable....
> this seems the only appropriate place to do this.
> 
>     drawable = drawing_area->window;
> 
> My problem is that the surface is NULL until some arbitrary point past
> the 
> gtk_widget_realize (or maybe gtk_widget show ).  Is there a way to force
> Gtk
> to obtain the surface immediately ( before the function returns )?
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 

  +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  =   Rob Huffstedtler          |     We now return to our regularly     +
  +   (931) 596-3560            |        scheduled programming           =
  =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+



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