aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2009-06-24 23:45:29 +0800
committerSrinivasa Ragavan <sragavan@novell.com>2009-06-24 23:53:50 +0800
commit741307a9309d389d3246285c985c2a68c741d6d7 (patch)
treec30f46cf4aaf8670f7f45023ea47ce8f57cab3f6 /composer
parent1e952f590a65aa778fec151a63747bf4a22f2f27 (diff)
downloadgsoc2013-evolution-741307a9309d389d3246285c985c2a68c741d6d7.tar
gsoc2013-evolution-741307a9309d389d3246285c985c2a68c741d6d7.tar.gz
gsoc2013-evolution-741307a9309d389d3246285c985c2a68c741d6d7.tar.bz2
gsoc2013-evolution-741307a9309d389d3246285c985c2a68c741d6d7.tar.lz
gsoc2013-evolution-741307a9309d389d3246285c985c2a68c741d6d7.tar.xz
gsoc2013-evolution-741307a9309d389d3246285c985c2a68c741d6d7.tar.zst
gsoc2013-evolution-741307a9309d389d3246285c985c2a68c741d6d7.zip
Fix show CC/BCC text for Anjal depending on the visibility of the
widget.
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-header.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/composer/e-composer-header.c b/composer/e-composer-header.c
index e2942ca201..980e11c338 100644
--- a/composer/e-composer-header.c
+++ b/composer/e-composer-header.c
@@ -69,10 +69,6 @@ composer_header_addaction_clicked_cb (GtkButton *button,
EComposerHeader *header)
{
gboolean show = !e_composer_header_get_visible(header);
- if (!show)
- gtk_label_set_markup ((GtkLabel *)header->priv->action_label, g_object_get_data ((GObject *)header->priv->action_label, "show"));
- else
- gtk_label_set_markup ((GtkLabel *)header->priv->action_label, g_object_get_data ((GObject *)header->priv->action_label, "hide"));
e_composer_header_set_visible (header, show);
}
@@ -105,6 +101,7 @@ composer_header_constructor (GType type,
GTK_LABEL (widget), header->input_widget);
}
+ header->priv->action_label = NULL;
if (header->priv->addaction) {
GtkWidget *box, *tmp;
gchar *str;
@@ -431,6 +428,12 @@ e_composer_header_set_visible (EComposerHeader *header,
header->priv->visible = visible;
+ if (header->priv->action_label) {
+ if (!visible)
+ gtk_label_set_markup ((GtkLabel *)header->priv->action_label, g_object_get_data ((GObject *)header->priv->action_label, "show"));
+ else
+ gtk_label_set_markup ((GtkLabel *)header->priv->action_label, g_object_get_data ((GObject *)header->priv->action_label, "hide"));
+ }
g_object_notify (G_OBJECT (header), "visible");
}