Add cancel button to signature dialog
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 10 Dec 2009 14:50:50 +0000 (15:50 +0100)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 14 Dec 2009 14:26:32 +0000 (15:26 +0100)
src/widgets/modest-signature-editor-dialog.c

index 2dfd4bc..305504e 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);