Re: Tab stops in GtkTextView



Nghia wrote:

Hello all,

The search option for the mailing list seems to be broken so bear with me if this was asked before.

I'm trying to implement tab stops in the GtkTextView widget for layout purposes. This is what I've done so far with no effect whatsoever.

tab_array = pango_tab_array_new_with_positions(2, FALSE, 100, PANGO_TAB_LEFT, 200, PANGO_TAB_LEFT);

Try using pixel untis instead of Pango units:

tab_array = pango_tab_array_new_with_positions(2, TRUE, 100, PANGO_TAB_LEFT, 200, PANGO_TAB_LEFT);

Or adjust your tab positions to something like 102400 and 204800.

John





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