]> Pileus Git - ~andy/gtk/commit
Implement new GtkFileSystemModel
authorBenjamin Otte <otte@gnome.org>
Tue, 30 Jun 2009 13:15:55 +0000 (15:15 +0200)
committerBenjamin Otte <otte@gnome.org>
Thu, 15 Oct 2009 20:00:06 +0000 (22:00 +0200)
commit18b56b997089595df4c602d8d045a291d69a7ff8
tree71b8ba46996f1df9da8d904a37ec35876a8d305a
parent3c9a34dba39abc24a7745d85163b8785400e7236
Implement new GtkFileSystemModel

The new model is mostly API-compatible with the old model (minimal
changes were required), but is a lot faster and has a lot of very
desirable features.
- the model does no longer support a tree, just a list of files in a
  given directory
- the storage has been moved to a GArray as opposed to a tree
- no more dependency on GtkFileSystem
- columns are managed by the creator of the model, so any number of
  nodes can be added as needed. This also makes the API more similar
  to GtkListStore.
- Values are filled on demand using a function given when creating the
  model.
- The function can decide to let the model cache returned values or
  decide to be called again the next time the value is queried.
- implements GtkTreeSortable
- _gtk_file_system_model_get_value() was added to significantly speed
  up value access, which is necessary when sorting large models.
gtk/gtkfilechooserdefault.c
gtk/gtkfilesystemmodel.c
gtk/gtkfilesystemmodel.h