mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 20:41:43 +00:00
don't cause tag query after focus-out. Fixes annoying bug.
* app/widgets/gimptagentry.c (gimp_tag_entry_commit_tags), (gimp_tag_entry_strip_extra_whitespace): don't cause tag query after focus-out. Fixes annoying bug. svn path=/trunk/; revision=28043
This commit is contained in:
parent
d2d002dc37
commit
cf3e18312e
|
@ -1,3 +1,9 @@
|
|||
2009-02-16 Aurimas Juška <aurisj@svn.gnome.org>
|
||||
|
||||
* app/widgets/gimptagentry.c (gimp_tag_entry_commit_tags),
|
||||
(gimp_tag_entry_strip_extra_whitespace): don't cause tag query
|
||||
after focus-out. Fixes annoying bug.
|
||||
|
||||
2009-02-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
Bug 99457 – Support for dynamics on tilt
|
||||
|
|
|
@ -1850,9 +1850,11 @@ gimp_tag_entry_commit_tags (GimpTagEntry *entry)
|
|||
|
||||
entry->internal_operation++;
|
||||
entry->suppress_mask_update++;
|
||||
entry->suppress_tag_query++;
|
||||
gtk_editable_delete_text (GTK_EDITABLE (entry), region_start, region_end);
|
||||
position = region_start;
|
||||
gtk_editable_insert_text (GTK_EDITABLE (entry), tags->str, tags->len, &position);
|
||||
entry->suppress_tag_query--;
|
||||
entry->suppress_mask_update--;
|
||||
entry->internal_operation--;
|
||||
|
||||
|
@ -2040,6 +2042,9 @@ gimp_tag_entry_strip_extra_whitespace (GimpTagEntry *entry)
|
|||
|
||||
position = gtk_editable_get_position (GTK_EDITABLE (entry));
|
||||
|
||||
entry->internal_operation++;
|
||||
entry->suppress_tag_query++;
|
||||
|
||||
/* strip whitespace in front */
|
||||
while (entry->mask->len > 0
|
||||
&& entry->mask->str[0] == 'w')
|
||||
|
@ -2086,6 +2091,9 @@ gimp_tag_entry_strip_extra_whitespace (GimpTagEntry *entry)
|
|||
|
||||
gtk_editable_set_position (GTK_EDITABLE (entry), position);
|
||||
|
||||
entry->suppress_tag_query--;
|
||||
entry->internal_operation--;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue