Class: Zerenity::Question

Inherits:
MessageDialog show all
Defined in:
lib/zerenity/question.rb

Overview

:nodoc:

Class Method Summary collapse

Methods inherited from MessageDialog

run

Methods inherited from Base

retrieve_selection, run

Class Method Details

.build(dialog, options) ⇒ Object



21
22
23
24
# File 'lib/zerenity/question.rb', line 21

def self.build(dialog,options)
  super(dialog,options)
  options[:cancel_button] = dialog.add_button(Gtk::Stock::CANCEL,Gtk::Dialog::RESPONSE_CANCEL)
end

.check(options) ⇒ Object



16
17
18
19
# File 'lib/zerenity/question.rb', line 16

def self.check(options)
  super(options)
  options[:type] = Gtk::MessageDialog::QUESTION
end