Class: Gtk::AppChooserButton
- Inherits:
-
Object
- Object
- Gtk::AppChooserButton
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#active_custom_item=(name) ⇒ nil
Selects a custom item previously added with gtk_app_chooser_button_append_custom_item().
-
#append_custom_item(name, label, icon) ⇒ nil
Appends a custom item to the list of applications that is shown in the popup; the item name must be unique per-widget.
-
#append_separator ⇒ nil
Appends a separator to the list of applications that is shown in the popup.
-
#heading ⇒ String
The text to show at the top of the dialog that can be opened from the button.
-
#heading=(heading) ⇒ String
The text to show at the top of the dialog that can be opened from the button.
-
#new(content_type) ⇒ Gtk::Widget
Creates a new Gtk::AppChooserButton for applications that can handle content of the given type.
-
#show_default_item ⇒ TrueClass
Returns the current value of the Gtk::AppChooserButton:show-default-item property.
-
#show_default_item=(show_default_item) ⇒ TrueClass
The Gtk::AppChooserButton:show-default-item property determines whether the dropdown menu should show the default application on top for the provided content type.
-
#show_default_item? ⇒ TrueClass
The Gtk::AppChooserButton:show-default-item property determines whether the dropdown menu should show the default application on top for the provided content type.
-
#show_dialog_item ⇒ TrueClass
Returns the current value of the Gtk::AppChooserButton:show-dialog-item property.
-
#show_dialog_item=(show_dialog_item) ⇒ TrueClass
The Gtk::AppChooserButton:show-dialog-item property determines whether the dropdown menu should show an item that triggers a Gtk::AppChooserDialog when clicked.
-
#show_dialog_item? ⇒ TrueClass
The Gtk::AppChooserButton:show-dialog-item property determines whether the dropdown menu should show an item that triggers a Gtk::AppChooserDialog when clicked.
Instance Method Details
#active_custom_item=(name) ⇒ nil
Selects a custom item previously added with gtk_app_chooser_button_append_custom_item().
Use gtk_app_chooser_refresh() to bring the selection to its initial state.
#append_custom_item(name, label, icon) ⇒ nil
Appends a custom item to the list of applications that is shown in the popup; the item name must be unique per-widget. Clients can use the provided name as a detail for the Gtk::AppChooserButton::custom-item-activated signal, to add a callback for the activation of a particular custom item in the list. See also gtk_app_chooser_button_append_separator().
#append_separator ⇒ nil
Appends a separator to the list of applications that is shown in the popup.
#heading ⇒ String
The text to show at the top of the dialog that can be opened from the button. The string may contain Pango markup.
#heading=(heading) ⇒ String
The text to show at the top of the dialog that can be opened from the button. The string may contain Pango markup.
#new(content_type) ⇒ Gtk::Widget
Creates a new Gtk::AppChooserButton for applications that can handle content of the given type.
#show_default_item ⇒ TrueClass
Returns the current value of the Gtk::AppChooserButton:show-default-item property.
#show_default_item=(show_default_item) ⇒ TrueClass
The Gtk::AppChooserButton:show-default-item property determines whether the dropdown menu should show the default application on top for the provided content type.
#show_default_item? ⇒ TrueClass
The Gtk::AppChooserButton:show-default-item property determines whether the dropdown menu should show the default application on top for the provided content type.
#show_dialog_item ⇒ TrueClass
Returns the current value of the Gtk::AppChooserButton:show-dialog-item property.
#show_dialog_item=(show_dialog_item) ⇒ TrueClass
The Gtk::AppChooserButton:show-dialog-item property determines whether the dropdown menu should show an item that triggers a Gtk::AppChooserDialog when clicked.
#show_dialog_item? ⇒ TrueClass
The Gtk::AppChooserButton:show-dialog-item property determines whether the dropdown menu should show an item that triggers a Gtk::AppChooserDialog when clicked.