diff options
author | Matthias Clasen <mclasen@redhat.com> | 2008-09-26 19:57:36 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-09-26 19:57:36 +0000 |
commit | 764e187fd9f1f54a2c622fce2b3e1c0aa4fafdf0 (patch) | |
tree | fac971ce0d4105d097d8834f15bb2eeddb194d78 /gio/gappinfo.h | |
parent | 7f4864e58d4ee438a83cbf15f76e7d7aa171016c (diff) |
Bug 545350 – GAppInfo deletion Bug 545351 – Reset associations for
2008-09-26 Matthias Clasen <mclasen@redhat.com>
Bug 545350 – GAppInfo deletion
Bug 545351 – Reset associations for content type
* gio.symbols:
* gappinfo.[hc]: New functions g_app_info_can_delete,
g_app_info_delete and g_app_info_reset_type_associations.
* gdesktopappinfo.c:
* gwin32appinfo.c: Implementations of these.
* tests/Makefile.am:
* tests/desktop-app-info.c: Tests for GAppInfo functionality.
svn path=/trunk/; revision=7554
Diffstat (limited to 'gio/gappinfo.h')
-rw-r--r-- | gio/gappinfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gio/gappinfo.h b/gio/gappinfo.h index 74464aa0d..14ac96a58 100644 --- a/gio/gappinfo.h +++ b/gio/gappinfo.h @@ -75,6 +75,8 @@ typedef struct _GAppLaunchContextPrivate GAppLaunchContextPrivate; * @add_supports_type: Adds to the #GAppInfo information about supported file types. * @can_remove_supports_type: Checks for support for removing supported file types from a #GAppInfo. * @remove_supports_type: Removes a supported application type from a #GAppInfo. + * @can_delete: Checks if a #GAppInfo can be deleted. Since 2.20 + * @do_delete: Deletes a #GAppInfo. Since 2.20 * * Application Information interface, for operating system portability. */ @@ -120,6 +122,8 @@ struct _GAppInfoIface gboolean (* remove_supports_type) (GAppInfo *appinfo, const char *content_type, GError **error); + gboolean (* can_delete) (GAppInfo *appinfo); + gboolean (* do_delete) (GAppInfo *appinfo); }; GType g_app_info_get_type (void) G_GNUC_CONST; @@ -160,9 +164,12 @@ gboolean g_app_info_can_remove_supports_type (GAppInfo *appin gboolean g_app_info_remove_supports_type (GAppInfo *appinfo, const char *content_type, GError **error); +gboolean g_app_info_can_delete (GAppInfo *appinfo); +gboolean g_app_info_delete (GAppInfo *appinfo); GList * g_app_info_get_all (void); GList * g_app_info_get_all_for_type (const char *content_type); +void g_app_info_reset_type_associations (const char *content_type); GAppInfo *g_app_info_get_default_for_type (const char *content_type, gboolean must_support_uris); GAppInfo *g_app_info_get_default_for_uri_scheme (const char *uri_scheme); |