Object
Overrides for GtkDialog
# File lib/gir_ffi-gtk/dialog.rb, line 16 def self.new_with_buttons(*args) obj = allocate obj.send :initialize_with_buttons, *args obj end
# File lib/gir_ffi-gtk/dialog.rb, line 22 def initialize_with_buttons(title, parent, flags, buttons) button_params = buttons.flat_map do |button_text, button_response| [:string, button_text, :int, Gtk::ResponseType.to_int(button_response)] end ptr = Gtk::Lib.gtk_dialog_new_with_buttons(title, parent, flags, *button_params, :string, nil) store_pointer(ptr) end