El dom, 29 de 02 de 2004 a las 07:29, Quag Mire escribiÃ:
I'm a total newbie to Gtk and I'm attempting to put a GtkTreeView into my app. I'm ignoring all but the visual layout for now. I have a scrolled window set up with the treeview inside but I do not see the column headers at all. Have I missed something? Surely they should be visible at this point. I've tried the functions for setting headers visible but with no success.
Try gtk_tree_view_set_headers_visible (listbox, TRUE);
Here is the code for my treeview: listbox = gtk_tree_view_new(); gtk_container_add(GTK_CONTAINER (scrolledwindow), listbox); for(count = 0; count < 4; count++) { column[count] = gtk_tree_view_column_new(); gtk_tree_view_append_column(GTK_TREE_VIEW (listbox), column[count]); gtk_tree_view_column_set_min_width(GTK_TREE_VIEW_COLUMN (column[count]), 150); gtk_tree_view_column_set_visible(GTK_TREE_VIEW_COLUMN (column[count]), TRUE); } gtk_tree_view_column_set_title(GTK_TREE_VIEW_COLUMN (column[0]), "Priority"); Please help. Jose ____________________________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- Iago Rubio http://www.iagorubio.com GPGkey pgp.rediris.es id 0x909BD4DD fingerprint = D18A B950 5F03 BB9A DD89 AA75 FEDF 1978 909B D4DD ********** iago.rubio(AT)hispalinux.es ********** --------------------------------------------------
Attachment:
signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente