After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 654236 - Allow to specify height of GtkTreeView in number of rows
Allow to specify height of GtkTreeView in number of rows
Status: RESOLVED DUPLICATE of bug 129318
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
3.1.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2011-07-08 11:32 UTC by Murray Cumming
Modified: 2011-07-11 13:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Murray Cumming 2011-07-08 11:32:50 UTC
In Glom, I need to specify the min height of some GtkTreeViews in terms of the number of (fixed-height) rows that I want to show.

I already know the fixed row height that I have chosen (based on a PangoLayout that I created to guess the height for text), but I have to guess the height of the other parts of the GtkTreeView, and that's hacky. I'd rather have a function such as gtk_tree_view_set_min_rows(), which would be documented as only working with fixed-height rows.

I then pass that guessed value to gtk_scrolled_window_set_min_content_height().
Comment 1 Kristian Rietveld 2011-07-11 13:05:44 UTC
I think this is a duplicate -- but please let me know if I'm wrong.

*** This bug has been marked as a duplicate of bug 129318 ***