forked from AuroraMiddleware/gtk
Pop up the completions again after tab. (#147700, Jens Bech Madsen)
2004-10-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up the completions again after tab. (#147700, Jens Bech Madsen)
This commit is contained in:
parent
68b72ab7f8
commit
5fde6ffa0b
@ -1,5 +1,8 @@
|
||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
||||
the completions again after tab. (#147700, Jens Bech Madsen)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
|
||||
before changing the selection to make the file chooser preview
|
||||
update work better. (#143826, Tommi Komulainen)
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
||||
the completions again after tab. (#147700, Jens Bech Madsen)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
|
||||
before changing the selection to make the file chooser preview
|
||||
update work better. (#143826, Tommi Komulainen)
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
||||
the completions again after tab. (#147700, Jens Bech Madsen)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
|
||||
before changing the selection to make the file chooser preview
|
||||
update work better. (#143826, Tommi Komulainen)
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
||||
the completions again after tab. (#147700, Jens Bech Madsen)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
|
||||
before changing the selection to make the file chooser preview
|
||||
update work better. (#143826, Tommi Komulainen)
|
||||
|
@ -665,11 +665,16 @@ gtk_file_chooser_entry_focus (GtkWidget *widget,
|
||||
(GTK_WIDGET_HAS_FOCUS (widget)) &&
|
||||
(! control_pressed))
|
||||
{
|
||||
gint pos = 0;
|
||||
|
||||
if (chooser_entry->has_completion)
|
||||
{
|
||||
gtk_editable_set_position (GTK_EDITABLE (widget),
|
||||
GTK_ENTRY (widget)->text_length);
|
||||
}
|
||||
gtk_editable_set_position (GTK_EDITABLE (widget),
|
||||
GTK_ENTRY (widget)->text_length);
|
||||
/* Trigger the completion window to pop up again by a
|
||||
* zero-length insertion, a bit of a hack.
|
||||
*/
|
||||
gtk_editable_insert_text (GTK_EDITABLE (widget), "", -1, &pos);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user