Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_2_180) is shown here.
question_dialog(window, text)
public
Opens a yes/no question dialog on top of window showing the error
message text. If yes was answered true is returned,
otherwise false.
# File ext/json/lib/json/editor.rb, line 69
def Editor.question_dialog(window, text)
dialog = MessageDialog.new(window, Dialog::MODAL,
MessageDialog::QUESTION,
MessageDialog::BUTTONS_YES_NO, text)
dialog.show_all
dialog.run do |response|
return Gtk::Dialog::RESPONSE_YES === response
end
ensure
dialog.destroy if dialog
end