glade_preview_window_screenshot() fixed segfault when saving to png file.
Bug #741165 "Previewer crashes when taking PNG screenshot"