aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-header.c11
-rw-r--r--composer/e-msg-composer.h2
2 files changed, 8 insertions, 5 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");
}
diff --git a/composer/e-msg-composer.h b/composer/e-msg-composer.h
index 1a8f4676e7..1d5eb39d80 100644
--- a/composer/e-msg-composer.h
+++ b/composer/e-msg-composer.h
@@ -29,7 +29,7 @@
#include <libedataserver/e-account.h>
#include <libebook/e-destination.h>
#include <gtkhtml-editor.h>
-#include <widgets/misc/e-attachment-view.h>
+#include <misc/e-attachment-view.h>
#include "e-composer-header-table.h"