put the newly selected row(s) the in the middle of the view,

2006-05-16  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtkfilechooserdefault.c
	(show_and_select_paths_finished_loading): put the newly selected
	row(s) the in the middle of the view,
	(update_current_folder_get_info_cb),
	(gtk_file_chooser_default_update_current_folder): make sure reload
	state is set to RELOAD_HAS_FOLDER while loading the new folder,
	so _map() won't start loading the current working directory. (Fixes
	#341028, reported by Michael Natterer).
This commit is contained in:
Kristian Rietveld 2006-05-16 12:34:01 +00:00 committed by Kristian Rietveld
parent a6e744da9d
commit c0ec5cedd8
3 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,14 @@
2006-05-16 Kristian Rietveld <kris@imendio.com>
* gtk/gtkfilechooserdefault.c
(show_and_select_paths_finished_loading): put the newly selected
row(s) the in the middle of the view,
(update_current_folder_get_info_cb),
(gtk_file_chooser_default_update_current_folder): make sure reload
state is set to RELOAD_HAS_FOLDER while loading the new folder,
so _map() won't start loading the current working directory. (Fixes
#341028, reported by Michael Natterer).
2006-05-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix

View File

@ -1,3 +1,14 @@
2006-05-16 Kristian Rietveld <kris@imendio.com>
* gtk/gtkfilechooserdefault.c
(show_and_select_paths_finished_loading): put the newly selected
row(s) the in the middle of the view,
(update_current_folder_get_info_cb),
(gtk_file_chooser_default_update_current_folder): make sure reload
state is set to RELOAD_HAS_FOLDER while loading the new folder,
so _map() won't start loading the current working directory. (Fixes
#341028, reported by Michael Natterer).
2006-05-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix

View File

@ -5768,6 +5768,8 @@ show_and_select_paths_finished_loading (GtkFileFolder *folder,
select_func, data->impl);
}
browse_files_center_selected_row (data->impl);
gtk_file_paths_free (data->paths);
g_free (data);
}
@ -6089,6 +6091,7 @@ update_current_folder_get_info_cb (GtkFileSystemHandle *handle,
goto out;
impl->update_current_folder_handle = NULL;
impl->reload_state = RELOAD_EMPTY;
set_busy_cursor (impl, FALSE);
@ -6192,6 +6195,8 @@ gtk_file_chooser_default_update_current_folder (GtkFileChooser *chooser,
data->path = gtk_file_path_copy (path);
data->keep_trail = keep_trail;
impl->reload_state = RELOAD_HAS_FOLDER;
impl->update_current_folder_handle =
gtk_file_system_get_info (impl->file_system, path, GTK_FILE_INFO_IS_FOLDER,
update_current_folder_get_info_cb,