Top |
Completes partial file and directory names given a partial string by looking in the file system for clues. Can return a list of possible completion strings for widget implementations.
GFilenameCompleter *
g_filename_completer_new (void
);
Creates a new filename completer.
char * g_filename_completer_get_completion_suffix (GFilenameCompleter *completer
,const char *initial_text
);
Obtains a completion for initial_text
from completer
.
char ** g_filename_completer_get_completions (GFilenameCompleter *completer
,const char *initial_text
);
Gets an array of completion strings for a given initial text.
array of strings with possible completions for initial_text
.
This array must be freed by g_strfreev()
when finished.
[array zero-terminated=1][transfer full]
void g_filename_completer_set_dirs_only (GFilenameCompleter *completer
,gboolean dirs_only
);
If dirs_only
is TRUE
, completer
will only
complete directory names, and not file names.
“got-completion-data”
signalvoid user_function (GFilenameCompleter *arg0, gpointer user_data)
Emitted when the file name completion information comes available.
Flags: Run Last