From 9f9805577b127c40c317e72bbfdd1cd8235b5de2 Mon Sep 17 00:00:00 2001 From: Harry Lu Date: Wed, 2 Mar 2005 04:56:51 +0000 Subject: Fix for 71733. 2005-03-02 Harry Lu Fix for 71733. * mail-signature-editor.c: (mail_signature_editor): if is_new, let name_entry get the focus. svn path=/trunk/; revision=28933 --- mail/ChangeLog | 7 +++++++ mail/mail-signature-editor.c | 10 +++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index fb29252fc1..75ddde2ef8 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2005-03-02 Harry Lu + + Fix for 71733. + + * mail-signature-editor.c: (mail_signature_editor): if is_new, + let name_entry get the focus. + 2005-02-28 JP Rosevear * em-utils.c (em_utils_configure_account): pass in accountDruid diff --git a/mail/mail-signature-editor.c b/mail/mail-signature-editor.c index ead7ec3469..0ffff0fcd5 100644 --- a/mail/mail-signature-editor.c +++ b/mail/mail-signature-editor.c @@ -431,7 +431,11 @@ mail_signature_editor (ESignature *sig, GtkWindow *parent, gboolean is_new) gtk_widget_show (GTK_WIDGET (editor->win)); gtk_widget_show (GTK_WIDGET (editor->control)); - CORBA_exception_init (&ev); - GNOME_GtkHTML_Editor_Engine_runCommand (editor->engine, "grab-focus", &ev); - CORBA_exception_free (&ev); + if (is_new) + gtk_widget_grab_focus (editor->name_entry); + else { + CORBA_exception_init (&ev); + GNOME_GtkHTML_Editor_Engine_runCommand (editor->engine, "grab-focus", &ev); + CORBA_exception_free (&ev); + } } -- cgit v1.2.3