From 847c27f555cab89444f863326de57abcd8ad9766 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 31 Aug 2000 02:22:37 +0000 Subject: Make the HTML widget grab the focus in the mail view window so that you can scroll with the keyboard without clicking on the widget first. svn path=/trunk/; revision=5130 --- mail/ChangeLog | 5 +++++ mail/mail-view.c | 1 + 2 files changed, 6 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index 7e7a873d8e..cfc5a4ce0d 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-08-30 Ettore Perazzoli + + * mail-view.c (mail_view_create): Make the HTML widget grab the + focus. + 2000-08-30 Peter Williams * mail-config-gui.c (do_test_service): Explicitly connect to diff --git a/mail/mail-view.c b/mail/mail-view.c index 989d1a2a3a..bbdfa87545 100644 --- a/mail/mail-view.c +++ b/mail/mail-view.c @@ -248,6 +248,7 @@ mail_view_create (CamelFolder *source, const char *uid, CamelMimeMessage *msg) mail_display_set_message (MAIL_DISPLAY (mail_display), CAMEL_MEDIUM (msg)); data->md = MAIL_DISPLAY (mail_display); gnome_app_set_contents (GNOME_APP (window), mail_display); + gtk_widget_grab_focus (GTK_WIDGET (MAIL_DISPLAY (mail_display)->html)); gtk_signal_connect (GTK_OBJECT (window), "size_allocate", GTK_SIGNAL_FUNC (view_size_allocate_cb), NULL); -- cgit v1.2.3