From b02b30cddb187cdc65623bef1660d80341c416f9 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Fri, 3 Feb 2012 01:44:43 -0500 Subject: 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 --- embed/ephy-web-app-utils.c | 4 ++-- embed/ephy-web-app-utils.h | 1 + 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); -- cgit v1.2.3