Files
gtk2/gtk
Federico Mena Quintero 72851a22cd Don't reload the current folder unnecessarily on ::map().
2005-09-27  Federico Mena Quintero  <federico@ximian.com>

	Don't reload the current folder unnecessarily on ::map().

	* gtk/gtkfilechooserprivate.h (ReloadState): New enum to represent
	the reloading state.
	(struct _GtkFileChooserDefault): Added a "reload_state" field.

	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
	Initialize impl->reload_state.
	(gtk_file_chooser_default_map): Check the impl->reload_state; load
	a default folder if no folder has been set, or reload the current
	one only if we had been unmapped first.
	(gtk_file_chooser_default_update_current_folder): Set the
	reload_state to RELOAD_HAS_FOLDER.
	(gtk_file_chooser_default_unmap): Implement, and set the
	reload_state to RELOAD_WAS_UNMAPPED.
	(shortcuts_model_create): Don't call shortcuts_add_bookmarks()
	here; they'll get (re)loaded on ::map() anyway.

	* gtk/gtkfilechooserwidget.c
	(gtk_file_chooser_widget_constructor): Don't set a default folder here.

	* tests/autotestfilechooser.c (test_action_widgets): Don't take in
	a dialog; build it ourselves.
	(test_reload): New test to ensure that we don't load the default
	folder more than once, and that we reload it when
	unmapping/remapping.
	(get_impl_from_dialog): New utility function.
	(test_widgets_for_current_action): Use get_impl_from_dialog().
2005-09-27 23:57:09 +00:00
..
2005-03-21 02:42:16 +00:00
2005-08-07 13:47:25 +00:00
2005-07-09 00:10:12 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-20 15:20:11 +00:00
2004-11-23 20:02:15 +00:00
2004-11-28 07:02:27 +00:00
2004-11-28 07:02:27 +00:00
2004-11-28 07:02:27 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2004-11-28 07:02:27 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-03-15 13:18:25 +00:00
2005-09-01 05:11:46 +00:00
2005-09-19 18:56:55 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-03 03:29:04 +00:00
2005-09-01 05:11:46 +00:00
2005-07-14 13:12:05 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-11 05:46:20 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-08-29 23:48:49 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-03-21 15:34:36 +00:00
2005-09-01 05:11:46 +00:00
2005-08-29 19:01:42 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-08-29 19:15:24 +00:00
2005-09-01 05:11:46 +00:00
2005-05-06 03:12:33 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2004-11-28 07:02:27 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00