diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-02 16:12:22 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-04 00:29:26 -0400 |
commit | 9a444673186c2d9be1f2c97d85d6f658c2338417 (patch) | |
tree | de63d47942794a5adf219d29c349e180f5da0ece /gtk/gtkfilesystemmodel.c | |
parent | 5763199e43253f99d9859a46d23136879c773b8e (diff) | |
download | gtk+-9a444673186c2d9be1f2c97d85d6f658c2338417.tar.gz |
Add a getter for the directory to file system model
This will allow us to aovid reloading if the directory is
unchanged.
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 3f7e7b1d24..1485fc2405 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -2182,3 +2182,12 @@ _gtk_file_system_model_add_and_query_files (GtkFileSystemModel *model, model); } } + +GFile * +_gtk_file_system_model_get_directory (GtkFileSystemModel *model) +{ + g_return_if_fail (GTK_IS_FILE_SYSTEM_MODEL (model)); + + return model->dir; +} + |