aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-05-08 09:20:09 +0800
committerFederico Mena Quintero <federico@novell.com>2010-05-08 09:27:30 +0800
commit20cb61bd444cc8db3c1188b15af99886c84c140e (patch)
treea144d2cf74edfdede68a09b887bbcb2b8d2903f4
parent5b75d85a0c6f76a8c13bfdc335fdffd14272a6fc (diff)
downloadgsoc2013-evolution-20cb61bd444cc8db3c1188b15af99886c84c140e.tar
gsoc2013-evolution-20cb61bd444cc8db3c1188b15af99886c84c140e.tar.gz
gsoc2013-evolution-20cb61bd444cc8db3c1188b15af99886c84c140e.tar.bz2
gsoc2013-evolution-20cb61bd444cc8db3c1188b15af99886c84c140e.tar.lz
gsoc2013-evolution-20cb61bd444cc8db3c1188b15af99886c84c140e.tar.xz
gsoc2013-evolution-20cb61bd444cc8db3c1188b15af99886c84c140e.tar.zst
gsoc2013-evolution-20cb61bd444cc8db3c1188b15af99886c84c140e.zip
Don't hide the composer's menu bar in lite mode
We are not ready to hide it just yet, as there are useful commands there that are not available from the composer's other widgets. Signed-off-by: Federico Mena Quintero <federico@novell.com>
-rw-r--r--composer/e-composer-private.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 293393cf35..5fbf7cdb86 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -146,8 +146,17 @@ e_composer_private_constructed (EMsgComposer *composer)
ui_manager = gtkhtml_editor_get_ui_manager (editor);
if (e_msg_composer_get_lite ()) {
+#if 0
+ /* In the lite composer, for small screens, we are not ready yet
+ * to hide the menubar. It still has useful items like the ones
+ * to show/hide the various header fields, plus the security options.
+ *
+ * When we move those options out of the menu and into the composer's
+ * toplevel, we can probably get rid of the menu.
+ */
widget = gtkhtml_editor_get_managed_widget (editor, "/main-menu");
gtk_widget_hide (widget);
+#endif
widget = gtkhtml_editor_get_managed_widget (editor, "/main-toolbar");
gtk_toolbar_set_style (GTK_TOOLBAR (widget), GTK_TOOLBAR_BOTH_HORIZ);
gtk_widget_hide (widget);
@@ -244,7 +253,7 @@ e_composer_private_constructed (EMsgComposer *composer)
gtk_container_set_border_width (GTK_CONTAINER (widget), 6);
gtk_box_pack_start (GTK_BOX (editor->vbox), widget, FALSE, FALSE, 0);
if (e_msg_composer_get_lite ())
- gtk_box_reorder_child (GTK_BOX (editor->vbox), widget, 0);
+ gtk_box_reorder_child (GTK_BOX (editor->vbox), widget, 1);
else
gtk_box_reorder_child (GTK_BOX (editor->vbox), widget, 2);