def initialize(options={})
parent = options[:parent]
flags = options[:flags] || 0
type = options[:type] || :info
buttons = options[:buttons] || options[:buttons_type] || :ok
message = options[:message]
initialize_general = GLib::Object.instance_method(:initialize).bind(self)
initialize_general.call(:message_type => type,
:buttons => buttons)
Loader.reference_gobject(self, :sink => true)
if message
self.use_markup = false
self.text = message
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