X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-signature-editor-dialog.c;h=acc9c6b95cb19809f46da28efcbc8314ecdb1270;hb=b534bdd3f3abcd05f19e116edbc4e379e7dc359b;hp=745b1b68f08a0288ba34357c220e844694f07607;hpb=cbecf763eb1ac1c1aa583234639c33124ef437ea;p=modest diff --git a/src/maemo/modest-signature-editor-dialog.c b/src/maemo/modest-signature-editor-dialog.c index 745b1b6..acc9c6b 100644 --- a/src/maemo/modest-signature-editor-dialog.c +++ b/src/maemo/modest-signature-editor-dialog.c @@ -1,11 +1,12 @@ /* connection-specific-smtp-window.c */ #include "modest-signature-editor-dialog.h" -#include "maemo/modest-maemo-ui-constants.h" +#include "widgets/modest-ui-constants.h" #include "modest-hildon-includes.h" #include "widgets/modest-serversecurity-combo-box.h" #include "widgets/modest-secureauth-combo-box.h" #include "widgets/modest-validating-entry.h" +#include "modest-runtime.h" #include #include #include @@ -122,8 +123,9 @@ modest_signature_editor_dialog_init (ModestSignatureEditorDialog *self) gtk_widget_show (priv->label); priv->scrolledwindow = gtk_scrolled_window_new (NULL, NULL); + gtk_container_set_border_width (GTK_CONTAINER (priv->scrolledwindow), MODEST_MARGIN_DEFAULT); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->scrolledwindow), - GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (priv->scrolledwindow), GTK_SHADOW_IN); gtk_box_pack_start (GTK_BOX (box), priv->scrolledwindow, FALSE, FALSE, MODEST_MARGIN_HALF); gtk_widget_show (priv->scrolledwindow); @@ -140,6 +142,11 @@ modest_signature_editor_dialog_init (ModestSignatureEditorDialog *self) gtk_widget_show (box); + + /* When this window is shown, hibernation should not be possible, + * because there is no sensible way to save the state: */ + modest_window_mgr_prevent_hibernation_while_window_is_shown ( + modest_runtime_get_window_mgr (), GTK_WINDOW (self)); } ModestSignatureEditorDialog*