Class: Gtk::FileChooserNative

Inherits:
NativeDialog show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from NativeDialog

#destroy, #hide, #modal, #modal=, #modal?, #show, #title, #title=, #transient_for, #transient_for=, #visible, #visible=, #visible?

Constructor Details

#initialize(title, parent, action, accept_label, cancel_label) ⇒ Gtk::FileChooserNative

Creates a new GtkFileChooserNative.

Parameters:

  • title (String)

    Title of the native

  • parent (Gtk::Window)

    Transient parent of the native

  • action (Gtk::FileChooserAction)

    Open or save mode for the dialog

  • accept_label (String)

    text to go in the accept button, or nil for the default

  • cancel_label (String)

    text to go in the cancel button, or nil for the default

Instance Method Details

#accept_labelString

The text used for the label on the accept button in the dialog, or nil to use the default text.

Returns:

  • (String)

    accept-label

#accept_label=(accept_label) ⇒ String

The text used for the label on the accept button in the dialog, or nil to use the default text.

Parameters:

  • accept_label (String)

Returns:

  • (String)

    accept-label

  • (String)

    accept-label

#cancel_labelString

The text used for the label on the cancel button in the dialog, or nil to use the default text.

Returns:

  • (String)

    cancel-label

#cancel_label=(cancel_label) ⇒ String

The text used for the label on the cancel button in the dialog, or nil to use the default text.

Parameters:

  • cancel_label (String)

Returns:

  • (String)

    cancel-label

  • (String)

    cancel-label