Re: gdk application and events




The quick answer is:

 Writing applications with only GDK and not GTK+ is not
 worth the bother.

I'll have to get on Raster to make that example into a
proper GTK+ program.

The slightly longer answer is that if you really wanted
to do that, what you'd need to do is use the facilities
of the GLib main loop, then register an event handler
with:

void	  gdk_event_handler_set 	(GdkEventFunc    func,
					 gpointer        data,
					 GDestroyNotify  notify);

Regards,
                                        Owen



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