summaryrefslogtreecommitdiff
path: root/gtk/gtktreeview.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2006-09-25 14:25:33 +0000
committerKristian Rietveld <kristian@src.gnome.org>2006-09-25 14:25:33 +0000
commitd56ae617ef39f8adfee212b077b7eff7fb739379 (patch)
tree15986272e748dc93ffcf70ed4713135922873bab /gtk/gtktreeview.c
parentc6a50a819407246e57ca2b3b4c9d49f7ff056d89 (diff)
downloadgtk+-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.c2
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)