[anjal] Add option to show/hide From. Useful while more than 1 accounts.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Add option to show/hide From. Useful while more than 1 accounts.
- Date: Tue, 21 Jul 2009 04:48:25 +0000 (UTC)
commit fb0ca3b8c84bbb2b9fc81f758603c7168b975c6a
Author: Srinivasa Ragavan <sragavan novell com>
Date: Mon Jul 20 18:00:50 2009 +0530
Add option to show/hide From. Useful while more than 1 accounts.
src/mail-composer-view.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/mail-composer-view.c b/src/mail-composer-view.c
index 5fa981d..501a8d8 100644
--- a/src/mail-composer-view.c
+++ b/src/mail-composer-view.c
@@ -28,6 +28,8 @@
#include "mail-view.h"
#include "mail-composer-view.h"
+#include <composer/e-composer-header-table.h>
+#include <composer/e-msg-composer.h>
struct _MailComposerViewPrivate {
GtkWidget *box;
@@ -123,7 +125,7 @@ mail_composer_view_construct (MailComposerView *shell, struct _EMsgComposer *new
{
MailComposerViewPrivate *priv = shell->priv;
struct _EMsgComposer *composer;
-
+ struct _EComposerHeaderTable *table;
GtkWidget *close_button, *w, *img, *box, *tmp;
GdkPixbuf *icon;
int x,y;
@@ -158,6 +160,9 @@ mail_composer_view_construct (MailComposerView *shell, struct _EMsgComposer *new
composer = new_composer;
else
composer = em_utils_compose_lite_new_message (NULL);
+
+ table = e_msg_composer_get_header_table (composer);
+ e_composer_header_table_set_header_visible (table, E_COMPOSER_HEADER_FROM, FALSE);
tmp = g_object_get_data((GObject *)composer, "vbox");
gtk_widget_reparent (tmp, box);
priv->box = box;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]