[maemo-commits] [maemo-commits] r13771 - in projects/haf/trunk/hildon-input-method-framework: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Sep 12 12:58:48 EEST 2007
- Previous message: [maemo-commits] r13770 - in projects/haf/trunk/hildon-theme-layout-4: . data
- Next message: [maemo-commits] r13772 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: tjunnone
Date: 2007-09-12 12:58:46 +0300 (Wed, 12 Sep 2007)
New Revision: 13771
Modified:
projects/haf/trunk/hildon-input-method-framework/ChangeLog
projects/haf/trunk/hildon-input-method-framework/src/hildon-im-gtk.c
Log:
* src/hildon-im-gtk.c: Only consider mapped and visible widgets
as potential focus targets. Fixes NB#69237.
Modified: projects/haf/trunk/hildon-input-method-framework/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-input-method-framework/ChangeLog 2007-09-12 08:30:03 UTC (rev 13770)
+++ projects/haf/trunk/hildon-input-method-framework/ChangeLog 2007-09-12 09:58:46 UTC (rev 13771)
@@ -1,3 +1,8 @@
+2007-09-12 Tomas Junnonen <tomas.junnonen at nokia.com>
+
+ * src/hildon-im-gtk.c: Only consider mapped and visible widgets
+ as potential focus targets. Fixes NB#69237.
+
2007-09-10 Tomas Junnonen <tomas.junnonen at nokia.com>
* Version 1:1.99.20-1
Modified: projects/haf/trunk/hildon-input-method-framework/src/hildon-im-gtk.c
===================================================================
--- projects/haf/trunk/hildon-input-method-framework/src/hildon-im-gtk.c 2007-09-12 08:30:03 UTC (rev 13770)
+++ projects/haf/trunk/hildon-input-method-framework/src/hildon-im-gtk.c 2007-09-12 09:58:46 UTC (rev 13771)
@@ -109,8 +109,17 @@
}
else
{
- children = container_get_all_children(container);
- children = container_focus_sort(container, children, direction);
+ GList *all_children, *visible_children = NULL;
+
+ child = all_children = container_get_all_children(container);
+ while (child)
+ {
+ if (GTK_WIDGET_DRAWABLE (child->data))
+ visible_children = g_list_prepend(visible_children, child->data);
+ child = child->next;
+ }
+ children = container_focus_sort(container, visible_children, direction);
+ g_list_free(all_children);
}
if (old_focus_widget)
- Previous message: [maemo-commits] r13770 - in projects/haf/trunk/hildon-theme-layout-4: . data
- Next message: [maemo-commits] r13772 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
