GtkClist enable sort on title-button clicked



Hi,

I want the user to be able to sort the clist with a click on one of the
title buttons.
How can I connect the button clicked signal to the title buttons of a
clist
if it is created the following way? Or do I have to use labels,
gtk_object_set_data
and gtk_clist_set_column_widget?

gchar *titels[8]={"title1","title2","title3",..,"title_n"};

pacs_clist = gtk_clist_new_with_titles (8,titels);
gtk_object_set_data (GTK_OBJECT (pacs_dialog), "pacs_clist",
pacs_clist);
gtk_clist_set_selection_mode( GTK_CLIST (pacs_clist),
GTK_SELECTION_SINGLE);
gtk_widget_show (pacs_clist);
gtk_container_add (GTK_CONTAINER (scrolled_window8), pacs_clist);
gtk_container_set_border_width (GTK_CONTAINER (pacs_clist), 5);
gtk_signal_connect (GTK_OBJECT (pacs_clist), "select_row",
                      GTK_SIGNAL_FUNC (pacs_clist_select_row),
                      NULL);
gtk_clist_column_titles_show (GTK_CLIST (pacs_clist));

Regards
Daniel Hops

--
  ("`-''-/").___..--''"`-._   UNIX *is* user-friendly, he is just very
   `6_ 6  )   `-.  (     ).`-.__.`) picky about who his friends are...
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'
(il),-''  (li),'  ((!.-'





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