gimp r26172 - in branches/soc-2008-tagging: . app/widgets
- From: aurisj svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26172 - in branches/soc-2008-tagging: . app/widgets
- Date: Sun, 13 Jul 2008 09:41:42 +0000 (UTC)
Author: aurisj
Date: Sun Jul 13 09:41:42 2008
New Revision: 26172
URL: http://svn.gnome.org/viewvc/gimp?rev=26172&view=rev
Log:
2008-07-13 Aurimas JuÅka <aurisj svn gnome org>
* app/widgets/gimptagentry.c (gimp_tag_entry_auto_complete):
autocomplete only user typed text, not what was autocompleted in
previous step.
Modified:
branches/soc-2008-tagging/ChangeLog
branches/soc-2008-tagging/app/widgets/gimptagentry.c
Modified: branches/soc-2008-tagging/app/widgets/gimptagentry.c
==============================================================================
--- branches/soc-2008-tagging/app/widgets/gimptagentry.c (original)
+++ branches/soc-2008-tagging/app/widgets/gimptagentry.c Sun Jul 13 09:41:42 2008
@@ -200,6 +200,14 @@
entry = GTK_ENTRY (tag_entry);
+ gtk_editable_get_selection_bounds (GTK_EDITABLE (tag_entry), &start_position, &end_position);
+ if (start_position != end_position)
+ {
+ /* only autocomplete what user types,
+ * not was autocompleted in the previous step. */
+ return FALSE;
+ }
+
completion_prefix =
gimp_tag_entry_get_completion_prefix (GIMP_TAG_ENTRY (entry));
tags = gimp_tag_entry_parse_tags (GIMP_TAG_ENTRY (entry));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]