Class: Gio::FilenameCompleter

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#dirs_only=(dirs_only) ⇒ nil

If dirs_only is true, completer will only complete directory names, and not file names.

Parameters:

  • dirs_only (TrueClass)

    a #gboolean.

Returns:

  • (nil)

#get_completion_suffix(initial_text) ⇒ String

Obtains a completion for initial_text from completer.

Parameters:

  • initial_text (String)

    text to be completed.

Returns:

  • (String)

    a completed string, or nil if no completion exists. This string is not owned by GIO, so remember to g_free() it when finished.

#get_completions(initial_text) ⇒ Array<String>

Gets an array of completion strings for a given initial text. This array must be freed by g_strfreev() when finished.

Parameters:

  • initial_text (String)

    text to be completed.

Returns:

  • (Array<String>)

    array of strings with possible completions for initial_text.

#newGio::FilenameCompleter

Creates a new filename completer.

Returns: