mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Update comments on explicit completion
Signed-off-by: Federico Mena Quintero <federico@gnu.org> svn path=/trunk/; revision=19835
This commit is contained in:
parent
47ddc0c86f
commit
806cca3c9c
@ -528,10 +528,11 @@ find_common_prefix (GtkFileChooserEntry *chooser_entry,
|
|||||||
}
|
}
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
PREFIX_APPENDED,
|
|
||||||
UNIQUE_PREFIX_APPENDED,
|
|
||||||
INVALID_INPUT,
|
INVALID_INPUT,
|
||||||
NO_COMMON_PREFIX
|
NO_MATCH,
|
||||||
|
COMPLETED,
|
||||||
|
COMPLETED_UNIQUE,
|
||||||
|
COMPLETE_BUT_NOT_UNIQUE
|
||||||
} CommonPrefixResult;
|
} CommonPrefixResult;
|
||||||
|
|
||||||
/* Finds a common prefix based on the contents of the entry and mandatorily appends it */
|
/* Finds a common prefix based on the contents of the entry and mandatorily appends it */
|
||||||
@ -578,6 +579,13 @@ append_common_prefix (GtkFileChooserEntry *chooser_entry,
|
|||||||
|
|
||||||
have_result = TRUE;
|
have_result = TRUE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* FIXME: if there was no unique_path, but there was a common_prefix,
|
||||||
|
* then we *may* have "complete but not unique". find_common_prefix()
|
||||||
|
* needs to say if the match was a complete entry, or a partial one.
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
printf ("common prefix: \"%s\"\n",
|
printf ("common prefix: \"%s\"\n",
|
||||||
common_prefix ? common_prefix : "<NONE>");
|
common_prefix ? common_prefix : "<NONE>");
|
||||||
|
Loading…
Reference in New Issue
Block a user