cells along row in GtkTreeView are misaligned



I'm using GtkTreeView to display a simple list of rows, each with two
columns displayed.  The renderers for both columns are text, generated with
gtk_cell_renderer_text_new().  I don't particularly want to have to do any
fancy formatting with the cells, I just want them to display the plain text
from the GtkTreeModel (created with gtk_list_store_new(..) using
G_TYPE_STRING).

The problem I see is that the text in each column is aligned differently,
even though the columns were created identically.  The first colum appears
aligned along the bottom of the row, while the second column appears aligned
along the row's top.

Changing one of the renderer's height property to 100 to make the row
excessively large demonstrates that the text of both columns is aligned in
the middle of the row.  However the bottom of the text (the baseline?) in
the second column appears to be aligned along the (lower case) top of the
text in the first column.  That is, the second column seems to be raised by
1 ex unit (or whatever unit the height of a lowercase letter like 'x' is
called).  

This happens even I haven't (knowingly) asked the formatting of text in each
column to be done differently.

Can anyone help me understand what's wrong?

Drew Parsons

p.s. please cc replies to me as I'm not subscribed to the list

p.p.s. the older (GTK+1.2) version of the application is at
www.debian.org/packages/unstable/gworldclock.  I am trying to port to GTK+2.

-- 
PGP public key available at http://people.debian.org/~dparsons/drewskey.txt
Fingerprint: A110 EAE1 D7D2 8076 5FE0  EC0A B6CE 7041 6412 4E4A



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