Do not focus on clicking the HildonPickerDialog button
authorClaudio Saavedra <csaavedra@igalia.com>
Wed, 27 May 2009 14:59:21 +0000 (17:59 +0300)
committerClaudio Saavedra <csaavedra@igalia.com>
Wed, 27 May 2009 14:59:21 +0000 (17:59 +0300)
* hildon/hildon-picker-dialog.c (hildon_picker_dialog_init): Unset
"focus-on-click" from the dialog button, to avoid stealing the
focus from the entry.

Fixes: NB#118903 (Account setup wizard: Text in Search field
should be focused when "Region" touch list picker is reopened
again)

ChangeLog
hildon/hildon-picker-dialog.c

index eb30be1..50724d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2009-05-27  Claudio Saavedra  <csaavedra@igalia.com>
 
+       * hildon/hildon-picker-dialog.c (hildon_picker_dialog_init): Unset
+       "focus-on-click" from the dialog button, to avoid stealing the
+       focus from the entry.
+
+       Fixes: NB#118903 (Account setup wizard: Text in Search field
+       should be focused when "Region" touch list picker is reopened
+       again)
+
+2009-05-27  Claudio Saavedra  <csaavedra@igalia.com>
+
        * hildon/hildon-picker-dialog.c (hildon_picker_dialog_init),
        (prepare_action_area): Completely hide the dialog separator.
 
index 5f3d591..4402bd2 100644 (file)
@@ -239,6 +239,7 @@ hildon_picker_dialog_init (HildonPickerDialog * dialog)
   dialog->priv->button =
     gtk_dialog_add_button (GTK_DIALOG (dialog), "", GTK_RESPONSE_OK);
   gtk_widget_grab_default (dialog->priv->button);
+  gtk_button_set_focus_on_click (GTK_BUTTON (dialog->priv->button), FALSE);
   gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
 
   dialog->priv->signal_changed_id = 0;