GTK+
The GIMP Toolkit

General
Introduction
Screenshots
Download
Mailing Lists
Language Bindings
Themes
Bug Tracker

Documentation
FAQ
Tutorial
API Reference
Published Books

Projects
Pango
Inti
GNOME
GTK+ for Win32
GtkFB (Framebuffer)
GTK+ on DirectFB
GTK+ for BeOS

Applications
GIMP
Abiword
Dia
Glade
GnuCash
Gnumeric

GNOME Software Map

11.9. The signals that bring it together

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);