gimp r26349 - in branches/soc-2008-tagging: . app/widgets
- From: aurisj svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26349 - in branches/soc-2008-tagging: . app/widgets
- Date: Fri, 1 Aug 2008 20:05:17 +0000 (UTC)
Author: aurisj
Date: Fri Aug 1 20:05:17 2008
New Revision: 26349
URL: http://svn.gnome.org/viewvc/gimp?rev=26349&view=rev
Log:
2008-08-01 Aurimas JuÅka <aurisj svn gnome org>
* app/widgets/gimptagentry.c (gimp_tag_entry_focus_in),
(gimp_tag_entry_key_press): fixed usage of tab key.
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 Fri Aug 1 20:05:17 2008
@@ -727,8 +727,6 @@
GdkEventFocus *event,
gpointer user_data)
{
- GimpTagEntry *tag_entry = GIMP_TAG_ENTRY (widget);
-
gimp_tag_entry_toggle_desc (GIMP_TAG_ENTRY (widget), FALSE);
return FALSE;
@@ -930,6 +928,27 @@
switch (event->keyval)
{
case GDK_Tab:
+ {
+ gint selection_start;
+ gint selection_end;
+
+ if (! tag_entry->internal_change)
+ {
+ g_idle_add ((GSourceFunc)gimp_tag_entry_auto_complete,
+ tag_entry);
+ }
+ gtk_editable_get_selection_bounds (GTK_EDITABLE (tag_entry),
+ &selection_start, &selection_end);
+ if (selection_start != selection_end)
+ {
+ gtk_editable_select_region (GTK_EDITABLE (tag_entry),
+ selection_end, selection_end);
+ }
+
+ tag_entry->tags_accepted = TRUE;
+ }
+ return TRUE;
+
case GDK_Return:
case GDK_Escape:
case GDK_comma:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]