diff options
author | Javier Jardón <jjardon@gnome.org> | 2009-12-21 06:05:51 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-12-21 06:31:37 +0100 |
commit | 016fba99e78107765e51cd5c295757e197b599f3 (patch) | |
tree | c38588cd55838aef890f881865a8973a98094b23 /gtk/gtkfilechooser.h | |
parent | 3921834b96281732bca7618325e747a7bfd8d80f (diff) | |
download | gtk+-016fba99e78107765e51cd5c295757e197b599f3.tar.gz |
Move documentation to inline comments: GtkFileChooser
Also, use Gtk-Doc markup to improve documentation
cross-references.
https://bugzilla.gnome.org/show_bug.cgi?id=597865
Diffstat (limited to 'gtk/gtkfilechooser.h')
-rw-r--r-- | gtk/gtkfilechooser.h | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/gtk/gtkfilechooser.h b/gtk/gtkfilechooser.h index 0772690bd2..21ba7ee5f7 100644 --- a/gtk/gtkfilechooser.h +++ b/gtk/gtkfilechooser.h @@ -36,6 +36,23 @@ G_BEGIN_DECLS typedef struct _GtkFileChooser GtkFileChooser; +/** + * GtkFileChooserAction: + * @GTK_FILE_CHOOSER_ACTION_OPEN: Indicates open mode. The file chooser + * will only let the user pick an existing file. + * @GTK_FILE_CHOOSER_ACTION_SAVE: Indicates save mode. The file chooser + * will let the user pick an existing file, or type in a new + * filename. + * @GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER: Indicates an Open mode for + * selecting folders. The file chooser will let the user pick an + * existing folder. + * @GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER: Indicates a mode for creating a + * new folder. The file chooser will let the user name an existing or + * new folder. + * + * Describes whether a #GtkFileChooser is being used to open existing files + * or to save to a possibly new file. + */ typedef enum { GTK_FILE_CHOOSER_ACTION_OPEN, @@ -44,6 +61,23 @@ typedef enum GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER } GtkFileChooserAction; +/** + * GtkFileChooserConfirmation: + * @GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM: The file chooser will present + * its stock dialog to confirm about overwriting an existing file. + * @GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME: The file chooser will + * terminate and accept the user's choice of a file name. + * @GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN: The file chooser will + * continue running, so as to let the user select another file name. + * + * Used as a return value of handlers for the + * #GtkFileChooser::confirm-overwrite signal of a #GtkFileChooser. This + * value determines whether the file chooser will present the stock + * confirmation dialog, accept the user's choice of a filename, or + * let the user choose another filename. + * + * Since: 2.8 + */ typedef enum { GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM, @@ -54,9 +88,24 @@ typedef enum GType gtk_file_chooser_get_type (void) G_GNUC_CONST; /* GError enumeration for GtkFileChooser */ - +/** + * GTK_FILE_CHOOSER_ERROR: + * + * Used to get the #GError quark for #GtkFileChooser errors. + */ #define GTK_FILE_CHOOSER_ERROR (gtk_file_chooser_error_quark ()) +/** + * GtkFileChooserError: + * @GTK_FILE_CHOOSER_ERROR_NONEXISTENT: Indicates that a file does not exist. + * @GTK_FILE_CHOOSER_ERROR_BAD_FILENAME: Indicates a malformed filename. + * @GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS: Indicates a duplicate path (e.g. when + * adding a bookmark). + * @GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME: + * + * These identify the various errors that can occur while calling + * #GtkFileChooser functions. + */ typedef enum { GTK_FILE_CHOOSER_ERROR_NONEXISTENT, GTK_FILE_CHOOSER_ERROR_BAD_FILENAME, |