gimp r26465 - in branches/soc-2008-tagging: . app/widgets
- From: aurisj svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26465 - in branches/soc-2008-tagging: . app/widgets
- Date: Sat, 9 Aug 2008 15:00:32 +0000 (UTC)
Author: aurisj
Date: Sat Aug 9 15:00:32 2008
New Revision: 26465
URL: http://svn.gnome.org/viewvc/gimp?rev=26465&view=rev
Log:
2008-08-09 Aurimas JuÅka <aurisj svn gnome org>
* app/widgets/gimptagentry.c (gimp_tag_entry_select_jellybean): try to
select closest tag on delete only when there is no selection already.
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 Sat Aug 9 15:00:32 2008
@@ -1406,7 +1406,8 @@
case TAG_SEARCH_LEFT:
{
- if ((tag_entry->mask->str[selection_start] == 'w'
+ if (selection_start == selection_end
+ && (tag_entry->mask->str[selection_start] == 'w'
|| tag_entry->mask->str[selection_start] == 's')
&& selection_start > 0)
{
@@ -1423,8 +1424,9 @@
case TAG_SEARCH_RIGHT:
{
- if ((tag_entry->mask->str[selection_start] == 'w'
- || tag_entry->mask->str[selection_start] == 's')
+ if (selection_start == selection_end
+ && (tag_entry->mask->str[selection_start] == 'w'
+ || tag_entry->mask->str[selection_start] == 's')
&& selection_start < tag_entry->mask->len - 1)
{
while ((tag_entry->mask->str[selection_start] == 'w'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]