aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/em-folder-selector.c2
-rw-r--r--mail/em-folder-tree.c1
3 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 7236d48c4e..7f5263abfd 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,12 @@
+2004-01-25 Rodney Dawes <dobey@ximian.com>
+
+ * em-folder-selector.c (em_folder_selector_create_new): Cast the
+ name entry to a GtkWidget to avoid a compiler warning
+ * em-folder-tree.c (emft_popup_new_folder): Grab focus on the name
+ entry when we show the dialog (#53089)
+
+ Fixes #53089
+
2004-01-23 Jeffrey Stedfast <fejj@ximian.com>
* em-folder-tree-model.c (em_folder_tree_model_get_type): Removed
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c
index f973cc2dc3..855de2f174 100644
--- a/mail/em-folder-selector.c
+++ b/mail/em-folder-selector.c
@@ -263,7 +263,7 @@ em_folder_selector_create_new (EMFolderTree *emft, guint32 flags, const char *ti
w = gtk_label_new_with_mnemonic (_("Folder _name:"));
gtk_box_pack_start ((GtkBox *) hbox, w, FALSE, FALSE, 6);
emfs->name_entry = (GtkEntry *) gtk_entry_new ();
- gtk_label_set_mnemonic_widget (GTK_LABEL (w), emfs->name_entry);
+ gtk_label_set_mnemonic_widget (GTK_LABEL (w), (GtkWidget *) emfs->name_entry);
g_signal_connect (emfs->name_entry, "changed", G_CALLBACK (emfs_create_name_changed), emfs);
g_signal_connect (emfs->name_entry, "activate", G_CALLBACK (emfs_create_name_activate), emfs);
gtk_box_pack_start ((GtkBox *) hbox, (GtkWidget *) emfs->name_entry, TRUE, FALSE, 6);
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 0396ec4de6..c374faf047 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -1306,6 +1306,7 @@ emft_popup_new_folder (GtkWidget *item, EMFolderTree *emft)
em_folder_selector_set_selected ((EMFolderSelector *) dialog, emft->priv->selected_uri);
g_signal_connect (dialog, "response", G_CALLBACK (emft_popup_new_folder_response), emft);
gtk_widget_show (dialog);
+ gtk_widget_grab_focus ((GtkWidget *) ((EMFolderSelector *)dialog)->name_entry);
}
static void