GtkAppChooserDialog

GtkAppChooserDialog

Synopsis

#include <gtk/gtk.h>

struct              GtkAppChooserDialog;
GtkWidget *         gtk_app_chooser_dialog_new          (GtkWindow *parent,
                                                         GtkDialogFlags flags,
                                                         GFile *file);
GtkWidget *         gtk_app_chooser_dialog_new_for_content_type
                                                        (GtkWindow *parent,
                                                         GtkDialogFlags flags,
                                                         const gchar *content_type);
GtkWidget *         gtk_app_chooser_dialog_get_widget   (GtkAppChooserDialog *self);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkWindow
                                 +----GtkDialog
                                       +----GtkAppChooserDialog

Implemented Interfaces

GtkAppChooserDialog implements AtkImplementorIface, GtkBuildable and GtkAppChooser.

Properties

  "gfile"                    GFile*                : Read / Write / Construct Only

Description

Details

struct GtkAppChooserDialog

struct GtkAppChooserDialog;


gtk_app_chooser_dialog_new ()

GtkWidget *         gtk_app_chooser_dialog_new          (GtkWindow *parent,
                                                         GtkDialogFlags flags,
                                                         GFile *file);

Creates a new GtkAppChooserDialog for the provided GFile, to allow the user to select an application for it.

parent :

a GtkWindow, or NULL. [allow-none]

flags :

flags for this dialog

file :

a GFile

Returns :

a newly created GtkAppChooserDialog

Since 3.0


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.

parent :

a GtkWindow, or NULL. [allow-none]

flags :

flags for this dialog

content_type :

a content type string

Returns :

a newly created GtkAppChooserDialog

Since 3.0


gtk_app_chooser_dialog_get_widget ()

GtkWidget *         gtk_app_chooser_dialog_get_widget   (GtkAppChooserDialog *self);

Returns the GtkAppChooserWidget of this dialog.

self :

a GtkAppChooserDialog

Returns :

the GtkAppChooserWidget of self. [transfer none]

Since 3.0

Property Details

The "gfile" property

  "gfile"                    GFile*                : Read / Write / Construct Only

The GFile used by the GtkAppChooserDialog. The dialog's GtkAppChooserWidget content type will be guessed from the file, if present.