forked from AuroraMiddleware/gtk
If explicitly completing and we have a completion, just unselect it
Signed-off-by: Federico Mena Quintero <federico@gnu.org> svn path=/trunk/; revision=19848
This commit is contained in:
parent
bcb36780ed
commit
857c561ffe
@ -1062,15 +1062,9 @@ gtk_file_chooser_entry_focus (GtkWidget *widget,
|
||||
{
|
||||
if (chooser_entry->has_completion)
|
||||
{
|
||||
gboolean has_selection;
|
||||
gint sel_end;
|
||||
|
||||
printf ("Hit Tab, and we have a completion! Will unselect it\n");
|
||||
|
||||
has_selection = gtk_editable_get_selection_bounds (editable, NULL, &sel_end);
|
||||
g_assert (has_selection && sel_end == GTK_ENTRY (entry)->text_length);
|
||||
|
||||
gtk_editable_set_position (editable, sel_end);
|
||||
gtk_editable_set_position (editable, entry->text_length);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user