diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed.h | 5 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 13 |
2 files changed, 4 insertions, 14 deletions
diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h index 71ca925d8..e41e9f5e6 100644 --- a/embed/ephy-embed.h +++ b/embed/ephy-embed.h @@ -75,9 +75,8 @@ typedef enum typedef enum { - EMBED_RELOAD_NORMAL = 1 << 1, - EMBED_RELOAD_BYPASSCACHE = 1 << 2, - EMBED_RELOAD_BYPASSPROXY = 1 << 3 + EMBED_RELOAD_NORMAL = 1 << 0, + EMBED_RELOAD_FORCE = 1 << 1 } EmbedReloadFlags; typedef struct diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index 421d0c194..c0432b1f9 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -506,20 +506,11 @@ impl_reload (EphyEmbed *embed, guint32 mflags; mflags = GTK_MOZ_EMBED_FLAG_RELOADNORMAL; - - if ((flags & EMBED_RELOAD_BYPASSCACHE) && - (flags & EMBED_RELOAD_BYPASSPROXY)) + + if (flags & EMBED_RELOAD_FORCE) { mflags = GTK_MOZ_EMBED_FLAG_RELOADBYPASSPROXYANDCACHE; } - else if (flags & EMBED_RELOAD_BYPASSCACHE) - { - mflags = GTK_MOZ_EMBED_FLAG_RELOADBYPASSCACHE; - } - else if (flags & EMBED_RELOAD_BYPASSPROXY) - { - mflags = GTK_MOZ_EMBED_FLAG_RELOADBYPASSPROXY; - } gtk_moz_embed_reload (GTK_MOZ_EMBED(embed), mflags); |