gtk+ r19802 - trunk/gtk
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19802 - trunk/gtk
- Date: Thu, 13 Mar 2008 00:27:46 +0000 (GMT)
Author: federico
Date: Thu Mar 13 00:27:46 2008
New Revision: 19802
URL: http://svn.gnome.org/viewvc/gtk+?rev=19802&view=rev
Log:
Skip the cursor past the autocompleted part when requesting explicit completion
Signed-off-by: Federico Mena Quintero <federico gnu org>
Modified:
trunk/gtk/gtkfilechooserentry.c
Modified: trunk/gtk/gtkfilechooserentry.c
==============================================================================
--- trunk/gtk/gtkfilechooserentry.c (original)
+++ trunk/gtk/gtkfilechooserentry.c Thu Mar 13 00:27:46 2008
@@ -785,7 +785,14 @@
{
gint pos = 0;
- if (!chooser_entry->has_completion)
+ if (chooser_entry->has_completion)
+ {
+ gint sel_end;
+
+ if (gtk_editable_get_selection_bounds (editable, NULL, &sel_end))
+ gtk_editable_set_position (editable, sel_end);
+ }
+ else
append_common_prefix (chooser_entry, FALSE);
/* Trigger the completion window to pop up again by a
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]