diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-11-26 21:26:38 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-11-26 21:26:38 +0800 |
commit | a80d75f2179aba2078b0d042fec4c24b4e01f729 (patch) | |
tree | e99ef8f1079d7cd206aa145bf766bfe2e768e4de /embed | |
parent | f532ac410a72d0f0948dfdfe2e4d157dcb5aadb5 (diff) | |
download | gsoc2013-epiphany-a80d75f2179aba2078b0d042fec4c24b4e01f729.tar gsoc2013-epiphany-a80d75f2179aba2078b0d042fec4c24b4e01f729.tar.gz gsoc2013-epiphany-a80d75f2179aba2078b0d042fec4c24b4e01f729.tar.bz2 gsoc2013-epiphany-a80d75f2179aba2078b0d042fec4c24b4e01f729.tar.lz gsoc2013-epiphany-a80d75f2179aba2078b0d042fec4c24b4e01f729.tar.xz gsoc2013-epiphany-a80d75f2179aba2078b0d042fec4c24b4e01f729.tar.zst gsoc2013-epiphany-a80d75f2179aba2078b0d042fec4c24b4e01f729.zip |
Mark parameters "const" where appropriate.
2003-11-26 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-cookie-manager.c: (ephy_cookie_copy),
(ephy_cookie_manager_remove_cookie):
* embed/ephy-cookie-manager.h:
* embed/ephy-password-manager.c: (ephy_password_info_copy):
* embed/ephy-password-manager.h:
* embed/ephy-permission-manager.c: (ephy_permission_info_copy):
* embed/ephy-permission-manager.h:
* embed/mozilla/mozilla-embed-single.cpp:
Mark parameters "const" where appropriate.
* src/pdm-dialog.c: (pdm_cmd_delete_selection), (compare_cookies),
(cookie_to_iter), (cookie_added_cb), (cookie_changed_cb),
(cookie_deleted_cb), (cookies_cleared_cb),
(pdm_dialog_fill_cookies_list), (pdm_dialog_fill_passwords_list),
(pdm_dialog_init):
Make the cookies list auto-updating.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-cookie-manager.c | 4 | ||||
-rw-r--r-- | embed/ephy-cookie-manager.h | 6 | ||||
-rw-r--r-- | embed/ephy-password-manager.c | 2 | ||||
-rw-r--r-- | embed/ephy-password-manager.h | 2 | ||||
-rw-r--r-- | embed/ephy-permission-manager.c | 2 | ||||
-rw-r--r-- | embed/ephy-permission-manager.h | 2 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/embed/ephy-cookie-manager.c b/embed/ephy-cookie-manager.c index df079bddf..321384579 100644 --- a/embed/ephy-cookie-manager.c +++ b/embed/ephy-cookie-manager.c @@ -58,7 +58,7 @@ ephy_cookie_new (void) * Return value: a copy of @cookie. **/ EphyCookie * -ephy_cookie_copy (EphyCookie *cookie) +ephy_cookie_copy (const EphyCookie *cookie) { EphyCookie *copy = g_new0 (EphyCookie, 1); @@ -242,7 +242,7 @@ ephy_cookie_manager_list_cookies (EphyCookieManager *manager) **/ void ephy_cookie_manager_remove_cookie (EphyCookieManager *manager, - EphyCookie *cookie) + const EphyCookie *cookie) { EphyCookieManagerIFace *iface = EPHY_COOKIE_MANAGER_GET_CLASS (manager); iface->remove (manager, cookie); diff --git a/embed/ephy-cookie-manager.h b/embed/ephy-cookie-manager.h index c82ace19e..c7ae0adc6 100644 --- a/embed/ephy-cookie-manager.h +++ b/embed/ephy-cookie-manager.h @@ -90,7 +90,7 @@ struct EphyCookieManagerIFace /* Methods */ GList * (* list) (EphyCookieManager *manager); void (* remove) (EphyCookieManager *manager, - EphyCookie *cookie); + const EphyCookie *cookie); void (* clear) (EphyCookieManager *manager); }; @@ -100,7 +100,7 @@ GType ephy_cookie_get_type (void); EphyCookie *ephy_cookie_new (void); -EphyCookie *ephy_cookie_copy (EphyCookie *cookie); +EphyCookie *ephy_cookie_copy (const EphyCookie *cookie); void ephy_cookie_free (EphyCookie *cookie); @@ -111,7 +111,7 @@ GType ephy_cookie_manager_get_type (void); GList * ephy_cookie_manager_list_cookies (EphyCookieManager *manager); void ephy_cookie_manager_remove_cookie (EphyCookieManager *manager, - EphyCookie *cookie); + const EphyCookie *cookie); void ephy_cookie_manager_clear (EphyCookieManager *manager); diff --git a/embed/ephy-password-manager.c b/embed/ephy-password-manager.c index d9b7e8dc2..14de93d79 100644 --- a/embed/ephy-password-manager.c +++ b/embed/ephy-password-manager.c @@ -75,7 +75,7 @@ ephy_password_info_new (const char *host, * Return value: a copy of @info **/ EphyPasswordInfo * -ephy_password_info_copy (EphyPasswordInfo *info) +ephy_password_info_copy (const EphyPasswordInfo *info) { EphyPasswordInfo *copy = g_new0 (EphyPasswordInfo, 1); diff --git a/embed/ephy-password-manager.h b/embed/ephy-password-manager.h index 34d33b0f9..d8ff42943 100644 --- a/embed/ephy-password-manager.h +++ b/embed/ephy-password-manager.h @@ -66,7 +66,7 @@ EphyPasswordInfo *ephy_password_info_new (const char *host, const char *username, const char *password); -EphyPasswordInfo *ephy_password_info_copy (EphyPasswordInfo *info); +EphyPasswordInfo *ephy_password_info_copy (const EphyPasswordInfo *info); void ephy_password_info_free (EphyPasswordInfo *info); diff --git a/embed/ephy-permission-manager.c b/embed/ephy-permission-manager.c index c2518b94c..9ef7512a9 100644 --- a/embed/ephy-permission-manager.c +++ b/embed/ephy-permission-manager.c @@ -73,7 +73,7 @@ ephy_permission_info_new (const char *host, * Return value: a copy of @info **/ EphyPermissionInfo * -ephy_permission_info_copy (EphyPermissionInfo *info) +ephy_permission_info_copy (const EphyPermissionInfo *info) { EphyPermissionInfo *copy = g_new0 (EphyPermissionInfo, 1); diff --git a/embed/ephy-permission-manager.h b/embed/ephy-permission-manager.h index 1afa829ea..644797925 100644 --- a/embed/ephy-permission-manager.h +++ b/embed/ephy-permission-manager.h @@ -90,7 +90,7 @@ EphyPermissionInfo *ephy_permission_info_new (const char *host, EphyPermissionType type, gboolean allowed); -EphyPermissionInfo *ephy_permission_info_copy (EphyPermissionInfo *info); +EphyPermissionInfo *ephy_permission_info_copy (const EphyPermissionInfo *info); void ephy_permission_info_free (EphyPermissionInfo *info); diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 55bac6535..63fce2f09 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -638,7 +638,7 @@ impl_list_cookies (EphyCookieManager *manager) static void impl_remove_cookie (EphyCookieManager *manager, - EphyCookie *cookie) + const EphyCookie *cookie) { nsresult rv; nsCOMPtr<nsICookieManager> cookieManager = |