From d78fabb494c3d68ab56d89f8acb5f3175aed8b13 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Wed, 13 Feb 2008 13:25:26 +0000 Subject: [PATCH] * Fixes NB#80619, do not force the width of the accounts dialog in order not to truncate the column titles pmo-trunk-r4171 --- src/maemo/modest-account-view-window.c | 4 +++- src/widgets/modest-account-view.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/maemo/modest-account-view-window.c b/src/maemo/modest-account-view-window.c index df08272..c225859 100644 --- a/src/maemo/modest-account-view-window.c +++ b/src/maemo/modest-account-view-window.c @@ -427,7 +427,9 @@ window_vbox_new (ModestAccountViewWindow *self) priv->account_view = modest_account_view_new (modest_runtime_get_account_mgr()); - gtk_widget_set_size_request (GTK_WIDGET(priv->account_view), 300, 400); + /* Only force the height, the width of the widget will depend + on the size of the column titles */ + gtk_widget_set_size_request (GTK_WIDGET(priv->account_view), -1, 400); gtk_widget_show (GTK_WIDGET (priv->account_view)); GtkTreeSelection *sel = gtk_tree_view_get_selection (GTK_TREE_VIEW(priv->account_view)); diff --git a/src/widgets/modest-account-view.c b/src/widgets/modest-account-view.c index 3a164c1..46c7048 100644 --- a/src/widgets/modest-account-view.c +++ b/src/widgets/modest-account-view.c @@ -492,6 +492,7 @@ init_view (ModestAccountView *self) column = gtk_tree_view_column_new_with_attributes (_("mcen_ti_lastupdated"), text_renderer,"text", MODEST_ACCOUNT_VIEW_LAST_UPDATED_COLUMN, NULL); gtk_tree_view_append_column (GTK_TREE_VIEW(self),column); + gtk_tree_view_column_set_expand (column, TRUE); gtk_tree_view_column_set_cell_data_func(column, text_renderer, bold_if_default_cell_data, NULL, NULL); -- 1.7.9.5