diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2004-07-13 19:15:09 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-07-13 19:15:09 +0000 |
commit | fa349466ec7697db58dae473f4c09d18ed611498 (patch) | |
tree | 60639ecdf32a9f3bd125c85c56b2f25b2e5dacbb | |
parent | f9d9cc9aacd9279d56d380f078867b271c0e64c7 (diff) | |
download | gdk-pixbuf-fa349466ec7697db58dae473f4c09d18ed611498.tar.gz |
Fix build error.
-rw-r--r-- | gtk/gtktreeview.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 8630f68c6..5cdf66d72 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -12585,6 +12585,7 @@ check_expander_max (gint height, if (height < expander_size) { gboolean is_separator = FALSE; + gboolean invalid = FALSE; if (tree_view->priv->row_separator_func) { @@ -12600,10 +12601,11 @@ check_expander_max (gint height, tree_view->priv->row_separator_data); } - if (!is_separator) - g_warning ("height less than expander size (%d < %d);\n" - "please report this in http://bugzilla.gnome.org/show_bug.cgi?id=145528\n", - height, expander_size); + invalid = GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_INVALID); + if (!is_separator && (height > 0 || invalid)) + g_warning ("height less than expander size (%d < %d); %s\n" + "please report this in http://bugzilla.gnome.org/show_bug.cgi?id=145528\n", + height, expander_size, invalid ? "node invalid" : ""); } return height ? height : expander_size; |