aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2009-06-03 16:01:56 +0800
committerSrinivasa Ragavan <sragavan@novell.com>2009-06-03 22:16:52 +0800
commit32bb1e1650e3afe951b35b4ee53edd600741f842 (patch)
tree15ac7f63c5776c665f91052890c20495d4392bd3
parentf7a066d03ea560f289420d6fc794808516c4c257 (diff)
downloadgsoc2013-evolution-32bb1e1650e3afe951b35b4ee53edd600741f842.tar
gsoc2013-evolution-32bb1e1650e3afe951b35b4ee53edd600741f842.tar.gz
gsoc2013-evolution-32bb1e1650e3afe951b35b4ee53edd600741f842.tar.bz2
gsoc2013-evolution-32bb1e1650e3afe951b35b4ee53edd600741f842.tar.lz
gsoc2013-evolution-32bb1e1650e3afe951b35b4ee53edd600741f842.tar.xz
gsoc2013-evolution-32bb1e1650e3afe951b35b4ee53edd600741f842.tar.zst
gsoc2013-evolution-32bb1e1650e3afe951b35b4ee53edd600741f842.zip
More Anjal stuff for trunk.
-rw-r--r--composer/e-composer-header-table.c22
-rw-r--r--composer/e-composer-header-table.h4
2 files changed, 25 insertions, 1 deletions
diff --git a/composer/e-composer-header-table.c b/composer/e-composer-header-table.c
index f25c3b722c..542a836dc8 100644
--- a/composer/e-composer-header-table.c
+++ b/composer/e-composer-header-table.c
@@ -1032,6 +1032,28 @@ e_composer_header_table_get_header (EComposerHeaderTable *table,
return table->priv->headers[type];
}
+void
+e_composer_header_table_set_header_visible (EComposerHeaderTable *table,
+ EComposerHeaderType type,
+ gboolean visible)
+{
+ EComposerHeader *header;
+
+ header = e_composer_header_table_get_header (table, type);
+ e_composer_header_set_visible (header, visible);
+
+ /* Signature widgets track the "From" header. */
+ if (type == E_COMPOSER_HEADER_FROM) {
+ if (visible) {
+ gtk_widget_show (table->priv->signature_label);
+ gtk_widget_show (table->priv->signature_combo_box);
+ } else {
+ gtk_widget_hide (table->priv->signature_label);
+ gtk_widget_hide (table->priv->signature_combo_box);
+ }
+ }
+}
+
EAccount *
e_composer_header_table_get_account (EComposerHeaderTable *table)
{
diff --git a/composer/e-composer-header-table.h b/composer/e-composer-header-table.h
index 91ad56da46..3e3c95bff7 100644
--- a/composer/e-composer-header-table.h
+++ b/composer/e-composer-header-table.h
@@ -149,7 +149,9 @@ const gchar * e_composer_header_table_get_subject
void e_composer_header_table_set_subject
(EComposerHeaderTable *table,
const gchar *subject);
-
+void e_composer_header_table_set_header_visible (EComposerHeaderTable *table,
+ EComposerHeaderType type,
+ gboolean visible);
G_END_DECLS
#endif /* E_COMPOSER_HEADER_TABLE_H */