From 4dbaa97bb3a79d9883f314994ab349b28f92396b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergio=20Villar=20Sen=C3=ADn?= Date: Tue, 1 Dec 2009 14:01:05 +0100 Subject: [PATCH] Do not show neither tabs nor tree view headers --- src/gtk/modest-platform.c | 2 +- src/gtk/modest-shell.c | 3 ++- src/widgets/modest-account-view.c | 3 +++ src/widgets/modest-folder-view.c | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gtk/modest-platform.c b/src/gtk/modest-platform.c index 9dd82ff..3ec52d4 100644 --- a/src/gtk/modest-platform.c +++ b/src/gtk/modest-platform.c @@ -64,7 +64,7 @@ #include #include #include - +#include "widgets/modest-toolkit-utils.h" #define HILDON_OSSO_URI_ACTION "uri-action" #define URI_ACTION_COPY "copy:" diff --git a/src/gtk/modest-shell.c b/src/gtk/modest-shell.c index 1e432c0..b554ee8 100644 --- a/src/gtk/modest-shell.c +++ b/src/gtk/modest-shell.c @@ -137,6 +137,8 @@ modest_shell_instance_init (ModestShell *obj) g_signal_connect (G_OBJECT (priv->title_button), "clicked", G_CALLBACK (on_title_button_clicked), obj); priv->notebook = gtk_notebook_new (); + gtk_notebook_set_show_tabs ((GtkNotebook *)priv->notebook, FALSE); + gtk_notebook_set_show_border ((GtkNotebook *)priv->notebook, FALSE); gtk_widget_show (priv->notebook); gtk_box_pack_start (GTK_BOX (priv->main_vbox), priv->notebook, TRUE, TRUE, 0); gtk_container_add (GTK_CONTAINER (obj), priv->main_vbox); @@ -303,7 +305,6 @@ on_title_button_clicked (GtkToolButton *button, ModestShell *self) { ModestShellPrivate *priv; gint n_pages; - gboolean delete_event_retval; GtkWidget *child; GtkWidget *menu; diff --git a/src/widgets/modest-account-view.c b/src/widgets/modest-account-view.c index 08f875f..9d263b0 100644 --- a/src/widgets/modest-account-view.c +++ b/src/widgets/modest-account-view.c @@ -689,6 +689,9 @@ modest_account_view_new (ModestAccountMgr *account_mgr) init_view (MODEST_ACCOUNT_VIEW (obj)); update_account_view (account_mgr, MODEST_ACCOUNT_VIEW (obj)); + /* Hide headers by default */ + gtk_tree_view_set_headers_visible ((GtkTreeView *)obj, FALSE); + return MODEST_ACCOUNT_VIEW (obj); } diff --git a/src/widgets/modest-folder-view.c b/src/widgets/modest-folder-view.c index 637675b..14e85cc 100644 --- a/src/widgets/modest-folder-view.c +++ b/src/widgets/modest-folder-view.c @@ -1759,6 +1759,9 @@ modest_folder_view_new_full (TnyFolderStoreQuery *query, gboolean do_refresh) g_signal_connect (self, "expose-event", G_CALLBACK (modest_folder_view_on_map), NULL); + /* Hide headers by default */ + gtk_tree_view_set_headers_visible ((GtkTreeView *)self, FALSE); + return GTK_WIDGET(self); } -- 1.7.9.5