aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2011-09-02 03:53:55 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2011-09-02 21:13:07 +0800
commit09bbf1441056fc858db9bca5452bd0ff8e83a1b1 (patch)
tree867528abd821067dda8a1dc0e788256cc4c6f4ed /embed/ephy-web-view.c
parent1d507b310ad8cad41055bedec416d27a04b6f06d (diff)
downloadgsoc2013-epiphany-09bbf1441056fc858db9bca5452bd0ff8e83a1b1.tar.gz
gsoc2013-epiphany-09bbf1441056fc858db9bca5452bd0ff8e83a1b1.tar.zst
gsoc2013-epiphany-09bbf1441056fc858db9bca5452bd0ff8e83a1b1.zip
Add ephy_web_application_get_profile_directory()
And factor out some code
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index ef87f193d..30127b86e 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3806,7 +3806,6 @@ create_cookie_jar_for_domain (EphyWebView *view, const char *directory)
char *
ephy_web_view_create_web_application (EphyWebView *view, const char *title, GdkPixbuf *icon)
{
- char *app_dir;
char *profile_dir = NULL;
char *toolbar_path = NULL;
char *desktop_file_path = NULL;
@@ -3816,9 +3815,7 @@ ephy_web_view_create_web_application (EphyWebView *view, const char *title, GdkP
/* If there's already a WebApp profile for the contents of this
* view, do nothing. TODO: create a method to check this and use it
* to ask the user if she wants to overwrite the existing WebApp. */
- app_dir = g_strconcat (EPHY_WEB_APP_PREFIX, title, NULL);
- profile_dir = g_build_filename (ephy_dot_dir (), app_dir, NULL);
- g_free (app_dir);
+ profile_dir = ephy_web_application_get_profile_directory (title);
if (g_file_test (profile_dir, G_FILE_TEST_IS_DIR))
goto out;