class Gtk3App::YesNoDialog
Public Class Methods
new(...)
click to toggle source
Calls superclass method
# File lib/gtk3app/widgets.rb, line 42 def initialize(...) super(...) add_button '_No', Gtk::ResponseType::CANCEL add_button '_Yes', Gtk::ResponseType::OK end
Public Instance Methods
add_label(text)
click to toggle source
# File lib/gtk3app/widgets.rb, line 48 def add_label(text) Such::Label.new(child).text = text end
ok?()
click to toggle source
# File lib/gtk3app/widgets.rb, line 52 def ok? show_all response = run destroy response == Gtk::ResponseType::OK end