problem with gtk_tree_view_set_fixed_height_mode()



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I'm trying to use GtkTreeView's fixed height mode for a playlist that
can hold thousands of items, but I'm having a bit of trouble.  All I
seem to get is:

Gtk-CRITICAL **: gtk_tree_view_insert_column: assertion
`gtk_tree_view_column_get_sizing (column) == GTK_TREE_VIEW_COLUMN_FIXED'
failed

I've tried gtk_cell_renderer_text_set_fixed_height_from_font() (I have
three columns, all text renderers), but no help there; I still get the
above critical message.

If I set the sizing of each column to GTK_TREE_VIEW_COLUMN_FIXED, I get
4500 blank rows, and only the middle column header is visible (probably
because I set its 'expand' property to TRUE).  Not too useful.

I'm not understanding why fixed height mode has anything to do with the
sizing mode, since (according to the docs[1]), the sizing mode is only
used to determine the _width_ of the cell, not the height.

Can someone enlighten me here?

Thanks,
Brian

[1] "The sizing method the column uses to determine its *width*. Please
note that GTK_TREE_VIEW_COLUMN_AUTOSIZE are inefficient for large views,
and can make columns appear choppy."  (emphasis mine)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDPlt86XyW6VEeAnsRAq5pAJsHS+iv9PZ6tt+054LBbixZ1tonYACeLi1u
7VXKtMS33iWeRaq9lexw+b4=
=ajae
-----END PGP SIGNATURE-----



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