From: Stalkern 2 Reply-To: stalkern2 at tin.it To: lablgtk at kaba.or.jp Subject: clists, packing beyond viewport, gtk notebook Date: Fri, 23 May 2003 17:42:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305231742.54903.stalkern2 at tin.it> Hello to everybody I'm (still) in GTK 1.2 and I'm using clists. I found out that clists are discarded in GTK2 but I don't know why yet. 1) I'm looking for putting a sorting callback on the TITLES: before I start working on it for a week, I'd like to ask ;-) is it feasible with lablgtk? is there any code that I should read? I see some sorting functions but I still have to try them out and in any case I still have to see the whole thing in practice. 2) Right now, 'm looking for a lablgtk-ish translation of the following: (a FAQ from http://www.gtk.org/faq/ ) ---------------------------------------------------------------------------------------- 6.2. How do I stop the column headings of a GtkCList disappearing when the list is scrolled? How do I stop the column headings of a GtkCList disappearing when the list is scrolled? This happens when a GtkCList is packed into a GtkScrolledWindow using the function gtk_scroll_window_add_with_viewport(). The prefered method of adding a CList to a scrolled window is to use the function gtk_container_add, as in: GtkWidget *scrolled, *clist; char *titles[] = { "Title1" , "Title2" }; scrolled = gtk_scrolled_window_new(NULL, NULL); clist = gtk_clist_new_with_titles(2, titles); gtk_container_add(GTK_CONTAINER(scrolled), clist); ---------------------------------------------------------------------------------------- I've tried to add the clist to the scrolled window but I get exception Gtk.Error ("GContainer.container#add: already full") A packing like described in the GTK FAQ would be a kind of surprise for me but if you know that it is possible in lablgtk, please tell me. 3) Another question: is the use GTK notebook a bad GTK practice? I found it out by chance, so I'm wondering if it's clumsy somehow. Thanks for any hint Ernesto