summaryrefslogtreecommitdiff
path: root/gtk/gtkappchooser.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-09-10 01:40:05 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-09-10 01:42:07 -0400
commitf9379adca22fe0399a3fe4b43370e0a70a4edfb5 (patch)
tree5fb8ce2000f7781fa33adfeec9d7b363d8273856 /gtk/gtkappchooser.c
parente97ed4374f658eb2d3f8924c784202b1fe9519a5 (diff)
downloadgtk+-f9379adca22fe0399a3fe4b43370e0a70a4edfb5.tar.gz
GtkAppChooserButton: Add a way to include the default app
This is necessary to use an app chooser button for selecting default apps in the control center. Also, beef up the docs for this widget family. https://bugzilla.gnome.org/show_bug.cgi?id=642706
Diffstat (limited to 'gtk/gtkappchooser.c')
-rw-r--r--gtk/gtkappchooser.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk/gtkappchooser.c b/gtk/gtkappchooser.c
index a517002cc6..e3f8a98821 100644
--- a/gtk/gtkappchooser.c
+++ b/gtk/gtkappchooser.c
@@ -25,11 +25,25 @@
* SECTION:gtkappchooser
* @Title: GtkAppChooser
* @Short_description: Interface implemented by widgets for choosing an application
+ * @See_also: #GAppInfo
*
* #GtkAppChooser is an interface that can be implemented by widgets which
* allow the user to choose an application (typically for the purpose of
* opening a file). The main objects that implement this interface are
* #GtkAppChooserWidget, #GtkAppChooserDialog and #GtkAppChooserButton.
+ *
+ * Applications are represented by GIO #GAppInfo objects here.
+ * GIO has a concept of recommended and fallback applications for a
+ * given content type. Recommended applications are those that claim
+ * to handle the content type itself, while fallback also includes
+ * applications that handle a more generic content type. GIO also
+ * knows the default and last-used application for a given content
+ * type. The #GtkAppChooserWidget provides detailed control over
+ * whether the shown list of applications should include default,
+ * recommended or fallback applications.
+ *
+ * To obtain the application that has been selected in a #GtkAppChooser,
+ * use gtk_app_chooser_get_app_info().
*/
#include "config.h"