Change no accounts label position and size
[modest] / src / hildon2 / modest-accounts-window.c
index 9a96dda..4d050fa 100644 (file)
@@ -32,6 +32,7 @@
 #include <libosso.h>
 #include <hildon/hildon-pannable-area.h>
 #include <hildon/hildon-banner.h>
+#include <hildon/hildon-helper.h>
 #include <modest-ui-actions.h>
 #include <modest-window-mgr.h>
 #include <modest-signal-mgr.h>
@@ -240,16 +241,23 @@ modest_accounts_window_new (void)
        GtkAccelGroup *accel_group;
        GtkWidget *no_accounts_label;
        GtkWidget *empty_view_new_message_button;
+       GtkWidget *box_alignment;
 
        self  = MODEST_ACCOUNTS_WINDOW(g_object_new(MODEST_TYPE_ACCOUNTS_WINDOW, NULL));
        priv = MODEST_ACCOUNTS_WINDOW_GET_PRIVATE(self);
 
        new_message_pixbuf = modest_platform_get_icon ("general_add", MODEST_ICON_SIZE_BIG);
 
+       box_alignment = gtk_alignment_new (0, 0, 1.0, 1.0);
+       gtk_alignment_set_padding (GTK_ALIGNMENT (box_alignment), 
+                                  0, 0,
+                                  HILDON_MARGIN_DOUBLE, HILDON_MARGIN_DOUBLE);
        priv->box = gtk_vbox_new (FALSE, 0);
 
        no_accounts_label = gtk_label_new (_("mcen_ia_noaccounts"));
-       gtk_misc_set_alignment (GTK_MISC (no_accounts_label), 0.5, 0.0);
+       
+       gtk_misc_set_alignment (GTK_MISC (no_accounts_label), 0.5, 0.5);
+       hildon_helper_set_logical_font (no_accounts_label, "LargeSystemFont");
 
        empty_view_new_message_button = hildon_button_new (MODEST_EDITABLE_SIZE, HILDON_BUTTON_ARRANGEMENT_HORIZONTAL);
        hildon_button_set_title (HILDON_BUTTON (empty_view_new_message_button), _("mcen_ti_new_message"));
@@ -285,11 +293,13 @@ modest_accounts_window_new (void)
 
        gtk_container_add (GTK_CONTAINER (priv->pannable), priv->account_view);
        gtk_box_pack_start (GTK_BOX (priv->box), priv->pannable, TRUE, TRUE, 0);
-       gtk_container_add (GTK_CONTAINER (self), priv->box);
+       gtk_container_add (GTK_CONTAINER (box_alignment), priv->box);
+       gtk_container_add (GTK_CONTAINER (self), box_alignment);
 
        gtk_widget_show (priv->account_view);
        gtk_widget_show (priv->pannable);
        gtk_widget_show (priv->box);
+       gtk_widget_show (box_alignment);
 
        connect_signals (MODEST_ACCOUNTS_WINDOW (self));