diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-04-06 07:50:14 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-04-06 07:50:14 +0800 |
commit | c2c91ffed71c7f50735281e5db316f474628d124 (patch) | |
tree | 5f18b63e9304751c800515618449e094640b4e2e /composer/e-msg-composer-hdrs.c | |
parent | 0c6bbddb63c1ef85f11c581c4c5f0c2d8f57c51c (diff) | |
download | gsoc2013-evolution-c2c91ffed71c7f50735281e5db316f474628d124.tar gsoc2013-evolution-c2c91ffed71c7f50735281e5db316f474628d124.tar.gz gsoc2013-evolution-c2c91ffed71c7f50735281e5db316f474628d124.tar.bz2 gsoc2013-evolution-c2c91ffed71c7f50735281e5db316f474628d124.tar.lz gsoc2013-evolution-c2c91ffed71c7f50735281e5db316f474628d124.tar.xz gsoc2013-evolution-c2c91ffed71c7f50735281e5db316f474628d124.tar.zst gsoc2013-evolution-c2c91ffed71c7f50735281e5db316f474628d124.zip |
Fixes bug #3980.
2002-04-05 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #3980.
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_cc): If a Cc list
is set to something non-empty, make sure to show the Cc widgets.
(e_msg_composer_hdrs_set_bcc): Same but for Bcc.
(e_msg_composer_hdrs_set_reply_to): And here.
svn path=/trunk/; revision=16366
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 78296394b5..c811d2d24b 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -452,7 +452,7 @@ set_pair_visibility (EMsgComposerHdrs *h, EMsgComposerHdrPair *pair, gboolean vi } static void -headers_set_visibility (EMsgComposerHdrs *h, gint visible_flags) +headers_set_visibility (EMsgComposerHdrs *h, int visible_flags) { EMsgComposerHdrsPrivate *p = h->priv; @@ -464,7 +464,7 @@ headers_set_visibility (EMsgComposerHdrs *h, gint visible_flags) } void -e_msg_composer_set_hdrs_visible (EMsgComposerHdrs *hdrs, gint visible_flags) +e_msg_composer_set_hdrs_visible (EMsgComposerHdrs *hdrs, int visible_flags) { g_return_if_fail (hdrs != NULL); g_return_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs)); @@ -474,7 +474,7 @@ e_msg_composer_set_hdrs_visible (EMsgComposerHdrs *hdrs, gint visible_flags) } static void -setup_headers (EMsgComposerHdrs *hdrs, gint visible_flags) +setup_headers (EMsgComposerHdrs *hdrs, int visible_flags) { create_headers (hdrs); attach_headers (hdrs); @@ -616,7 +616,7 @@ e_msg_composer_hdrs_get_type (void) } GtkWidget * -e_msg_composer_hdrs_new (gint visible_flags) +e_msg_composer_hdrs_new (int visible_flags) { EMsgComposerHdrs *new; EMsgComposerHdrsPrivate *priv; @@ -833,6 +833,8 @@ e_msg_composer_hdrs_set_reply_to (EMsgComposerHdrs *hdrs, bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->reply_to.entry), "text", reply_to, NULL); + if (reply_to && *reply_to) + set_pair_visibility (hdrs, &hdrs->priv->cc, TRUE); } void @@ -857,7 +859,9 @@ e_msg_composer_hdrs_set_cc (EMsgComposerHdrs *hdrs, g_return_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs)); str = e_destination_exportv (cc_destv); - bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->cc.entry), "destinations", str, NULL); + bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->cc.entry), "destinations", str, NULL); + if (str && *str) + set_pair_visibility (hdrs, &hdrs->priv->cc, TRUE); g_free (str); } @@ -871,6 +875,8 @@ e_msg_composer_hdrs_set_bcc (EMsgComposerHdrs *hdrs, str = e_destination_exportv (bcc_destv); bonobo_widget_set_property (BONOBO_WIDGET (hdrs->priv->bcc.entry), "destinations", str, NULL); + if (str && *str) + set_pair_visibility (hdrs, &hdrs->priv->bcc, TRUE); g_free (str); } |