gimp r26481 - in branches/soc-2008-tagging: . app/widgets
- From: aurisj svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26481 - in branches/soc-2008-tagging: . app/widgets
- Date: Sun, 10 Aug 2008 11:27:18 +0000 (UTC)
Author: aurisj
Date: Sun Aug 10 11:27:18 2008
New Revision: 26481
URL: http://svn.gnome.org/viewvc/gimp?rev=26481&view=rev
Log:
2008-08-10 Aurimas JuÅka <aurisj svn gnome org>
* app/widgets/gimptagentry.c
(gimp_tag_entry_strip_extra_whitespace): reposition cursor after a
whitespace when there are no tags before (last position).
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 Aug 10 11:27:18 2008
@@ -2026,6 +2026,14 @@
}
}
+ /* special case when cursor is in the last position:
+ * it must be positioned after the last whitespace. */
+ if (position == tag_entry->mask->len - 1
+ && tag_entry->mask->str[position] == 'w')
+ {
+ position++;
+ }
+
gtk_editable_set_position (GTK_EDITABLE (tag_entry), position);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]