check for the widget being realized, in addition to being visible, to
2005-10-22 Michael Natterer <mitch@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the widget being realized, in addition to being visible, to avoid running into precondition check in gtk_tree_view_get_cell_area(). (approved by Kris).
This commit is contained in:
		
				
					committed by
					
						
						Michael Natterer
					
				
			
			
				
	
			
			
			
						parent
						
							f9365c3747
						
					
				
				
					commit
					d25d65852f
				
			@ -1,3 +1,10 @@
 | 
			
		||||
2005-10-22  Michael Natterer  <mitch@imendio.com>
 | 
			
		||||
 | 
			
		||||
	* gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the
 | 
			
		||||
	widget being realized, in addition to being visible, to avoid
 | 
			
		||||
	running into precondition check in gtk_tree_view_get_cell_area().
 | 
			
		||||
	(approved by Kris).
 | 
			
		||||
 | 
			
		||||
2005-10-22  Dom Lachowicz <cinamod@hotmail.com>
 | 
			
		||||
 | 
			
		||||
	* modules/engines/ms-windows/msw_style.c (setup_msw_rc_style): 
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,10 @@
 | 
			
		||||
2005-10-22  Michael Natterer  <mitch@imendio.com>
 | 
			
		||||
 | 
			
		||||
	* gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the
 | 
			
		||||
	widget being realized, in addition to being visible, to avoid
 | 
			
		||||
	running into precondition check in gtk_tree_view_get_cell_area().
 | 
			
		||||
	(approved by Kris).
 | 
			
		||||
 | 
			
		||||
2005-10-22  Dom Lachowicz <cinamod@hotmail.com>
 | 
			
		||||
 | 
			
		||||
	* modules/engines/ms-windows/msw_style.c (setup_msw_rc_style): 
 | 
			
		||||
 | 
			
		||||
@ -10377,6 +10377,7 @@ gtk_tree_view_scroll_to_cell (GtkTreeView       *tree_view,
 | 
			
		||||
   * it is much slower than just going to the point.
 | 
			
		||||
   */
 | 
			
		||||
  if (! GTK_WIDGET_VISIBLE (tree_view) ||
 | 
			
		||||
      ! GTK_WIDGET_REALIZED (tree_view) ||
 | 
			
		||||
      GTK_WIDGET_ALLOC_NEEDED (tree_view) || 
 | 
			
		||||
      GTK_RBNODE_FLAG_SET (tree_view->priv->tree->root, GTK_RBNODE_DESCENDANTS_INVALID))
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user