[gnome-control-center] language-chooser: make the filter entry grab focus on creation
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] language-chooser: make the filter entry grab focus on creation
- Date: Tue, 22 Nov 2011 14:49:02 +0000 (UTC)
commit 4c806ba60ae03eb5d94ef87679f1a11c1afa1437
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 21 17:13:54 2011 -0500
language-chooser: make the filter entry grab focus on creation
The filter entry should have initial keyboard focus, so typing in the
dialog right away will filter it.
https://bugzilla.gnome.org/show_bug.cgi?id=664505
panels/common/cc-language-chooser.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/common/cc-language-chooser.c b/panels/common/cc-language-chooser.c
index e81746e..6f8e9ff 100644
--- a/panels/common/cc-language-chooser.c
+++ b/panels/common/cc-language-chooser.c
@@ -307,6 +307,7 @@ cc_language_chooser_new (GtkWidget *parent, gboolean regions)
G_CALLBACK (filter_changed), list);
g_signal_connect (entry, "icon-release",
G_CALLBACK (filter_clear), NULL);
+ gtk_widget_grab_focus (entry);
user_langs = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
cc_common_language_setup_list (list, user_langs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]