* Fixes NB#80619, do not force the width of the accounts dialog in order not to...
authorSergio Villar Senin <svillar@igalia.com>
Wed, 13 Feb 2008 13:25:26 +0000 (13:25 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 13 Feb 2008 13:25:26 +0000 (13:25 +0000)
pmo-trunk-r4171

src/maemo/modest-account-view-window.c
src/widgets/modest-account-view.c

index df08272..c225859 100644 (file)
@@ -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));
index 3a164c1..46c7048 100644 (file)
@@ -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);