Details
struct GnomeFileEntryPrivate
struct GnomeFileEntryPrivate; |
gnome_file_entry_new ()
GtkWidget* gnome_file_entry_new (const char *history_id,
const char *browse_dialog_title); |
Creates a new GnomeFileEntry widget.
gnome_file_entry_construct ()
void gnome_file_entry_construct (GnomeFileEntry *fentry,
const char *history_id,
const char *browse_dialog_title); |
Constructs a GnomeFileEntry
gnome_file_entry_gnome_entry ()
It returns a pointer to the gnome entry widget of the
widget (seeGnomeEntry).
gnome_file_entry_set_title ()
void gnome_file_entry_set_title (GnomeFileEntry *fentry,
const char *browse_dialog_title); |
Set the title of the browse dialog to browse_dialog_title.
The new title will go into effect the next time the browse button is pressed.
gnome_file_entry_set_default_path ()
void gnome_file_entry_set_default_path
(GnomeFileEntry *fentry,
const char *path); |
Set the default path of browse dialog to path. The
default path is only used if the entry is empty or if the current path
of the entry is not an absolute path, in which case the default
path is prepended to it before the dialog is started.
gnome_file_entry_set_directory_entry ()
void gnome_file_entry_set_directory_entry
(GnomeFileEntry *fentry,
gboolean directory_entry); |
Sets whether this is a directory only entry. If
directory_entry is true, then gnome_file_entry_get_full_path will
check for the file being a directory, and the browse dialog will have
the file list disabled.
gnome_file_entry_get_full_path ()
char* gnome_file_entry_get_full_path (GnomeFileEntry *fentry,
gboolean file_must_exist); |
Gets the full absolute path of the file from the entry.
If file_must_exist is false, nothing is tested and the path is returned.
If file_must_exist is true, then the path is only returned if the path
actually exists. In case the entry is a directory entry (see
gnome_file_entry_set_directory_entry), then if the path exists and is a
directory then it's returned; if not, it is assumed it was a file so
we try to strip it, and try again. It allocates memory for the returned string.
gnome_file_entry_set_filename ()
void gnome_file_entry_set_filename (GnomeFileEntry *fentry,
const char *filename); |
Sets the internal entry to this string.
gnome_file_entry_set_modal ()
void gnome_file_entry_set_modal (GnomeFileEntry *fentry,
gboolean is_modal); |
Sets the modality of the browse dialog.
gnome_file_entry_get_modal ()
This function gets the boolean which specifies if
the browsing dialog is modal or not