diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-09-13 23:31:14 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2012-09-17 21:31:41 +0800 |
commit | fcb0f328cfb8977dd5ba4a15dc1ed239af8267a2 (patch) | |
tree | 6cbec2ea3729128ce960ec0543837770a17a16a6 /embed/ephy-embed-utils.c | |
parent | fbb13119bc205c8a01a538e2db1ab2711371651d (diff) | |
download | gsoc2013-epiphany-fcb0f328cfb8977dd5ba4a15dc1ed239af8267a2.tar gsoc2013-epiphany-fcb0f328cfb8977dd5ba4a15dc1ed239af8267a2.tar.gz gsoc2013-epiphany-fcb0f328cfb8977dd5ba4a15dc1ed239af8267a2.tar.bz2 gsoc2013-epiphany-fcb0f328cfb8977dd5ba4a15dc1ed239af8267a2.tar.lz gsoc2013-epiphany-fcb0f328cfb8977dd5ba4a15dc1ed239af8267a2.tar.xz gsoc2013-epiphany-fcb0f328cfb8977dd5ba4a15dc1ed239af8267a2.tar.zst gsoc2013-epiphany-fcb0f328cfb8977dd5ba4a15dc1ed239af8267a2.zip |
ephy-embed-utils: add ephy_embed_utils_is_no_show_address()
https://bugzilla.gnome.org/show_bug.cgi?id=683796
Diffstat (limited to 'embed/ephy-embed-utils.c')
-rw-r--r-- | embed/ephy-embed-utils.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c index 5ffa4f053..1622afc05 100644 --- a/embed/ephy-embed-utils.c +++ b/embed/ephy-embed-utils.c @@ -163,3 +163,21 @@ ephy_embed_utils_url_is_empty (const char *location) return is_empty; } +/* This is the list of addresses that should never be shown in the + * window's location entry. */ +static const char * do_not_show_address[] = { + "about:blank", + "ephy-about:overview", + NULL +}; + +gboolean +ephy_embed_utils_is_no_show_address (const char *address) +{ + int i; + for (i = 0; do_not_show_address[i]; i++) + if (g_str_equal (address, do_not_show_address[i])) + return TRUE; + + return FALSE; +} |