diff options
author | Federico Mena Quintero <federico@ximian.com> | 2005-09-15 21:51:31 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2005-09-15 21:51:31 +0000 |
commit | 329bc4e22109bbf7633d22ff2a50e4f10628a783 (patch) | |
tree | 608f0d31e9fc1dce764077ca9553c1efcf2b3af4 /gtk/gtkfilesystemmodel.c | |
parent | 4c3151de5cd742f89635dc3204b01b7e0944d87d (diff) | |
download | gtk+-329bc4e22109bbf7633d22ff2a50e4f10628a783.tar.gz |
Start a set of automated tests for the file chooser. The only test in
2005-09-15 Federico Mena Quintero <federico@ximian.com>
* tests/autotestfilechooser.c: Start a set of automated tests for
the file chooser. The only test in there right now doesn't pass
yet. It specifies the intended behavior of the first optimization
of a series which I'll do on the file chooser (see
http://primates.ximian.com/~federico/news-2005-09.html#14 for the
details of this optimization).
* tests/Makefile.am: Added autotestfilechooser.c.
* gtk/gtkfilechooserprivate.h (struct
_GtkFileChooserDialogPrivate): Move all the file chooser's private
structures to here, so that they can be accessed by
tests/autotestfilechooser.c: _GtkFileChooserDialogPrivate,
_GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault.
* gtk/gtkfilechooserdialog.c: See above.
* gtk/gtkfilechooserwidget.c: See above.
* gtk/gtkfilechooserdefault.c: See above.
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 9c2dd30607..b2ad218ea9 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -21,6 +21,7 @@ #include <config.h> #include <string.h> +#include "gtkfilechooserprivate.h" #include "gtkfilesystemmodel.h" #include "gtkfilesystem.h" #include "gtkintl.h" @@ -30,7 +31,6 @@ #include "gtkalias.h" typedef struct _GtkFileSystemModelClass GtkFileSystemModelClass; -typedef struct _FileModelNode FileModelNode; #define GTK_FILE_SYSTEM_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_SYSTEM_MODEL, GtkFileSystemModelClass)) #define GTK_IS_FILE_SYSTEM_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_SYSTEM_MODEL)) @@ -45,55 +45,6 @@ struct _GtkFileSystemModelClass void (*finished_loading) (GtkFileSystemModel *model); }; -struct _GtkFileSystemModel -{ - GObject parent_instance; - - GtkFileSystem *file_system; - GtkFileInfoType types; - FileModelNode *roots; - GtkFileFolder *root_folder; - GtkFilePath *root_path; - - GtkFileSystemModelFilter filter_func; - gpointer filter_data; - - GSList *idle_clears; - GSource *idle_clear_source; - GSource *idle_finished_loading_source; - - gushort max_depth; - - guint show_hidden : 1; - guint show_folders : 1; - guint show_files : 1; - guint folders_only : 1; - guint has_editable : 1; -}; - -struct _FileModelNode -{ - GtkFilePath *path; - FileModelNode *next; - - GtkFileInfo *info; - GtkFileFolder *folder; - - FileModelNode *children; - FileModelNode *parent; - GtkFileSystemModel *model; - - guint ref_count; - guint n_referenced_children; - - gushort depth; - - guint has_dummy : 1; - guint is_dummy : 1; - guint is_visible : 1; - guint loaded : 1; - guint idle_clear : 1; -}; static void gtk_file_system_model_class_init (GtkFileSystemModelClass *class); static void gtk_file_system_model_iface_init (GtkTreeModelIface *iface); |