[663:14] static extends: object
Generated metadata helpers for AppChooserButton class surfaces.
properties ()
Returns property metadata for
AppChooserButton.
A list.signals ()
Returns signal metadata for
AppChooserButton.
A list.[593:7] extends: object
Generated low-level callback wrapper for GIR callback
custom-item-activated.
AppChooserButtonCustomitemactivatedCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, item_name, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[29:7] extends: object
The GtkAppChooserButton lets the user select an application.
GtkAppChooserButton selects the first application
in its list, which will either be the most-recently used application or, if
[property@Gtk.AppChooserButton:show-default-item] is %TRUE, the default
application. The list of applications shown in a GtkAppChooserButton
includes the recommended applications for the given content type. When
[property@Gtk.AppChooserButton:show-default-item] is set, the default
application is also included. To let the user chooser other applications, you
can set the [property@Gtk.AppChooserButton:show-dialog-item] property, which
allows to open a full [class@Gtk.AppChooserDialog]. It is possible to add
custom items to the list, using
[method@Gtk.AppChooserButton.append_custom_item]. These items cause the
[signal@Gtk.AppChooserButton::custom-item-activated] signal to be emitted
when they are selected. To track changes in the selected application, use the
[signal@Gtk.AppChooserButton::changed] signal. ## CSS nodes
GtkAppChooserButton has a single CSS node with the name “appchooserbutton”.
AppChooserButton (content_type = null)
Creates a new
GtkAppChooserButtonfor applications that can handle content of the given type.
content_type is the content type to show applications for.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
Widget.
A Widget object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asAppChooser ()
Wraps this handle as
AppChooser.
A AppChooser object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnActivate (callback Fn, UserData = null)
Emitted to when the button is activated. The
::activatesignal onGtkAppChooserButtonis an action signal and emitting it causes the button to pop up its dialog.
Fn is the Aussom callback.Fn is called with (AppChooserButton Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnChanged (callback Fn, UserData = null)
Emitted when the active application changes.
Fn is the Aussom callback.Fn is called with (AppChooserButton Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnCustomitemactivated (callback Fn, UserData = null)
Emitted when a custom item is activated. Use [method@Gtk.AppChooserButton.append_custom_item], to add custom items.
Fn is the Aussom callback.Fn is called with (AppChooserButton Self, string Item_name).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setHeading (string Value)
The text to show at the top of the dialog that can be opened from the button. The string may contain Pango markup.
Value is the new property value.None.setModal (bool Value)
Whether the app chooser dialog should be modal.
Value is the new property value.None.setShowdefaultitem (bool Value)
Determines whether the dropdown menu shows the default application on top for the provided content type.
Value is the new property value.None.setShowdialogitem (bool Value)
Determines whether the dropdown menu shows an item to open a
GtkAppChooserDialog.
Value is the new property value.None.append_custom_item (string name, string label, object icon)
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 [signal@Gtk.AppChooserButton::custom-item-activated] signal, to add a callback for the activation of a particular custom item in the list. See also [method@Gtk.AppChooserButton.append_separator].
name is the name of the custom item.label is the label for the custom item.icon is the icon for the custom item.None.append_separator ()
Appends a separator to the list of applications that is shown in the popup.
None.get_heading ()
Returns the text to display at the top of the dialog.
get_modal ()
Gets whether the dialog is modal.
get_show_default_item ()
Returns whether the dropdown menu should show the default application at the top.
get_show_dialog_item ()
Returns whether the dropdown menu shows an item for a
GtkAppChooserDialog.
set_active_custom_item (string name)
Selects a custom item. See [method@Gtk.AppChooserButton.append_custom_item]. Use [method@Gtk.AppChooser.refresh] to bring the selection to its initial state.
name is the name of the custom item.None.set_heading (string heading)
Sets the text to display at the top of the dialog. If the heading is not set, the dialog displays a default text.
heading is a string containing Pango markup.None.set_modal (bool modal)
Sets whether the dialog should be modal.
modal is %TRUE to make the dialog modal.None.set_show_default_item (bool setting)
Sets whether the dropdown menu of this button should show the default application for the given content type at top.
setting is the new value for [property@Gtk.AppChooserButton:show-default-item].None.set_show_dialog_item (bool setting)
Sets whether the dropdown menu of this button should show an entry to trigger a
GtkAppChooserDialog.
setting is the new value for [property@Gtk.AppChooserButton:show-dialog-item].None.[452:7] extends: object
Generated low-level callback wrapper for GIR callback activate.
AppChooserButtonActivateCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[522:7] extends: object
Generated low-level callback wrapper for GIR callback changed.
AppChooserButtonChangedCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.