| Top |
GObject
╰── GInitiallyUnowned
╰── CtkWidget
╰── CtkContainer
╰── CtkBin
╰── CtkWindow
╰── CtkDialog
╰── CtkAppChooserDialog
CtkAppChooserDialog implements AtkImplementorIface, CtkBuildable and CtkAppChooser.
CtkAppChooserDialog shows a CtkAppChooserWidget inside a CtkDialog.
Note that CtkAppChooserDialog does not have any interesting methods
of its own. Instead, you should get the embedded CtkAppChooserWidget
using ctk_app_chooser_dialog_get_widget() and call its methods if
the generic CtkAppChooser interface is not sufficient for your needs.
To set the heading that is shown above the CtkAppChooserWidget,
use ctk_app_chooser_dialog_set_heading().
CtkWidget * ctk_app_chooser_dialog_new (CtkWindow *parent,CtkDialogFlags flags,GFile *file);
Creates a new CtkAppChooserDialog for the provided GFile, to allow the user to select an application for it.
Since: 3.0
CtkWidget * ctk_app_chooser_dialog_new_for_content_type (CtkWindow *parent,CtkDialogFlags flags,const gchar *content_type);
Creates a new CtkAppChooserDialog for the provided content type, to allow the user to select an application for it.
parent |
a CtkWindow, or |
[allow-none] |
flags |
flags for this dialog |
|
content_type |
a content type string |
Since: 3.0
CtkWidget *
ctk_app_chooser_dialog_get_widget (CtkAppChooserDialog *self);
Returns the CtkAppChooserWidget of this dialog.
Since: 3.0
void ctk_app_chooser_dialog_set_heading (CtkAppChooserDialog *self,const gchar *heading);
Sets the text to display at the top of the dialog. If the heading is not set, the dialog displays a default text.
const gchar *
ctk_app_chooser_dialog_get_heading (CtkAppChooserDialog *self);
Returns the text to display at the top of the dialog.
“gfile” property “gfile” GFile *
The GFile used by the CtkAppChooserDialog. The dialog's CtkAppChooserWidget content type will be guessed from the file, if present.
Owner: CtkAppChooserDialog
Flags: Read / Write / Construct Only