Re: scrollable list widget
- From: John Vetterli <jvetterli linux ca>
- To: Gtk AppDev Mailing List <gtk-app-devel-list gnome org>
- Subject: Re: scrollable list widget
- Date: Tue, 7 Mar 2006 11:10:33 -0500 (EST)
On Mon, 6 Mar 2006, Steffen Wendzel wrote:
I just started working with Gtk+2 using C-Code. I created a list
with 3 columns inside of a gtk_scrolled_window. I can scroll the
list but while scrolling, the header-line moves out of the shown
window-part.
How are you adding the GtkTreeView to the GtkScrolledWindow? It sounds
like you are adding it with gtk_scrolled_window_add_with_viewport. Try
adding the tree view directly to the scroll window with something like:
gtk_container_add (GTK_CONTAINER (my_scrolled_window),
GTK_WIDGET (my_tree_view));
HTH
JV
I create the header lines with
cell1 = gtk_cell_renderer_text_new();
columnA = gtk_tree_view_column_new_with_attributes("Name", cell1,
"text", 0, NULL);
gtk_tree_view_column_set_resizable(GTK_TREE_VIEW_COLUMN(columnA), TRUE);
and so on for cell2, collumnB, cell3 and collumnC.
Is there any way to let Gtk always display the header lines of my
columns?
steffen
--
cdp.doomed-reality.org
Phantasie ist wichtiger als Wissen, denn Wissen ist begrenzt.
-- Einstein
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]