gtk_widget_set_events on drawing area in interface built with Glade



Hi,

I want to connect some events to a Gtk drawing area, but where should I
put this in the source code built with Glade ???

The drawingarea1 is local to "interface.c", but I cannot edit this file
as it might be overwritten ?

e.g.: gtk_widget_set_events (drawingarea1, GDK_EXPOSURE_MASK
			 | GDK_BUTTON_PRESS_MASK
			 | GDK_POINTER_MOTION_MASK
							);

Best regards,

Peter



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