[gtk+] Do not call invalidate_empty_focus() when not realized



commit 00fa4a2fc0fa0ba424e7cb0df6aa4bf4ea918588
Author: Xavier Claessens <xclaesse gmail com>
Date:   Sat Apr 16 20:12:39 2011 +0200

    Do not call invalidate_empty_focus() when not realized
    
    Fixes bug 626503

 gtk/gtktreeview.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 5ba2252..ad951c3 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2839,10 +2839,10 @@ gtk_tree_view_size_allocate (GtkWidget     *widget,
 			      gtk_tree_view_get_effective_header_height (tree_view),
 			      MAX (tree_view->priv->width, allocation->width),
 			      allocation->height - gtk_tree_view_get_effective_header_height (tree_view));
-    }
 
-  if (tree_view->priv->tree == NULL)
-    invalidate_empty_focus (tree_view);
+      if (tree_view->priv->tree == NULL)
+        invalidate_empty_focus (tree_view);
+    }
 
   if (gtk_widget_get_realized (widget))
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]