From: Jose Dapena Paz Date: Mon, 13 Apr 2009 10:39:05 +0000 (+0000) Subject: Add proper margins to account view window (fixes NB#107764) X-Git-Tag: git_migration_finished~96 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=ee44d29d168d38d91ae753a3f47cb00ad5e0b8bd;hp=a94876e02d8fe12c5848a3153fe513c2ddc18b72 Add proper margins to account view window (fixes NB#107764) pmo-trunk-r8742 --- diff --git a/src/hildon2/modest-account-view-window.c b/src/hildon2/modest-account-view-window.c index 9451d89..96930cf 100644 --- a/src/hildon2/modest-account-view-window.c +++ b/src/hildon2/modest-account-view-window.c @@ -289,10 +289,14 @@ modest_account_view_window_init (ModestAccountViewWindow *self) { ModestAccountViewWindowPrivate *priv; GtkWidget *main_vbox, *pannable; + GtkWidget *align; /* Specify a default size */ gtk_window_set_default_size (GTK_WINDOW (self), -1, MODEST_DIALOG_WINDOW_MAX_HEIGHT); + gtk_dialog_set_has_separator (GTK_DIALOG (self), FALSE); + gtk_widget_hide (GTK_DIALOG (self)->action_area); + /* 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, @@ -316,7 +320,13 @@ 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_DEFAULT); + align = gtk_alignment_new (0.0, 0.0, 1.0, 1.0); + gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 0, MODEST_MARGIN_DEFAULT, MODEST_MARGIN_DEFAULT); + gtk_widget_show (align); + + gtk_container_add (GTK_CONTAINER (align), pannable); + + gtk_box_pack_start (GTK_BOX(main_vbox), align, TRUE, TRUE, 0); }