* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with the Gnome Library; see the file COPYING.LIB. If not,
- * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* Authors: Cosimo Cecchi <ccecchi@redhat.com>
*/
+/**
+ * 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"
#include "gtkappchooser.h"
{
GParamSpec *pspec;
+ /**
+ * GtkAppChooser:content-type:
+ *
+ * The content type of the #GtkAppChooser object.
+ *
+ * See <link linkend="gio-GContentType"><type>GContentType</type></link>
+ * for more information about content types.
+ */
pspec = g_param_spec_string ("content-type",
P_("Content type"),
P_("The content type used by the open with object"),
g_object_interface_install_property (iface, pspec);
}
+
+/**
+ * gtk_app_chooser_get_content_type:
+ * @self: a #GtkAppChooser
+ *
+ * Returns the current value of the #GtkAppChooser:content-type property.
+ *
+ * Returns: the content type of @self. Free with g_free()
+ *
+ * Since: 3.0
+ */
gchar *
gtk_app_chooser_get_content_type (GtkAppChooser *self)
{
* Returns the currently selected application.
*
* Returns: (transfer full): a #GAppInfo for the currently selected
- * application, or %NULL if none is selected. Free with g_object_unref().
+ * application, or %NULL if none is selected. Free with g_object_unref()
*
* Since: 3.0
*/
* gtk_app_chooser_refresh:
* @self: a #GtkAppChooser
*
- * Reload the list of applications.
+ * Reloads the list of applications.
*
* Since: 3.0
*/