Class: Gtk::RecentChooserDialog

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gtk3/deprecated.rb,
lib/gtk3/recent-chooser-dialog.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ RecentChooserDialog

Returns a new instance of RecentChooserDialog.



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/gtk3/recent-chooser-dialog.rb', line 20

def initialize(options={})
  initialize_options = {
    :recent_manager => options[:recent_manager],
  }
  gobject_initialize = GLib::Object.instance_method(:initialize).bind(self)
  gobject_initialize.call(initialize_options)
  Loader.reference_gobject(self, :sink => true)

  title = options[:title]
  parent = options[:parent]
  buttons = options[:buttons]

  set_title(title) if title
  set_transient_for(parent) if parent

  add_buttons(*buttons) if buttons
end

Instance Method Details

#initialize_rawObject



19
# File 'lib/gtk3/recent-chooser-dialog.rb', line 19

alias_method :initialize_raw, :initialize