[balsa/wip/gtk4: 273/351] Revert d92011cb2d14dfd48e7fbaa63b66a76c5eb1e31c



commit 62dc09882a4539e404d7a311ca990e195aa2c3e2
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Apr 7 17:16:48 2018 -0400

    Revert d92011cb2d14dfd48e7fbaa63b66a76c5eb1e31c
    
    Having the preview grab the focus whenever a text/plain part is shown is
    just annoying. We need a better way to avoid the unwanted scroll.

 src/balsa-mime-widget-text.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 07cf08b..4a68617 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -498,16 +498,6 @@ fix_text_widget(GtkWidget *widget, gpointer data)
     }
     gtk_widget_set_cursor(widget, url_cursor_normal);
 
-    /*
-     * The first time we click in a text part, the text widget grabs the
-     * focus, and that leads the container that holds it to scroll to
-     * its focus child, namely the text widget. That moves the text
-     * under the pointer, so the click is received somewhere other than
-     * was intended. Grabbing the focus on realization seems to avert
-     * the scrolling.
-     */
-    gtk_widget_grab_focus(widget);
-
     return FALSE;
 }
 


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