Remove autofocus adjustment in widgets autofocus doesn't help
[modest] / src / hildon2 / modest-account-view-window.c
index 71382f8..9451d89 100644 (file)
@@ -292,7 +292,7 @@ modest_account_view_window_init (ModestAccountViewWindow *self)
 
 
        /* Specify a default size */
-       gtk_window_set_default_size (GTK_WINDOW (self), -1, 320);
+       gtk_window_set_default_size (GTK_WINDOW (self), -1, MODEST_DIALOG_WINDOW_MAX_HEIGHT);
        
        /* This seems to be necessary to make the window show at the front with decoration.
         * If we use property type=GTK_WINDOW_TOPLEVEL instead of the default GTK_WINDOW_POPUP+decoration, 
@@ -303,12 +303,11 @@ modest_account_view_window_init (ModestAccountViewWindow *self)
        priv = MODEST_ACCOUNT_VIEW_WINDOW_GET_PRIVATE(self);
        priv->acc_removed_handler = 0;
        priv->account_view = modest_account_view_new (modest_runtime_get_account_mgr());
+       modest_account_view_set_picker_mode (MODEST_ACCOUNT_VIEW (priv->account_view), TRUE);
 
        main_vbox = GTK_DIALOG (self)->vbox;
 
        pannable = hildon_pannable_area_new ();
-       g_object_set (G_OBJECT (pannable), "initial-hint", TRUE, NULL);
-       gtk_container_set_border_width (GTK_CONTAINER (pannable), MODEST_MARGIN_DEFAULT);
        gtk_widget_show (pannable);
        gtk_container_add (GTK_CONTAINER (pannable), 
                           GTK_WIDGET (priv->account_view));
@@ -317,7 +316,7 @@ modest_account_view_window_init (ModestAccountViewWindow *self)
        g_signal_connect (G_OBJECT (priv->account_view), "row-activated",
                          G_CALLBACK (on_account_activated), self);
 
-       gtk_box_pack_start (GTK_BOX(main_vbox), pannable, TRUE, TRUE, MODEST_MARGIN_HALF);
+       gtk_box_pack_start (GTK_BOX(main_vbox), pannable, TRUE, TRUE, MODEST_MARGIN_DEFAULT);
 
 }