this commit applies another method of doing this function. The checks happen in the same layer, instead of two layers
this function gives more options to create customized dialogs with: - custom options - title - text - extra GtkWidgets inside dialog - align options horizontally(default) or vertically