Re: CList example (Title Buttons)
- From: Ken Steen <ksteen earthlink net>
- To: gtk-app-devel-list gnome org
- Subject: Re: CList example (Title Buttons)
- Date: Tue, 5 Dec 2000 08:41:34 -0700
Can someone point me to an example of using a GTK CList's title buttons with
callbacks? I could only find reference that it is possible within the Tutorial
and other online documents.
When you setup our clist just connect to the "click_column" signal
gtk_signal_connect(GTK_OBJECT(your_clist), "click_column",
GTK_SIGNAL_FUNC(column_cb), NULL);
Then do what ever you want to do when the column is clicked in the
call back function.
void column_cb(GtkWidget *widget, gint col, gpointer data)
{
do_what_you_want();
}
Ken
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]