aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-02-03 14:44:43 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-02-09 04:01:06 +0800
commitb02b30cddb187cdc65623bef1660d80341c416f9 (patch)
tree685b02bc554e87100a07d3e9d08e7e353521703c
parentdb10ae9888b32a8a1bcccdaba36cec15375b67be (diff)
downloadgsoc2013-epiphany-b02b30cddb187cdc65623bef1660d80341c416f9.tar
gsoc2013-epiphany-b02b30cddb187cdc65623bef1660d80341c416f9.tar.gz
gsoc2013-epiphany-b02b30cddb187cdc65623bef1660d80341c416f9.tar.bz2
gsoc2013-epiphany-b02b30cddb187cdc65623bef1660d80341c416f9.tar.lz
gsoc2013-epiphany-b02b30cddb187cdc65623bef1660d80341c416f9.tar.xz
gsoc2013-epiphany-b02b30cddb187cdc65623bef1660d80341c416f9.tar.zst
gsoc2013-epiphany-b02b30cddb187cdc65623bef1660d80341c416f9.zip
ephy-web-app-utils: add EPHY_WEB_APP_ICON define
Stands for "app-icon.png", which is of interest outside ephy-web-app-utils.c https://bugzilla.gnome.org/show_bug.cgi?id=669182
-rw-r--r--embed/ephy-web-app-utils.c4
-rw-r--r--embed/ephy-web-app-utils.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/embed/ephy-web-app-utils.c b/embed/ephy-web-app-utils.c
index b72eca795..83e8bc4ef 100644
--- a/embed/ephy-web-app-utils.c
+++ b/embed/ephy-web-app-utils.c
@@ -220,7 +220,7 @@ create_desktop_file (EphyWebView *view,
char *path;
GFile *image;
- path = g_build_filename (profile_dir, "app-icon.png", NULL);
+ path = g_build_filename (profile_dir, EPHY_WEB_APP_ICON_NAME, NULL);
image = g_file_new_for_path (path);
stream = (GOutputStream*)g_file_create (image, 0, NULL, NULL);
@@ -390,7 +390,7 @@ ephy_web_application_get_application_list ()
app = g_slice_new0 (EphyWebApplication);
profile_dir = g_build_filename (ephy_dot_dir (), name, NULL);
- app->icon_url = g_build_filename (profile_dir, "app-icon.png", NULL);
+ app->icon_url = g_build_filename (profile_dir, EPHY_WEB_APP_ICON_NAME, NULL);
desktop_file = g_strconcat (name + prefix_length, ".desktop", NULL);
desktop_file_path = g_build_filename (profile_dir, desktop_file, NULL);
diff --git a/embed/ephy-web-app-utils.h b/embed/ephy-web-app-utils.h
index 8326c4a10..7c8a09f3d 100644
--- a/embed/ephy-web-app-utils.h
+++ b/embed/ephy-web-app-utils.h
@@ -39,6 +39,7 @@ typedef struct {
} EphyWebApplication;
#define EPHY_WEB_APP_PREFIX "app-"
+#define EPHY_WEB_APP_ICON_NAME "app-icon.png"
char *ephy_web_application_create (EphyWebView *view, const char *title, GdkPixbuf *icon);