Modified webpage: now tinymail repository is in gitorious.
[modest] / src / widgets / modest-signature-editor-dialog.c
index 2dfd4bc..2ad9c01 100644 (file)
@@ -173,6 +173,10 @@ modest_signature_editor_dialog_init (ModestSignatureEditorDialog *self)
 
        g_signal_connect (G_OBJECT (buffer), "end-user-action",
                          G_CALLBACK (text_buffer_end_user_action), self);
+
+#ifndef MODEST_TOOLKIT_HILDON2
+       gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+#endif
        
        /* Add the buttons: */
        gtk_dialog_add_button (GTK_DIALOG (self), _HL_SAVE, GTK_RESPONSE_OK);
@@ -190,7 +194,13 @@ modest_signature_editor_dialog_init (ModestSignatureEditorDialog *self)
        gtk_widget_show (priv->scrollable);             
 
        gtk_widget_show (box);
-       gtk_widget_set_size_request (GTK_WIDGET (self), -1, MODEST_DIALOG_WINDOW_MAX_HEIGHT);
+       gtk_widget_set_size_request (GTK_WIDGET (self), 
+#ifdef MODEST_TOOLKIT_HILDON2
+                                    -1,
+#else
+                                    MODEST_DIALOG_WINDOW_MAX_WIDTH,
+#endif
+                                    MODEST_DIALOG_WINDOW_MAX_HEIGHT);
        
        /* When this window is shown, hibernation should not be possible, 
         * because there is no sensible way to save the state: */