[balsa] Grab focus only if entry is realized



commit ddbea06482ecdc3a694e1082a97b3a49caeaa60b
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Nov 16 11:44:46 2009 -0500

    Grab focus only if entry is realized

 ChangeLog           |    6 ++++++
 src/balsa-message.c |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fa7a345..86177ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,15 @@
+2009-11-16  Peter Bloomfield
+
+	* src/balsa-message.c (balsa_message_find_in_message): grab
+	focus only if entry is realized.
+
 2009-11-15  Peter Bloomfield
 
 	* libbalsa/html.c (lbh_size_request_cb): remove debugging aid;
 	(lbh_navigation_policy_decision_requested_cb): do not handle
 	signal unless it is a real request;
 	(libbalsa_html_new): remove debugging aids.
+	* src/balsa-message.c (select_part): queue-resize is redundant.
 
 2009-11-12  Pawel Salek
 
diff --git a/src/balsa-message.c b/src/balsa-message.c
index 4d009a3..85d1b73 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -3273,6 +3273,7 @@ balsa_message_find_in_message(BalsaMessage * bm)
         bm_find_set_status(bm, BM_FIND_STATUS_INIT);
 
         gtk_widget_show(bm->find_bar);
-        gtk_widget_grab_focus(bm->find_entry);
+        if (gtk_widget_get_window(bm->find_entry))
+            gtk_widget_grab_focus(bm->find_entry);
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]