Re: Help with clist widget



On Sat, 22 Jul 2000, you wrote:
> hi people
>
> one small question: how do i connect a signal into an active title?
>
> if i have a clist:
>     GtkWidget *gtk_clist_new_with_titles(gint columns, gchar *titles[]);
> and the first title is "title1", how do i refer to it so that i can
> connect a signal?

Create your callback on the "click_column" signal like so:

gtk_signal_connect (GTK_OBJECT (clist), "click_column",
GTK_SIGNAL_FUNC(on_title_click_column),
NULL);

Matthew




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