aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorRodney Dawes <dobey@ximian.com>2004-01-25 23:47:27 +0800
committerRodney Dawes <dobey@src.gnome.org>2004-01-25 23:47:27 +0800
commitc689c8ff99d433e32e43c33ff3d18d068b989962 (patch)
treed3a86d15b48e2789098b1f58b0e2fc5c2ea1dc0e /mail
parenta960914290eb999976a5ed08fab9d9d08f9e57d9 (diff)
downloadgsoc2013-evolution-c689c8ff99d433e32e43c33ff3d18d068b989962.tar.gz
gsoc2013-evolution-c689c8ff99d433e32e43c33ff3d18d068b989962.tar.zst
gsoc2013-evolution-c689c8ff99d433e32e43c33ff3d18d068b989962.zip
Cast the name entry to a GtkWidget to avoid a compiler warning Grab focus
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 svn path=/trunk/; revision=24423
Diffstat (limited to 'mail')
-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