[evolution] Do not focus in a search entry when it is not having a focus
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Do not focus in a search entry when it is not having a focus
- Date: Thu, 7 Jan 2010 18:16:36 +0000 (UTC)
commit c6e32c11c10e006e83cf7beb7afd6b585e3d5570
Author: Milan Crha <mcrha redhat com>
Date: Thu Jan 7 19:15:02 2010 +0100
Do not focus in a search entry when it is not having a focus
shell/e-shell-searchbar.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c
index 7d09589..d98ec8e 100644
--- a/shell/e-shell-searchbar.c
+++ b/shell/e-shell-searchbar.c
@@ -166,7 +166,8 @@ shell_searchbar_execute_search_cb (EShellView *shell_view,
* focus-in event is required before the text can be changed.
* This will reset the entry to the appropriate visual state. */
widget = searchbar->priv->search_entry;
- gtk_widget_child_focus (widget, GTK_DIR_TAB_FORWARD);
+ if (gtk_widget_is_focus (widget))
+ gtk_widget_child_focus (widget, GTK_DIR_TAB_FORWARD);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]