diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-07-01 22:47:10 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-07-01 22:47:10 +0800 |
commit | 1351c8e4fb443a9705bb1225c3c574c05a36f8ca (patch) | |
tree | e049bafefac361ae66dfa43abdb956f1f3a730e0 /composer/e-composer-header.c | |
parent | 624f48121f523101fe26c3d3a8b51a4eeda90990 (diff) | |
parent | 42e75c9162402078ac629740821c3533925ee342 (diff) | |
download | gsoc2013-evolution-1351c8e4fb443a9705bb1225c3c574c05a36f8ca.tar.gz gsoc2013-evolution-1351c8e4fb443a9705bb1225c3c574c05a36f8ca.tar.zst gsoc2013-evolution-1351c8e4fb443a9705bb1225c3c574c05a36f8ca.zip |
Merge branch 'master' into kill-bonobo
Diffstat (limited to 'composer/e-composer-header.c')
-rw-r--r-- | composer/e-composer-header.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/composer/e-composer-header.c b/composer/e-composer-header.c index f1524a62e6..713c123b74 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; @@ -428,6 +425,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"); } |