aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/em-folder-selector.c2
-rw-r--r--mail/mail-component.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 148f75eef7..6c7795221d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,11 @@
2004-03-16 Jeffrey Stedfast <fejj@ximian.com>
+ * mail-component.c (impl_requestCreateItem): Don't focus the
+ name_entry widget here.
+
+ * em-folder-selector.c (em_folder_selector_create_new): Focus the
+ name_entry widget here rather than in mail-component.c
+
* em-folder-tree.c (emft_drop_async_desc): New function to return
a description of the async drop operation. Fixes bug #54808.
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c
index 4201fbd044..80f2ca2a0c 100644
--- a/mail/em-folder-selector.c
+++ b/mail/em-folder-selector.c
@@ -311,6 +311,8 @@ em_folder_selector_create_new (EMFolderTree *emft, guint32 flags, const char *ti
gtk_box_pack_start ((GtkBox *) ((GtkDialog *) emfs)->vbox, hbox, FALSE, TRUE, 0);
+ gtk_widget_grab_focus ((GtkWidget *) emfs->name_entry);
+
return (GtkWidget *) emfs;
}
diff --git a/mail/mail-component.c b/mail/mail-component.c
index 56734b8af7..7499420131 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -624,15 +624,13 @@ impl_requestCreateItem (PortableServer_Servant servant,
/* This api is fucked up, too tightly integrated with the tree view */
EMFolderTree *folder_tree;
GtkWidget *dialog;
-
+
folder_tree = (EMFolderTree *) em_folder_tree_new_with_model(mc->priv->model);
dialog = em_folder_selector_create_new (folder_tree, 0, _("Create folder"), _("Specify where to create the folder:"));
/* We need to get this from the currently activated component?
em_folder_selector_set_selected ((EMFolderSelector *) dialog, emft->priv->selected_uri);*/
g_signal_connect (dialog, "response", G_CALLBACK(emc_new_folder_response), mc);
gtk_widget_show(dialog);
- /* FIXME: what is this crap, this should go in the folder selector */
- gtk_widget_grab_focus((GtkWidget *)((EMFolderSelector *)dialog)->name_entry);
} else {
CORBA_exception_set (ev, CORBA_USER_EXCEPTION,