aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-composer-private.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-05-01 04:30:58 +0800
committerFederico Mena Quintero <federico@novell.com>2010-05-01 06:38:28 +0800
commitabd1b7ef77b5dc8ff7ff1c6c405aaf448828c1b9 (patch)
tree53c0ca0b20c1b9cee8412da9382f1f59b1292257 /composer/e-composer-private.c
parentdbbeab8bd0417702a182764386f727d27194774b (diff)
downloadgsoc2013-evolution-abd1b7ef77b5dc8ff7ff1c6c405aaf448828c1b9.tar.gz
gsoc2013-evolution-abd1b7ef77b5dc8ff7ff1c6c405aaf448828c1b9.tar.zst
gsoc2013-evolution-abd1b7ef77b5dc8ff7ff1c6c405aaf448828c1b9.zip
Use e_msg_composer_get_lite() instead of a global variable or struct fields
This will also make 'grep' easier when we remove the lite stuff by refactoring. Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'composer/e-composer-private.c')
-rw-r--r--composer/e-composer-private.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index b48f9b6cdf..ba022f3972 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -145,7 +145,7 @@ e_composer_private_constructed (EMsgComposer *composer)
html = gtkhtml_editor_get_html (editor);
ui_manager = gtkhtml_editor_get_ui_manager (editor);
- if (composer->lite) {
+ if (e_msg_composer_get_lite ()) {
widget = gtkhtml_editor_get_managed_widget (editor, "/main-menu");
gtk_widget_hide (widget);
widget = gtkhtml_editor_get_managed_widget (editor, "/main-toolbar");
@@ -243,7 +243,7 @@ e_composer_private_constructed (EMsgComposer *composer)
widget = e_composer_header_table_new ();
gtk_container_set_border_width (GTK_CONTAINER (widget), 6);
gtk_box_pack_start (GTK_BOX (editor->vbox), widget, FALSE, FALSE, 0);
- if (composer->lite)
+ if (e_msg_composer_get_lite ())
gtk_box_reorder_child (GTK_BOX (editor->vbox), widget, 0);
else
gtk_box_reorder_child (GTK_BOX (editor->vbox), widget, 2);
@@ -253,7 +253,7 @@ e_composer_private_constructed (EMsgComposer *composer)
/* Construct the attachment paned. */
- if (composer->lite) {
+ if (e_msg_composer_get_lite ()) {
e_attachment_paned_set_default_height (75); /* short attachment bar for Anjal */
e_attachment_icon_view_set_default_icon_size (GTK_ICON_SIZE_BUTTON);
}
@@ -262,7 +262,7 @@ e_composer_private_constructed (EMsgComposer *composer)
priv->attachment_paned = g_object_ref (widget);
gtk_widget_show (widget);
- if (composer->lite) {
+ if (e_msg_composer_get_lite ()) {
GtkWidget *tmp, *tmp1, *tmp_box, *container;
GtkWidget *combo;