diff options
author | Harry Lu <harry.lu@sun.com> | 2005-03-02 12:56:51 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-03-02 12:56:51 +0800 |
commit | 9f9805577b127c40c317e72bbfdd1cd8235b5de2 (patch) | |
tree | 9bab8eb86658359de4a75e394a4247533aeb752f /mail/mail-signature-editor.c | |
parent | b5d47fdc3e3987d9f6e0e749e3ed035d5a61d722 (diff) | |
download | gsoc2013-evolution-9f9805577b127c40c317e72bbfdd1cd8235b5de2.tar.gz gsoc2013-evolution-9f9805577b127c40c317e72bbfdd1cd8235b5de2.tar.zst gsoc2013-evolution-9f9805577b127c40c317e72bbfdd1cd8235b5de2.zip |
Fix for 71733.
2005-03-02 Harry Lu <harry.lu@sun.com>
Fix for 71733.
* mail-signature-editor.c: (mail_signature_editor): if is_new,
let name_entry get the focus.
svn path=/trunk/; revision=28933
Diffstat (limited to 'mail/mail-signature-editor.c')
-rw-r--r-- | mail/mail-signature-editor.c | 10 |
1 files changed, 7 insertions, 3 deletions
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); + } } |