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);
if (view->priv->update_idle)
{
moo_icon_view_select_path (view, path);
}
else
{
column = find_column_by_path (view, path, &index); column = find_column_by_path (view, path, &index);
g_return_if_fail (column != NULL); g_return_if_fail (column != NULL);
move_cursor_to_entry (view, column, index); move_cursor_to_entry (view, column, index);
}
} }