2006-09-07 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 7 Sep 2006 10:18:34 +0000 (10:18 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 7 Sep 2006 10:18:34 +0000 (10:18 +0000)
* hildon-widgets/hildon-find-toolbar.c: Move focus to the parent
widget when the toolbar is closed. Fixes #NB34193.

ChangeLog
hildon-widgets/hildon-find-toolbar.c

index ac3ac31..987b0c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-09-07  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
+       * hildon-widgets/hildon-find-toolbar.c: Move focus to the parent
+       widget when the toolbar is closed. Fixes #NB34193.
+
+2006-09-07  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
+
        * hildon-widgets/hildon-defines.c: Fixing the recursive call in
        _set_recursive_from_ld. The container for_each call was missing a
        parameter and effectively passing NULL as data. So amateurish. Fixes
index e02d5f6..a1cd8ca 100644 (file)
@@ -373,6 +373,8 @@ hildon_find_toolbar_emit_search(GtkButton *button, gpointer self)
 static void
 hildon_find_toolbar_emit_close(GtkButton *button, gpointer self)
 {
+  GtkWidget *parent = gtk_widget_get_parent (GTK_WIDGET (self));
+  gtk_widget_grab_focus (parent);
   /* Clicked close button */
   g_signal_emit_by_name(self, "close", NULL);
 }