Re: events from signals



Ben Dougherty <benjamind miles33 co uk> writes:
> 
> I expect this is a silly question and I have missed something, but I
> carn't figure out how to get an event once in an emission function.

This is really a gtk-list or gtk-app-devel-list question, this list is
for development of GTK itself.

> Here is the emission funtion:
> 
> gboolean sd_gtk_container_mouse_press_hook(GtkObject *object,
> 						guint signal_id,
> 						guint n_params,
> 						GtkArg *params,
> 						gpointer data)

The args to the signal are passed in as the GtkArg *params array -
look at the signal marshallers in gtksignal.c to see how that works.

Havoc




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