Check whether layout is updated before moving cursor

master
Yevgen Muntyan 2005-08-08 11:41:29 +00:00
parent 849a39ad7b
commit a1c730439c
1 changed files with 10 additions and 4 deletions

View File

@ -2060,10 +2060,16 @@ void moo_icon_view_move_cursor (MooIconView *view,
g_return_if_fail (gtk_tree_path_get_depth (path) == 1); g_return_if_fail (gtk_tree_path_get_depth (path) == 1);
column = find_column_by_path (view, path, &index); if (view->priv->update_idle)
g_return_if_fail (column != NULL); {
moo_icon_view_select_path (view, path);
move_cursor_to_entry (view, column, index); }
else
{
column = find_column_by_path (view, path, &index);
g_return_if_fail (column != NULL);
move_cursor_to_entry (view, column, index);
}
} }