diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-09-26 13:37:46 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-09-30 09:23:00 -0400 |
commit | e3b9ea5ab6d1f0c419fd9a79330e80cc56492ce2 (patch) | |
tree | 8d84718ab9630c39512b30450921ef0e98ebe83f /gtk/gtktreeviewcolumn.c | |
parent | 64c9aa219f124253891e5bdf08100b8f1055c724 (diff) | |
download | gtk+-e3b9ea5ab6d1f0c419fd9a79330e80cc56492ce2.tar.gz |
GtkTreeViewColumn: start padding at 0
If we start with a padding of -1 then it can leak out of the size
allocation request for the column when the treeview is empty. The
GtkTreeView will then collect these -1 values and add them together,
returning -n where 'n' is the number of columns.
This is usually not a problem because treeviews tend to be used with a
scrollbar and the width of the scrollbar will be added to this number
bringing it into positive territory again. On Ubuntu, with overlay
scrollbars, this is not the case, however.
https://bugzilla.gnome.org/show_bug.cgi?id=703062
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index ea16706e32..e1846d5945 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -464,7 +464,7 @@ gtk_tree_view_column_init (GtkTreeViewColumn *tree_column) priv->button = NULL; priv->xalign = 0.0; priv->width = 0; - priv->padding = -1; + priv->padding = 0; priv->min_width = -1; priv->max_width = -1; priv->column_type = GTK_TREE_VIEW_COLUMN_GROW_ONLY; |