GTK+
The GIMP Toolkit
|
As with all other widgets, there are a few signals that can be used. The
CList widget is derived from the Container widget, and so has all the
same signals, but also adds the following: select_row - This signal will send the following information, in
order: GtkCList *clist, gint row, gint column, GtkEventButton *event unselect_row - When the user unselects a row, this signal is
activated. It sends the same information as select_row< click_column - Send GtkCList *clist, gint column
So if we want to connect a callback to select_row, the callback
function would be declared like this void select_row_callback(GtkWidget *widget,
gint row,
gint column,
GdkEventButton *event,
gpointer data); |
The callback is connected as usual with gtk_signal_connect(GTK_OBJECT( clist),
"select_row",
GTK_SIGNAL_FUNC(select_row_callback),
NULL); |
|