aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-03-29 02:59:53 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-03-31 09:35:59 +0800
commitd2183fb3f517a7df6fea16c0993f1fe6bdf99e98 (patch)
tree3a6650051bf941e5167fb56e58a6ceca7a9e758b /embed
parent68630a1430117e5cee147cc69c9ffab83fe40130 (diff)
downloadgsoc2013-epiphany-d2183fb3f517a7df6fea16c0993f1fe6bdf99e98.tar
gsoc2013-epiphany-d2183fb3f517a7df6fea16c0993f1fe6bdf99e98.tar.gz
gsoc2013-epiphany-d2183fb3f517a7df6fea16c0993f1fe6bdf99e98.tar.bz2
gsoc2013-epiphany-d2183fb3f517a7df6fea16c0993f1fe6bdf99e98.tar.lz
gsoc2013-epiphany-d2183fb3f517a7df6fea16c0993f1fe6bdf99e98.tar.xz
gsoc2013-epiphany-d2183fb3f517a7df6fea16c0993f1fe6bdf99e98.tar.zst
gsoc2013-epiphany-d2183fb3f517a7df6fea16c0993f1fe6bdf99e98.zip
e-web-app-utils: sync var names in API
https://bugzilla.gnome.org/show_bug.cgi?id=673021
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-web-app-utils.c16
-rw-r--r--embed/ephy-web-app-utils.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/embed/ephy-web-app-utils.c b/embed/ephy-web-app-utils.c
index f530d5b55..f9ea78fea 100644
--- a/embed/ephy-web-app-utils.c
+++ b/embed/ephy-web-app-utils.c
@@ -75,20 +75,20 @@ desktop_filename_from_wm_class (char *wm_class)
/**
* ephy_web_application_get_profile_directory:
- * @app_name: the application name
+ * @name: the application name
*
- * Gets the directory whre the profile for @app_name is meant
+ * Gets the directory whre the profile for @name is meant
* to be stored.
*
* Returns: (transfer full): A newly allocated string.
**/
char *
-ephy_web_application_get_profile_directory (const char *app_name)
+ephy_web_application_get_profile_directory (const char *name)
{
char *app_dir, *wm_class, *profile_dir, *encoded;
GError *error = NULL;
- wm_class = get_wm_class_from_app_title (app_name);
+ wm_class = get_wm_class_from_app_title (name);
encoded = g_filename_from_utf8 (wm_class, -1, NULL, NULL, &error);
g_free (wm_class);
@@ -305,7 +305,7 @@ create_cookie_jar_for_domain (const char *address, const char *directory)
/**
* ephy_web_application_create:
* @address: the address of the new web application
- * @title: the title for the new web application
+ * @name: the name for the new web application
* @icon: the icon for the new web application
*
* Creates a new Web Application from the provided address.
@@ -313,7 +313,7 @@ create_cookie_jar_for_domain (const char *address, const char *directory)
* Returns: (transfer-full): the path to the desktop file representing the new application
**/
char *
-ephy_web_application_create (const char *address, const char *title, GdkPixbuf *icon)
+ephy_web_application_create (const char *address, const char *name, GdkPixbuf *icon)
{
char *profile_dir = NULL;
char *toolbar_path = NULL;
@@ -321,7 +321,7 @@ ephy_web_application_create (const char *address, const char *title, GdkPixbuf *
/* If there's already a WebApp profile for the contents of this
* view, do nothing. */
- profile_dir = ephy_web_application_get_profile_directory (title);
+ profile_dir = ephy_web_application_get_profile_directory (name);
if (g_file_test (profile_dir, G_FILE_TEST_IS_DIR))
goto out;
@@ -343,7 +343,7 @@ ephy_web_application_create (const char *address, const char *title, GdkPixbuf *
create_cookie_jar_for_domain (address, profile_dir);
/* Create the deskop file. */
- desktop_file_path = create_desktop_file (address, profile_dir, title, icon);
+ desktop_file_path = create_desktop_file (address, profile_dir, name, icon);
out:
if (toolbar_path)
diff --git a/embed/ephy-web-app-utils.h b/embed/ephy-web-app-utils.h
index c1becc89f..80dde2b21 100644
--- a/embed/ephy-web-app-utils.h
+++ b/embed/ephy-web-app-utils.h
@@ -39,11 +39,11 @@ typedef struct {
#define EPHY_WEB_APP_PREFIX "app-"
#define EPHY_WEB_APP_ICON_NAME "app-icon.png"
-char *ephy_web_application_create (const char *address, const char *title, GdkPixbuf *icon);
+char *ephy_web_application_create (const char *address, const char *name, GdkPixbuf *icon);
gboolean ephy_web_application_delete (const char *name);
-char *ephy_web_application_get_profile_directory (const char *app_name);
+char *ephy_web_application_get_profile_directory (const char *name);
GList *ephy_web_application_get_application_list (void);