Class: Gtk::MessageDialog
- Inherits:
-
Object
- Object
- Gtk::MessageDialog
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/gtk3/deprecated.rb,
lib/gtk3/message-dialog.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ MessageDialog
constructor
A new instance of MessageDialog.
Constructor Details
#initialize(options = {}) ⇒ MessageDialog
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/gtk3/message-dialog.rb', line 19 def initialize(={}) parent = [:parent] flags = [:flags] || 0 type = [:type] || :info = [:buttons] || [:buttons_type] || :ok = [:message] initialize_general = GLib::Object.instance_method(:initialize).bind(self) initialize_general.call(:message_type => type, :buttons => ) Loader.reference_gobject(self, :sink => true) if self.use_markup = false self.text = end if parent self.transient_for = parent end if flags unless flags.is_a?(DialogFlags) flags = DialogFlags.new(flags) end self.modal = true if flags.modal? self.destroy_with_parent = true if flags.destroy_with_parent? end end |