diff options
author | Carlos Garnacho <carlos@imendio.com> | 2008-08-04 14:43:05 +0000 |
---|---|---|
committer | Carlos Garnacho <carlosg@src.gnome.org> | 2008-08-04 14:43:05 +0000 |
commit | 02c65db5c09de3ff82529cf94d2b7351aa93e446 (patch) | |
tree | 2035350e28e2ebd77a558214f9e2d0f89b76ee90 /gtk/gtkfilechooser.h | |
parent | aa435e024aa7c766252f659f2cba8753d1e09e80 (diff) | |
download | gtk+-02c65db5c09de3ff82529cf94d2b7351aa93e446.tar.gz |
Make GFile-oriented API public. Fixes #545978.
2008-08-04 Carlos Garnacho <carlos@imendio.com>
* gtk/gtk.symbols:
* gtk/gtkfilechooser.[ch]: Make GFile-oriented API public. Fixes
#545978.
* gtk/gtkfilechooserbutton.c:
* gtk/gtkfilechooserdefault.c:
* gtk/gtkfilechooserutils.c: Update to use public GFile API.
svn path=/trunk/; revision=20971
Diffstat (limited to 'gtk/gtkfilechooser.h')
-rw-r--r-- | gtk/gtkfilechooser.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/gtk/gtkfilechooser.h b/gtk/gtkfilechooser.h index 0e08c7da67..e085a7992d 100644 --- a/gtk/gtkfilechooser.h +++ b/gtk/gtkfilechooser.h @@ -135,6 +135,22 @@ gboolean gtk_file_chooser_set_current_folder_uri (GtkFileChooser *chooser, const gchar *uri); gchar * gtk_file_chooser_get_current_folder_uri (GtkFileChooser *chooser); +/* GFile manipulation */ +GFile * gtk_file_chooser_get_file (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_file (GtkFileChooser *chooser, + GFile *file, + GError **error); +gboolean gtk_file_chooser_select_file (GtkFileChooser *chooser, + GFile *file, + GError **error); +void gtk_file_chooser_unselect_file (GtkFileChooser *chooser, + GFile *file); +GSList * gtk_file_chooser_get_files (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_current_folder_file (GtkFileChooser *chooser, + GFile *file, + GError **error); +GFile * gtk_file_chooser_get_current_folder_file (GtkFileChooser *chooser); + /* Preview widget */ void gtk_file_chooser_set_preview_widget (GtkFileChooser *chooser, @@ -147,8 +163,9 @@ void gtk_file_chooser_set_use_preview_label (GtkFileChooser *chooser, gboolean use_label); gboolean gtk_file_chooser_get_use_preview_label (GtkFileChooser *chooser); -char *gtk_file_chooser_get_preview_filename (GtkFileChooser *chooser); -char *gtk_file_chooser_get_preview_uri (GtkFileChooser *chooser); +char *gtk_file_chooser_get_preview_filename (GtkFileChooser *chooser); +char *gtk_file_chooser_get_preview_uri (GtkFileChooser *chooser); +GFile *gtk_file_chooser_get_preview_file (GtkFileChooser *chooser); /* Extra widget */ |