class Metasm::Gui::MessageBox

Public Class Methods

new(owner, str, opts={}) click to toggle source
Calls superclass method
# File metasm/gui/gtk.rb, line 550
def initialize(owner, str, opts={})
        owner = nil if owner and (not owner.kind_of? Gtk::Window or owner.destroyed?)
        owner ||= Gtk::Window.toplevels.first
        opts = {:title => opts} if opts.kind_of? String
        super(owner, Gtk::Dialog::DESTROY_WITH_PARENT, INFO, BUTTONS_CLOSE, str)
        self.title = opts[:title] if opts[:title]
        signal_connect('response') { destroy }
        show_all
        present               # bring the window to the foreground & set focus
end