[evolution-patches] [Mailer] Fix for 244058



Hi

Worked on Bug 244058.

Please review the patch

Thanks
Johnny
Index: composer/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/composer/ChangeLog,v
retrieving revision 1.723
diff -u -p -r1.723 ChangeLog
--- composer/ChangeLog	5 Dec 2005 08:31:03 -0000	1.723
+++ composer/ChangeLog	20 Dec 2005 13:12:31 -0000
@@ -1,3 +1,9 @@
+2005-12-20  Johnny Jacob  <johnnyjacob gmail com>
+
+	Fixes Bug #244058
+	* e-msg-composer.c (hdrs_changed_cb) : Bcc, Cc fields, if hidden 
+	and not empty, then show.
+
 2005-12-05  Parthasarathi Susarla <sparthasarathi novell com>
 	
 	** See bug #322863
Index: composer/e-msg-composer.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer.c,v
retrieving revision 1.526
diff -u -p -r1.526 e-msg-composer.c
--- composer/e-msg-composer.c	17 Dec 2005 14:14:07 -0000	1.526
+++ composer/e-msg-composer.c	20 Dec 2005 13:12:37 -0000
@@ -2505,6 +2505,22 @@ hdrs_changed_cb (EMsgComposerHdrs *hdrs,
 	
 	composer = E_MSG_COMPOSER (data);
 	
+	char *temp;
+
+	composer = E_MSG_COMPOSER (data);
+
+       /* Check cc.entry. If hidden & not empty then show */
+	if ( !e_msg_composer_get_view_cc (composer)) {
+		temp = gtk_entry_get_text ( e_msg_composer_hdrs_get_cc_entry (hdrs));
+		e_msg_composer_set_view_cc (composer, !(*temp == '\0'));
+	}
+
+	/* Check bcc.entry  if hidden & not empty then show */
+	if ( !e_msg_composer_get_view_bcc (composer)) {
+		temp = gtk_entry_get_text ( e_msg_composer_hdrs_get_bcc_entry (hdrs));
+		e_msg_composer_set_view_bcc (composer, !(*temp == '\0'));
+	}
+
 	/* Mark the composer as changed so it prompts about unsaved changes on close */
 	e_msg_composer_set_changed (composer);
 }


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