aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--embed/ephy-cookie-manager.h8
-rw-r--r--embed/mozilla/EphySingle.cpp4
3 files changed, 13 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 31239fdcd..0f5e9c043 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2005-01-11 Christian Persch <chpe@cvs.gnome.org>
+ * embed/ephy-cookie-manager.h:
+ * embed/mozilla/EphySingle.cpp:
+
+ Use the enums instead of ints.
+
+2005-01-11 Christian Persch <chpe@cvs.gnome.org>
+
* src/Makefile.am:
* lib/Makefile.am:
* lib/egg/Makefile.am:
diff --git a/embed/ephy-cookie-manager.h b/embed/ephy-cookie-manager.h
index de7aed2e6..43e2282af 100644
--- a/embed/ephy-cookie-manager.h
+++ b/embed/ephy-cookie-manager.h
@@ -66,10 +66,10 @@ typedef struct
char *path;
gulong expires;
glong real_expires;
- guint is_secure : 1;
- guint is_session : 1;
- guint p3p_state : 3;
- guint p3p_policy : 3;
+ EphyCookieP3PState p3p_state;
+ EphyCookieP3PPolicy p3p_policy;
+ guint is_secure : 1;
+ guint is_session : 1;
} EphyCookie;
struct _EphyCookieManagerIface
diff --git a/embed/mozilla/EphySingle.cpp b/embed/mozilla/EphySingle.cpp
index 29deaa230..6e27194d5 100644
--- a/embed/mozilla/EphySingle.cpp
+++ b/embed/mozilla/EphySingle.cpp
@@ -278,11 +278,11 @@ mozilla_cookie_to_ephy_cookie (nsICookie *cookie)
nsCookieStatus status;
cookie->GetStatus (&status);
- info->p3p_state = status;
+ info->p3p_state = (EphyCookieP3PState) status;
nsCookiePolicy policy;
cookie->GetPolicy (&policy);
- info->p3p_policy = policy;
+ info->p3p_policy = (EphyCookieP3PPolicy) policy;
PRUint64 dateTime;
cookie->GetExpires (&dateTime);