+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
+
2008-08-02 Matthias Clasen <mclasen@redhat.com>
Bug 65818 – rename gtk_window_set_default() and add getter for it
#define _TREE_VIEW_EXPANDER_SIZE 12
#define _TREE_VIEW_VERTICAL_SEPARATOR 2
#define _TREE_VIEW_HORIZONTAL_SEPARATOR 2
-
+
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("expander-size",
P_("Expander Size"),
gboolean draw_vgrid_lines, draw_hgrid_lines;
gint focus_pad;
gint grid_line_width;
+ gboolean wide_separators;
+ gint separator_height;
/* double check the row needs validating */
if (! GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_INVALID) &&
"horizontal-separator", &horizontal_separator,
"vertical-separator", &vertical_separator,
"grid-line-width", &grid_line_width,
+ "wide-separators", &wide_separators,
+ "separator-height", &separator_height,
NULL);
draw_vgrid_lines =
height = MAX (height, tree_view->priv->expander_size);
}
else
- height = 2 + 2 * focus_pad;
+ {
+ if (wide_separators)
+ height = separator_height + 2 * focus_pad;
+ else
+ height = 2 + 2 * focus_pad;
+ }
if (gtk_tree_view_is_expander_column (tree_view, column))
{