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-09-18 12:28:42 +00:00
2005-07-12 05:09:13 +00:00
2005-09-01 14:42:02 +00:00
2005-03-21 02:42:16 +00:00
2005-08-07 13:47:25 +00:00
2005-03-20 07:01:23 +00:00
2005-07-09 00:10:12 +00:00
2005-09-22 16:33:50 +00:00
2005-09-22 16:33:50 +00:00
2005-09-13 19:57:42 +00:00
2005-07-05 14:53:37 +00:00
2005-09-06 19:52:50 +00:00
2004-11-23 20:02:15 +00:00
2005-09-13 19:57:42 +00:00
2005-09-13 19:57:42 +00:00
2004-12-12 21:09:13 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-05 18:44:29 +00:00
2005-06-10 19:11:31 +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-06-21 05:35:43 +00:00
2005-09-13 19:57:42 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-14 04:31:23 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-05-11 19:16:19 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-03-08 05:52:55 +00:00
2005-09-01 05:11:46 +00:00
2004-12-09 17:55:58 +00:00
2005-09-22 16:33:50 +00:00
2005-09-22 16:33:50 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-23 16:34:25 +00:00
2005-06-21 05:35:43 +00:00
2005-06-19 12:44:12 +00:00
2004-11-23 20:02:15 +00:00
2005-09-09 18:38:52 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2004-12-15 16:27:30 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-11 05:48:27 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-06-21 05:35:43 +00:00
2005-09-14 04:48:38 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-04-01 20:53:04 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-11 05:48:27 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-07-25 13:34:24 +00:00
2005-09-13 19:57:42 +00:00
2005-05-18 05:23:59 +00:00
2005-06-14 19:58:10 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-20 15:20:11 +00:00
2005-03-20 07:01:23 +00:00
2005-09-27 04:48:53 +00:00
2005-05-26 23:43:44 +00:00
2005-05-26 20:36:36 +00:00
2005-02-11 07:15:11 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2004-11-23 20:02:15 +00:00
2005-09-13 17:31:32 +00:00
2005-07-15 04:55:56 +00:00
2005-09-13 19:57:42 +00:00
2004-12-15 14:58:39 +00:00
2005-09-27 23:57:09 +00:00
2004-11-28 07:02:27 +00:00
2005-09-15 21:51:31 +00:00
2005-03-08 05:52:55 +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
2004-11-28 07:02:27 +00:00
2005-09-15 21:51:31 +00:00
2005-09-01 05:11:46 +00:00
2005-07-15 04:55:56 +00:00
2005-09-27 23:57:09 +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-13 19:57:42 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-03-22 20:23:19 +00:00
2005-09-15 21:51:31 +00:00
2004-11-28 07:02:27 +00:00
2005-09-01 14:42:02 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-01-02 23:15:21 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-08-29 05:06:18 +00:00
2005-03-15 13:18:25 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-11 05:48:27 +00:00
2005-08-22 20:51:56 +00:00
2005-09-19 18:56:55 +00:00
2005-06-11 05:15:10 +00:00
2005-09-13 19:57:42 +00:00
2005-06-19 02:02:09 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 18:50:39 +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-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-02 01:54:45 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-06 18:13:56 +00:00
2005-09-14 04:31:23 +00:00
2005-06-21 05:15:06 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-11 05:46:20 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-06-21 05:35:43 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-31 17:02:19 +00:00
2005-09-13 19:57:42 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2004-12-10 22:09:22 +00:00
2004-12-10 22:09:22 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-07-25 13:34:24 +00:00
2005-09-11 05:48:27 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-07-07 12:40:50 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-07-21 13:26:27 +00:00
2005-07-26 20:42:18 +00:00
2005-09-13 19:57:42 +00:00
2005-09-02 01:54:45 +00:00
2005-03-20 07:01:23 +00:00
2005-07-21 13:31:03 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-03-22 02:14:55 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-13 19:57:42 +00:00
2005-07-08 19:17:10 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-08-30 03:52:56 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-11 05:48:27 +00:00
2005-08-30 05:42:37 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-03-20 07:01:23 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2004-11-30 22:58:10 +00:00
2005-09-13 19:57:42 +00:00
2004-11-23 20:02:15 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-06-19 04:16:28 +00:00
2005-07-21 13:26:27 +00:00
2005-07-21 13:26:27 +00:00
2005-08-29 23:48:49 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-07-21 13:31:03 +00:00
2005-09-01 05:11:46 +00:00
2005-03-21 15:34:36 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-08-29 19:01:42 +00:00
2005-08-29 20:01:28 +00:00
2005-08-29 20:01:28 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-07-13 05:44:22 +00:00
2005-09-13 19:57:42 +00:00
2005-08-01 16:57:42 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-07-13 05:44:22 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2005-06-13 05:15:10 +00:00
2005-07-13 05:44:22 +00:00
2005-09-13 19:57:42 +00:00
2005-06-10 20:05:08 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-07-12 05:09:13 +00:00
2005-03-20 07:01:23 +00:00
2005-07-13 05:44:22 +00:00
2005-09-01 05:11:46 +00:00
2005-07-13 05:44:22 +00:00
2005-07-13 05:44:22 +00:00
2005-09-13 19:57:42 +00:00
2005-07-12 05:09:13 +00:00
2005-07-13 05:44:22 +00:00
2005-07-13 05:44:22 +00:00
2005-09-13 19:57:42 +00:00
2005-07-11 17:51:54 +00:00
2005-09-13 19:57:42 +00:00
2005-05-18 17:10:46 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-13 19:57:42 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-09-13 19:57:42 +00:00
2005-09-13 19:57:42 +00:00
2005-05-18 05:38:50 +00:00
2005-09-01 05:11:46 +00:00
2004-11-23 20:02:15 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-18 21:36:05 +00:00
2005-08-29 19:15:24 +00:00
2005-08-29 17:47:10 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-03-20 07:01:23 +00:00
2005-09-11 05:48:27 +00:00
2005-05-06 03:12:33 +00:00
2005-09-13 19:57:42 +00:00
2005-03-20 07:01:23 +00:00
2005-09-01 05:11:46 +00:00
2005-07-13 21:27:03 +00:00
2005-09-13 19:57:42 +00:00
2004-11-23 20:02:15 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-13 19:57:42 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-13 19:57:42 +00:00
2005-07-13 23:05:27 +00:00
2005-09-09 21:21:12 +00:00
2005-07-14 00:05:49 +00:00
2005-09-01 05:11:46 +00:00
2004-11-28 07:02:27 +00:00
2005-09-13 19:57:42 +00:00
2004-12-12 21:09:13 +00:00
2005-09-13 19:57:42 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-13 19:57:42 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-01 05:11:46 +00:00
2005-06-21 05:35:43 +00:00
2005-09-22 14:46:23 +00:00
2005-07-26 15:02:23 +00:00
2005-07-21 13:26:27 +00:00
2005-07-21 13:26:27 +00:00
2005-09-01 05:11:46 +00:00
2005-03-20 07:01:23 +00:00
2005-09-15 13:31:33 +00:00
2005-08-30 04:46:09 +00:00
2005-07-21 13:20:06 +00:00
2005-07-21 13:20:06 +00:00
2005-09-22 16:33:50 +00:00
2005-09-18 12:28:42 +00:00
2005-03-20 07:01:23 +00:00
2004-12-22 06:26:57 +00:00
2005-03-01 06:25:55 +00:00
2005-03-01 06:25:55 +00:00
2005-09-14 03:11:05 +00:00