diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2018-06-13 14:01:44 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2018-06-28 14:58:24 +0200 |
commit | 94c6fc6661141e5b195160764315f7e52e9c43e1 (patch) | |
tree | fd98cf489d16c948df479a910f4df91fee773176 /lib/ephy-web-app-utils.h | |
parent | f49fe289c91cfd8d79ca85e3b9e00f00a8e2ba27 (diff) | |
download | epiphany-94c6fc6661141e5b195160764315f7e52e9c43e1.tar.gz |
web-apps: add a web application section to preferences dialog
It allows to update the application name, URL and icon. It also adds
the additional URLs setting, to make it possible to add URLs for pages
that should also be opened inside the web application.
Diffstat (limited to 'lib/ephy-web-app-utils.h')
-rw-r--r-- | lib/ephy-web-app-utils.h | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/lib/ephy-web-app-utils.h b/lib/ephy-web-app-utils.h index 5e77a99ca..c13d553b7 100644 --- a/lib/ephy-web-app-utils.h +++ b/lib/ephy-web-app-utils.h @@ -38,26 +38,34 @@ typedef struct { #define EPHY_WEB_APP_PREFIX "app-" #define EPHY_WEB_APP_ICON_NAME "app-icon.png" -char *ephy_web_application_get_app_id_from_name (const char *name); +char *ephy_web_application_get_app_id_from_name (const char *name); -char *ephy_web_application_create (const char *id, const char *address, const char *name, GdkPixbuf *icon); +char *ephy_web_application_create (const char *id, const char *address, const char *name, GdkPixbuf *icon); -char *ephy_web_application_ensure_for_app_info (GAppInfo *app_info); +char *ephy_web_application_ensure_for_app_info (GAppInfo *app_info); -gboolean ephy_web_application_delete (const char *id); +gboolean ephy_web_application_delete (const char *id); -void ephy_web_application_setup_from_profile_directory (const char *profile_directory); +void ephy_web_application_setup_from_profile_directory (const char *profile_directory); -void ephy_web_application_setup_from_desktop_file (GDesktopAppInfo *desktop_info); +void ephy_web_application_setup_from_desktop_file (GDesktopAppInfo *desktop_info); -char *ephy_web_application_get_profile_directory (const char *id); +char *ephy_web_application_get_profile_directory (const char *id); -GList *ephy_web_application_get_application_list (void); +EphyWebApplication *ephy_web_application_for_profile_directory (const char *profile_dir); -void ephy_web_application_free_application_list (GList *list); +void ephy_web_application_free (EphyWebApplication *app); -gboolean ephy_web_application_exists (const char *id); +gboolean ephy_web_application_exists (const char *id); -void ephy_web_application_initialize_settings (const char *profile_directory); +GList *ephy_web_application_get_application_list (void); + +void ephy_web_application_free_application_list (GList *list); + +void ephy_web_application_initialize_settings (const char *profile_directory); + +gboolean ephy_web_application_is_uri_allowed (const char* uri); + +gboolean ephy_web_application_save (EphyWebApplication *app); G_END_DECLS |