class Gtk::Dialog

Overrides for GtkDialog

Public Class Methods

new_with_buttons(*args) click to toggle source
# 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

Public Instance Methods

initialize_with_buttons(title, parent, flags, buttons) click to toggle source
# 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