Would someone happen to know how to set the font in GTK CList widgets such
that the text is a fixed width and aligned from row to row? (In C.) I'm
attempting to adjust the style, but if I execute gtk_clist_append, use the r
eturned row #, then use that corresponding # to retrieve the row style, the
style pointer retrieved happens to be null as returned by the GTK code below:
GtkStyle *
gtk_clist_get_row_style (GtkCList *clist,
gint row)
{
GtkCListRow *clist_row;
g_return_val_if_fail (clist != NULL, NULL);
g_return_val_if_fail (GTK_IS_CLIST (clist), NULL);
if (row < 0 || row >= clist->rows)
return NULL;
clist_row = ROW_ELEMENT (clist, row)->data;
return clist_row->style;
}
... So, before I dig any deeper - am I supposed to set my own style data?
Sorry if this is a stupid question - the documentation on gtk.org doesn't
make this very clear. (Windows has a very nice way of doing this with
WM_SETFONT for ListView controls... ) Some things are very lacking in GTK.
Looking through the GTK application developer's mailing list isn't
revealing any great clues either.
My guess is that I'm going to have to create my own style object, and set
some kind of font information ... But I don't want to go through all this
trouble if someone out there knows what I am trying to do.
Any help is much appreciated.
--
Mr. Resistor (-/\/\/\-) ([EMAIL PROTECTED])
Computer Engineering Student &
"What's-popularly-referred-to-as-Velcro{tm, VBIV}" Shoe Supremacist
http://www.students.uiuc.edu/~tumati
http://www.shoelacessuck.org/ [currently down]