Class: Gtk::AppChooserDialog

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#gfileGio::File

The GFile used by the Gtk::AppChooserDialog. The dialog’s Gtk::AppChooserWidget content type will be guessed from the file, if present.

Returns:

#gfile=(gfile) ⇒ Gio::File

The GFile used by the Gtk::AppChooserDialog. The dialog’s Gtk::AppChooserWidget content type will be guessed from the file, if present.

Parameters:

Returns:

#headingString

The text to show at the top of the dialog. The string may contain Pango markup.

Returns:

  • (String)

    heading

#heading=(heading) ⇒ String

The text to show at the top of the dialog. The string may contain Pango markup.

Parameters:

  • heading (String)

Returns:

  • (String)

    heading

  • (String)

    heading

#new(parent, flags, file) ⇒ Gtk::Widget

Creates a new Gtk::AppChooserDialog for the provided #GFile, to allow the user to select an application for it.

Parameters:

Returns:

  • (Gtk::Widget)

    a newly created Gtk::AppChooserDialog

#new_for_content_type(parent, flags, content_type) ⇒ Gtk::Widget

Creates a new Gtk::AppChooserDialog for the provided content type, to allow the user to select an application for it.

Parameters:

  • parent (Gtk::Window)

    a Gtk::Window, or nil

  • flags (Gtk::DialogFlags)

    flags for this dialog

  • content_type (String)

    a content type string

Returns:

  • (Gtk::Widget)

    a newly created Gtk::AppChooserDialog

#widgetGtk::Widget

Returns the Gtk::AppChooserWidget of this dialog.

Returns: