From fcb0f328cfb8977dd5ba4a15dc1ed239af8267a2 Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Thu, 13 Sep 2012 18:31:14 +0300 Subject: ephy-embed-utils: add ephy_embed_utils_is_no_show_address() https://bugzilla.gnome.org/show_bug.cgi?id=683796 --- src/ephy-window.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/ephy-window.c') diff --git a/src/ephy-window.c b/src/ephy-window.c index a40f13f00..898c7d754 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -1479,32 +1479,15 @@ setup_ui_manager (EphyWindow *window) gtk_ui_manager_get_accel_group (manager)); } -/* 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 -}; - static char * calculate_location (const char *typed_address, const char *address) { - int i; const char *location; /* If there's a typed address, use that over address. Never * show URIs in the 'do_not_show_address' array. */ location = typed_address ? typed_address : address; - - for (i = 0; do_not_show_address[i]; i++) - { - if (g_str_equal (location, do_not_show_address[i])) - { - location = NULL; - break; - } - } + location = ephy_embed_utils_is_no_show_address (location) ? NULL : location; return g_strdup (location); } -- cgit v1.2.3