| Top |
| #define | GNT_FILE_SEL_FLAGS() |
| #define | GNT_FILE_SEL_SET_FLAGS() |
| #define | GNT_FILE_SEL_UNSET_FLAGS() |
| GType | gnt_file_sel_get_gtype () |
| GntWidget * | gnt_file_sel_new () |
| gboolean | gnt_file_sel_set_current_location () |
| void | gnt_file_sel_set_dirs_only () |
| gboolean | gnt_file_sel_get_dirs_only () |
| void | gnt_file_sel_set_must_exist () |
| gboolean | gnt_file_sel_get_must_exist () |
| char * | gnt_file_sel_get_selected_file () |
| GList * | gnt_file_sel_get_selected_multi_files () |
| void | gnt_file_sel_set_multi_select () |
| void | gnt_file_sel_set_suggested_filename () |
| void | gnt_file_sel_set_read_fn () |
| GntFile * | gnt_file_new () |
| GntFile * | gnt_file_new_dir () |
#define GNT_FILE_SEL_FLAGS(obj) (GNT_FILE_SEL(obj)->priv.flags)
GNT_FILE_SEL_FLAGS has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_FILE_SEL_SET_FLAGS(obj, flags) (GNT_FILE_SEL_FLAGS(obj) |= flags)
GNT_FILE_SEL_SET_FLAGS has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
#define GNT_FILE_SEL_UNSET_FLAGS(obj, flags) (GNT_FILE_SEL_FLAGS(obj) &= ~(flags))
GNT_FILE_SEL_UNSET_FLAGS has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
gboolean gnt_file_sel_set_current_location (GntFileSel *sel,const char *path);
Set the current location of the file selector.
void gnt_file_sel_set_dirs_only (GntFileSel *sel,gboolean dirs);
Set wheter to only allow selecting directories.
gboolean
gnt_file_sel_get_dirs_only (GntFileSel *sel);
Check whether the file selector allows only selecting directories.
void gnt_file_sel_set_must_exist (GntFileSel *sel,gboolean must);
Set whether a selected file must exist.
gboolean
gnt_file_sel_get_must_exist (GntFileSel *sel);
Check whether the selector allows selecting non-existent files.
char *
gnt_file_sel_get_selected_file (GntFileSel *sel);
Get the selected file in the selector.
GList *
gnt_file_sel_get_selected_multi_files (GntFileSel *sel);
Get the list of selected files in the selector.
A list of paths for the
selected files. The caller must g_free() the contents of the list,
and g_list_free() the list.
[transfer full][element-type filename]
void gnt_file_sel_set_multi_select (GntFileSel *sel,gboolean set);
Allow selecting multiple files.
void gnt_file_sel_set_suggested_filename (GntFileSel *sel,const char *suggest);
Set the suggested file to have selected at startup.
void gnt_file_sel_set_read_fn (GntFileSel *sel,gboolean (*read_fn) (const char *path, GList **files, GError **error));
gnt_file_sel_set_read_fn has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
Set custom functions to read the names of files.
GntFile * gnt_file_new (const char *name,unsigned long size);
gnt_file_new has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
Create a new GntFile.
GntFile *
gnt_file_new_dir (const char *name);
gnt_file_new_dir has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail.
Create a new GntFile for a directory.
struct GntFileSel {
GntWindow parent;
GntWidget *GNTSEAL(dirs); /* list of files */
GntWidget *GNTSEAL(files); /* list of directories */
GntWidget *GNTSEAL(location); /* location entry */
GntWidget *GNTSEAL(select); /* select button */
GntWidget *GNTSEAL(cancel); /* cancel button */
char *GNTSEAL(current); /* Full path of the current location */
char *GNTSEAL(suggest); /* Suggested filename */
/* XXX: someone should make these useful */
gboolean GNTSEAL(must_exist); /* Make sure the selected file (the name entered in 'location') exists */
gboolean GNTSEAL(dirsonly); /* Show only directories */
gboolean GNTSEAL(multiselect);
GList *GNTSEAL(tags); /* List of tagged files when multiselect is set */
gboolean (*GNTSEAL(read_fn))(const char *path, GList **files, GError **error);
};
Access to any fields is deprecated. See inline comments for replacements.
GntFileType has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail. Use GFile from GIO for a similar abstraction.
struct GntFile {
char *GNTSEAL(fullpath);
char *GNTSEAL(basename);
GntFileType GNTSEAL(type);
unsigned long GNTSEAL(size);
};
GntFile has been deprecated since version 2.14.0 and should not be used in newly-written code.
This is an internal implementation detail. Use GFile from GIO for a similar abstraction.