[epiphany] ephy-web-app-utils: add EPHY_WEB_APP_ICON define



commit b02b30cddb187cdc65623bef1660d80341c416f9
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Fri Feb 3 01:44:43 2012 -0500

    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 b72eca7..83e8bc4 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 8326c4a..7c8a09f 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]