Commit 016fba99 authored by Javier Jardón's avatar Javier Jardón

Move documentation to inline comments: GtkFileChooser

Also, use Gtk-Doc markup to improve documentation
parent 3921834b
This diff is collapsed.
This diff is collapsed.
......@@ -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
......@@ -44,6 +61,23 @@ typedef enum
} GtkFileChooserAction;
* GtkFileChooserConfirmation:
* @GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM: The file chooser will present
* its stock dialog to confirm about overwriting an existing file.
* terminate and accept the user's choice of a file name.
* 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
......@@ -54,9 +88,24 @@ typedef enum
GType gtk_file_chooser_get_type (void) G_GNUC_CONST;
/* GError enumeration for GtkFileChooser */
* 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).
* These identify the various errors that can occur while calling
* #GtkFileChooser functions.
typedef enum {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment