# File lib/json/editor.rb, line 69 69: def Editor.question_dialog(window, text) 70: dialog = MessageDialog.new(window, Dialog::MODAL, 71: MessageDialog::QUESTION, 72: MessageDialog::BUTTONS_YES_NO, text) 73: dialog.show_all 74: dialog.run do |response| 75: return Gtk::Dialog::RESPONSE_YES === response 76: end 77: ensure 78: dialog.destroy if dialog 79: end