aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphySingle.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-12-13 05:44:35 +0800
committerChristian Persch <chpe@src.gnome.org>2003-12-13 05:44:35 +0800
commita24d8402cd926c267682ede6f4325d8da0c4479d (patch)
tree9465fa6e65660158388323c570221d6ae19cc89e /embed/mozilla/EphySingle.cpp
parentac58742bbf40beaa31967cc8a75b4b3504e52f65 (diff)
downloadgsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.tar
gsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.tar.gz
gsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.tar.bz2
gsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.tar.lz
gsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.tar.xz
gsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.tar.zst
gsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.zip
Fix permission return types.
2003-12-12 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-permission-manager.c: (ephy_permission_info_new), (ephy_permission_info_copy), (ephy_permission_manager_add): * embed/ephy-permission-manager.h: * embed/mozilla/EphySingle.cpp: * embed/mozilla/mozilla-embed-single.cpp: Fix permission return types.
Diffstat (limited to 'embed/mozilla/EphySingle.cpp')
-rw-r--r--embed/mozilla/EphySingle.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/embed/mozilla/EphySingle.cpp b/embed/mozilla/EphySingle.cpp
index 1762b2e18..b9566a329 100644
--- a/embed/mozilla/EphySingle.cpp
+++ b/embed/mozilla/EphySingle.cpp
@@ -301,21 +301,23 @@ mozilla_permission_to_ephy_permission (nsIPermission *perm)
PRUint32 cap;
perm->GetCapability(&cap);
- gboolean allowed;
+ EphyPermission permission;
switch (cap)
{
case nsIPermissionManager::ALLOW_ACTION:
- allowed = TRUE;
+ permission = EPHY_PERMISSION_ALLOWED;
break;
case nsIPermissionManager::DENY_ACTION:
+ permission = EPHY_PERMISSION_DENIED;
+ break;
case nsIPermissionManager::UNKNOWN_ACTION:
default :
- allowed = FALSE;
+ permission = EPHY_PERMISSION_DEFAULT;
break;
}
nsCString host;
perm->GetHost(host);
- return ephy_permission_info_new (host.get(), type, allowed);
+ return ephy_permission_info_new (host.get(), type, permission);
}