GtkAppChooserWidget

GtkAppChooserWidget — Application chooser widget that can be embedded in other widgets

Synopsis

#include <gtk/gtk.h>

                    GtkAppChooserWidget;
GtkWidget *         gtk_app_chooser_widget_new          (const gchar *content_type);
void                gtk_app_chooser_widget_set_show_default
                                                        (GtkAppChooserWidget *self,
                                                         gboolean setting);
gboolean            gtk_app_chooser_widget_get_show_default
                                                        (GtkAppChooserWidget *self);
void                gtk_app_chooser_widget_set_show_recommended
                                                        (GtkAppChooserWidget *self,
                                                         gboolean setting);
gboolean            gtk_app_chooser_widget_get_show_recommended
                                                        (GtkAppChooserWidget *self);
void                gtk_app_chooser_widget_set_show_fallback
                                                        (GtkAppChooserWidget *self,
                                                         gboolean setting);
gboolean            gtk_app_chooser_widget_get_show_fallback
                                                        (GtkAppChooserWidget *self);
void                gtk_app_chooser_widget_set_show_other
                                                        (GtkAppChooserWidget *self,
                                                         gboolean setting);
gboolean            gtk_app_chooser_widget_get_show_other
                                                        (GtkAppChooserWidget *self);
void                gtk_app_chooser_widget_set_show_all (GtkAppChooserWidget *self,
                                                         gboolean setting);
gboolean            gtk_app_chooser_widget_get_show_all (GtkAppChooserWidget *self);
void                gtk_app_chooser_widget_set_default_text
                                                        (GtkAppChooserWidget *self,
                                                         const gchar *text);
const gchar *       gtk_app_chooser_widget_get_default_text
                                                        (GtkAppChooserWidget *self);

Description

GtkAppChooserWidget is a widget for selecting applications. It is the main building block for GtkAppChooserDialog. Most applications only need to use the latter; but you can use this widget as part of a larger widget if you have special needs.

Details

GtkAppChooserWidget

typedef struct {
  GtkBox parent;
} GtkAppChooserWidget;


gtk_app_chooser_widget_new ()

GtkWidget *         gtk_app_chooser_widget_new          (const gchar *content_type);

Creates a new GtkAppChooserWidget for applications that can handle content of the given type.

content_type :

the content type to show applications for

Returns :

a newly created GtkAppChooserWidget

Since 3.0


gtk_app_chooser_widget_set_show_default ()

void                gtk_app_chooser_widget_set_show_default
                                                        (GtkAppChooserWidget *self,
                                                         gboolean setting);

Sets whether the app chooser should show the default handler for the content type in a separate section.

self :

a GtkAppChooserWidget

setting :

the new value for "show-default"

Since 3.0


gtk_app_chooser_widget_get_show_default ()

gboolean            gtk_app_chooser_widget_get_show_default
                                                        (GtkAppChooserWidget *self);

Returns the current value of the "show-default" property.

self :

a GtkAppChooserWidget

Returns :

the value of "show-default"

Since 3.0


gtk_app_chooser_widget_set_show_recommended ()

void                gtk_app_chooser_widget_set_show_recommended
                                                        (GtkAppChooserWidget *self,
                                                         gboolean setting);

Sets whether the app chooser should show recommended applications for the content type in a separate section.

self :

a GtkAppChooserWidget

setting :

the new value for "show-recommended"

Since 3.0


gtk_app_chooser_widget_get_show_recommended ()

gboolean            gtk_app_chooser_widget_get_show_recommended
                                                        (GtkAppChooserWidget *self);

Returns the current value of the "show-recommended" property.

self :

a GtkAppChooserWidget

Returns :

the value of "show-recommended"

Since 3.0


gtk_app_chooser_widget_set_show_fallback ()

void                gtk_app_chooser_widget_set_show_fallback
                                                        (GtkAppChooserWidget *self,
                                                         gboolean setting);

Sets whether the app chooser should show related applications for the content type in a separate section.

self :

a GtkAppChooserWidget

setting :

the new value for "show-fallback"

Since 3.0


gtk_app_chooser_widget_get_show_fallback ()

gboolean            gtk_app_chooser_widget_get_show_fallback
                                                        (GtkAppChooserWidget *self);

Returns the current value of the "show-fallback" property.

self :

a GtkAppChooserWidget

Returns :

the value of "show-fallback"

Since 3.0


gtk_app_chooser_widget_set_show_other ()

void                gtk_app_chooser_widget_set_show_other
                                                        (GtkAppChooserWidget *self,
                                                         gboolean setting);

Sets whether the app chooser should show applications which are unrelated to the content type.

self :

a GtkAppChooserWidget

setting :

the new value for "show-other"

Since 3.0


gtk_app_chooser_widget_get_show_other ()

gboolean            gtk_app_chooser_widget_get_show_other
                                                        (GtkAppChooserWidget *self);

Returns the current value of the "show-other" property.

self :

a GtkAppChooserWidget

Returns :

the value of "show-other"

Since 3.0


gtk_app_chooser_widget_set_show_all ()

void                gtk_app_chooser_widget_set_show_all (GtkAppChooserWidget *self,
                                                         gboolean setting);

Sets whether the app chooser should show all applications in a flat list.

self :

a GtkAppChooserWidget

setting :

the new value for "show-all"

Since 3.0


gtk_app_chooser_widget_get_show_all ()

gboolean            gtk_app_chooser_widget_get_show_all (GtkAppChooserWidget *self);

Returns the current value of the "show-all" property.

self :

a GtkAppChooserWidget

Returns :

the value of "show-all"

Since 3.0


gtk_app_chooser_widget_set_default_text ()

void                gtk_app_chooser_widget_set_default_text
                                                        (GtkAppChooserWidget *self,
                                                         const gchar *text);

Sets the text that is shown if there are not applications that can handle the content type.

self :

a GtkAppChooserWidget

text :

the new value for "default-text"

gtk_app_chooser_widget_get_default_text ()

const gchar *       gtk_app_chooser_widget_get_default_text
                                                        (GtkAppChooserWidget *self);

Returns the text that is shown if there are not applications that can handle the content type.

self :

a GtkAppChooserWidget

Returns :

the value of "default-text"

Since 3.0