GtkAppChooserDialog
GtkAppChooserDialog — An application chooser dialog
|
 |
Includes
#include <gtk/gtk.h>
Functions
gtk_app_chooser_dialog_new_for_content_type ()
GtkWidget *
gtk_app_chooser_dialog_new_for_content_type
(GtkWindow *parent,
GtkDialogFlags flags,
const gchar *content_type);
Creates a new GtkAppChooserDialog for the provided content type,
to allow the user to select an application for it.
Since: 3.0
gtk_app_chooser_dialog_set_heading ()
void
gtk_app_chooser_dialog_set_heading (GtkAppChooserDialog *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.
gtk_app_chooser_dialog_get_heading ()
const gchar *
gtk_app_chooser_dialog_get_heading (GtkAppChooserDialog *self);
Returns the text to display at the top of the dialog.
Returns
the text to display at the top of the dialog, or NULL, in which
case a default text is displayed.
[nullable]
Types and Values
struct GtkAppChooserDialog
struct GtkAppChooserDialog;
struct GtkAppChooserDialogClass
struct GtkAppChooserDialogClass {
GtkDialogClass parent_class;
};
Property Details
The “gfile” property
“gfile” GFile *
The GFile used by the GtkAppChooserDialog.
The dialog's GtkAppChooserWidget content type will be guessed from the
file, if present.
Owner: GtkAppChooserDialog
Flags: Read / Write / Construct Only
The “heading” property
“heading” gchar *
The text to show at the top of the dialog.
The string may contain Pango markup.
Owner: GtkAppChooserDialog
Flags: Read / Write
Default value: NULL