Re: What are map_event and unmap_event?

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

 



 --- Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx> wrote: > >So, say in Gimp
for example, when does the drawing area widget emit
> the
> >map event?
> 
> whenever the window is made visible on the screen after it was
> created
> or unmapped.
> 
> by contrast, expose_event is emitted for any necessary redraw.
> 
> you generally don't need map_event - its useful for obscure hacks and
> not a lot else.
> 
> --p 

So you are saying as long as the drawing_area_widget is on the screen,
it will emit the map_event? 

So say if I want to display animation with the drawing_area_widget, I
don't need to set the gtk_idle function to the rendering function.
Instead I just create the rendering function as the callback function
for the map_event, since map_event is constantly being emitted by the
widget as long as it's visible. Correct?

Jack

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux