[evolution-patches] Patch for the bug # 309869




Hi,

     I have attached the patch for the bug # 309869.

     This patch changes the focus to the corresponding headers' entry fields.

      The gtk_widget_grab_focus() is added in the functions where the buttons (headers') click event is handled.

--
S.Antony Vincent Pandian
--- e-msg-composer-hdrs.c	2005-07-11 17:18:28.190716416 +0530
+++ e-msg-composer-hdrs-bkp.c	2005-07-11 17:17:20.181055456 +0530
@@ -187,6 +187,13 @@ address_button_clicked_cb (GtkButton *bu
 	hdrs = emchas->hdrs;
 	priv = hdrs->priv;
 
+	if(g_strcasecmp(button->label_text,"_Cc:")==0)
+		gtk_widget_grab_focus(hdrs->priv->cc.entry);
+	else if(g_strcasecmp(button->label_text,"_Bcc:")==0)
+		gtk_widget_grab_focus(hdrs->priv->bcc.entry);
+	else if(g_strcasecmp(button->label_text,"_To:")==0)
+		gtk_widget_grab_focus(hdrs->priv->to.entry);
+
 	name_selector_dialog = e_name_selector_peek_dialog (priv->name_selector);
 	gtk_widget_show (GTK_WIDGET (name_selector_dialog));
 }
@@ -516,6 +523,9 @@ post_browser_clicked_cb (GtkButton *butt
 	GtkWidget *dialog;
 	GList *post_items;
 
+	if(g_strcasecmp(button->label_text,"_Post To:")==0)
+		gtk_widget_grab_focus(hdrs->priv->post_to.entry);
+	
 	model = mail_component_peek_tree_model (mail_component_peek ());
 	emft = (EMFolderTree *) em_folder_tree_new_with_model (model);
 	em_folder_tree_set_multiselect (emft, TRUE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]