diff options
author | Kristian Rietveld <kris@gtk.org> | 2006-09-25 14:25:33 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2006-09-25 14:25:33 +0000 |
commit | d56ae617ef39f8adfee212b077b7eff7fb739379 (patch) | |
tree | 15986272e748dc93ffcf70ed4713135922873bab /gtk/gtktreeview.c | |
parent | c6a50a819407246e57ca2b3b4c9d49f7ff056d89 (diff) | |
download | gtk+-d56ae617ef39f8adfee212b077b7eff7fb739379.tar.gz |
only attempt to create the GCs if the widget is realized. (Fixes #357578).
2006-09-25 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): only attempt
to create the GCs if the widget is realized. (Fixes #357578).
Diffstat (limited to 'gtk/gtktreeview.c')
-rw-r--r-- | gtk/gtktreeview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 8d64e8df50..148dbbd291 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -14624,7 +14624,7 @@ gtk_tree_view_set_grid_lines (GtkTreeView *tree_view, old_grid_lines = priv->grid_lines; priv->grid_lines = grid_lines; - if (!GTK_WIDGET_REALIZED (widget)) + if (GTK_WIDGET_REALIZED (widget)) { if (grid_lines == GTK_TREE_VIEW_GRID_LINES_NONE && priv->grid_line_gc) |