GNOME Bugzilla – Bug 539733
No way to control treeview separator height
Last modified: 2008-08-02 04:32:32 UTC
Separators in the treeview have a hardcoded height of 2 (height = 2 + 2 * focus_pad). There is no way to change that size. To solve this problem, Maemo's Gtk introduced a style property GtkTreeView:separator-height. Even better would be if the already existing style property GtkWidget:separator-height could be used for this. However this one defaults to '2' instead of '0'.
GtkWidget:separator-height is conditional on :wide-separators, so you could probably use it similarly to how GtkHSeparator uses it: gtk_widget_style_get (widget, "wide-separators", &wide_separators, "separator-height", &separator_height, NULL); if (wide_separators) requisition->height = separator_height; else requisition->height = widget->style->ythickness;
Created attachment 113763 [details] [review] Implement GtkTreeView::separator-height This is what Maemo does, a new property in GtkTreeView.
Created attachment 113764 [details] [review] Respect GtkWidget::separator-height and wide-separators This is a patch that makes use of the existing GtkWidget::separator-height, conditional to wide-separators as suggested by Matthias.
(In reply to comment #3) > Created an attachment (id=113764) [edit] > Respect GtkWidget::separator-height and wide-separators > > This is a patch that makes use of the existing GtkWidget::separator-height, > conditional to wide-separators as suggested by Matthias. Thanks, the patch looks good. I'd say can be comitted after Kris also had a peek at it.
Looks good to me.
2008-08-02 Matthias Clasen <mclasen@redhat.com> Bug 539733 – No way to control treeview separator height * gtk/gtktreeview.c: Respect the wide-separators and separator-height style properties when drawing separators. Patch by Christian Dywan