Sha256: b79511c6b8927828004ab2605d6c3a65b5016ef6ba7bc2822d5c965ade2b7e48
Contents?: true
Size: 1.02 KB
Versions: 101
Compression:
Stored size: 1.02 KB
Contents
Gtk.events << ["Dialog", "response", org.gnome.gtk.Dialog::Response, :onResponse, nil] class Gtk::Dialog RESPONSE_OK = org.gnome.gtk.ResponseType::OK RESPONSE_YES = org.gnome.gtk.ResponseType::YES RESPONSE_NO = org.gnome.gtk.ResponseType::NO RESPONSE_CANCEL = org.gnome.gtk.ResponseType::CANCEL RESPONSE_CLOSE = org.gnome.gtk.ResponseType::CLOSE RESPONSE_DELETE_EVENT = org.gnome.gtk.ResponseType::DELETE_EVENT MODAL = true def initialize(title = nil, win_parent = nil, modal = nil, *buttons) if Gtk.takeob @ob = Gtk.takeob Gtk.takeob = nil else @ob = Gtk.evalob("org.gnome.gtk.Dialog").new(title, win_parent, modal) buttons.each do |button| self.add_button(button[0], button[1]) end self.signal_connect("response") do self.destroy end end end def vbox return self end def has_separator=(newval) # FIXME: No way to do this in Java-GTK? end def destroy if @ob @ob.hide end @ob = nil end end
Version data entries
101 entries across 101 versions & 1 rubygems