aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-03-17 01:58:47 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-03-17 01:58:47 +0800
commit16f645ab25fff354e42b8348d2eceaa65fad5b86 (patch)
treeb4de3e501adc0f4e3b4b59a855b21f07ef240e2e /mail
parentc94074f354a6d8a2de9a7c623a79130b3d10e338 (diff)
downloadgsoc2013-evolution-16f645ab25fff354e42b8348d2eceaa65fad5b86.tar
gsoc2013-evolution-16f645ab25fff354e42b8348d2eceaa65fad5b86.tar.gz
gsoc2013-evolution-16f645ab25fff354e42b8348d2eceaa65fad5b86.tar.bz2
gsoc2013-evolution-16f645ab25fff354e42b8348d2eceaa65fad5b86.tar.lz
gsoc2013-evolution-16f645ab25fff354e42b8348d2eceaa65fad5b86.tar.xz
gsoc2013-evolution-16f645ab25fff354e42b8348d2eceaa65fad5b86.tar.zst
gsoc2013-evolution-16f645ab25fff354e42b8348d2eceaa65fad5b86.zip
Don't focus the name_entry widget here.
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 svn path=/trunk/; revision=25091
Diffstat (limited to 'mail')
-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,