aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2005-03-02 12:56:51 +0800
committerHarry Lu <haip@src.gnome.org>2005-03-02 12:56:51 +0800
commit9f9805577b127c40c317e72bbfdd1cd8235b5de2 (patch)
tree9bab8eb86658359de4a75e394a4247533aeb752f
parentb5d47fdc3e3987d9f6e0e749e3ed035d5a61d722 (diff)
downloadgsoc2013-evolution-9f9805577b127c40c317e72bbfdd1cd8235b5de2.tar
gsoc2013-evolution-9f9805577b127c40c317e72bbfdd1cd8235b5de2.tar.gz
gsoc2013-evolution-9f9805577b127c40c317e72bbfdd1cd8235b5de2.tar.bz2
gsoc2013-evolution-9f9805577b127c40c317e72bbfdd1cd8235b5de2.tar.lz
gsoc2013-evolution-9f9805577b127c40c317e72bbfdd1cd8235b5de2.tar.xz
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
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/mail-signature-editor.c10
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 <harry.lu@sun.com>
+
+ Fix for 71733.
+
+ * mail-signature-editor.c: (mail_signature_editor): if is_new,
+ let name_entry get the focus.
+
2005-02-28 JP Rosevear <jpr@novell.com>
* 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);
+ }
}