Files
gtk/tests
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-02-17 22:54:10 +00:00
1997-11-24 22:37:52 +00:00
1998-02-27 06:13:22 +00:00
1997-11-24 22:37:52 +00:00
1997-11-24 22:37:52 +00:00
2003-09-30 20:55:24 +00:00
2003-09-30 20:55:24 +00:00
1997-11-24 22:37:52 +00:00
2002-10-13 23:22:33 +00:00
2004-11-12 05:42:49 +00:00
2005-07-13 05:44:22 +00:00
1997-11-24 22:37:52 +00:00
2005-07-12 18:08:20 +00:00
2004-10-28 15:00:05 +00:00
2005-07-13 05:44:22 +00:00
2005-07-13 05:44:22 +00:00
2004-09-30 14:46:21 +00:00
2005-09-09 18:19:48 +00:00
2005-07-13 05:44:22 +00:00
2005-07-13 05:44:22 +00:00
2004-10-28 15:00:05 +00:00
2005-07-13 05:44:22 +00:00