about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-08-24 19:29:41 +0000
committerMarco Peereboom <marco@conformal.com>2011-08-24 19:29:41 +0000
commitb8e0c7fa42aa79d45223d34d612f74cd9c3d87c3 (patch)
tree91cb419c7f0322e1bc8e677dec65ddd7eb617a50
parent54b11a8f3806a7d04c1c47a2760f739c1e28c2a8 (diff)
downloadxombrero-b8e0c7fa42aa79d45223d34d612f74cd9c3d87c3.tar.gz
just kill :ports dead; it has been nothing but a hindrance.
-rw-r--r--xxxterm.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 91e511a..d0ba4d5 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -2714,10 +2714,7 @@ find_domain(const gchar *s, int toplevel)
 	} else
 		p = uri->host;
 
-	if (uri->port == 80)
-		ret = g_strdup_printf(".%s", p);
-	else
-		ret = g_strdup_printf(".%s:%d", p, uri->port);
+	ret = g_strdup_printf(".%s", p);
 
 	soup_uri_free(uri);
 
@@ -2830,7 +2827,7 @@ void
 js_toggle_cb(GtkWidget *w, struct tab *t)
 {
 	struct karg		a;
-
+fprintf(stderr, "%s\n", __func__);
 	a.i = XT_WL_TOGGLE | XT_WL_TOPLEVEL;
 	toggle_cwl(t, &a);
 
@@ -3749,7 +3746,6 @@ wl_save(struct tab *t, struct karg *args, int js)
 	struct domain		*d;
 	GSList			*cf;
 	SoupCookie		*ci, *c;
-	char			*p;
 
 	if (t == NULL || args == NULL)
 		return (1);
@@ -3770,11 +3766,6 @@ wl_save(struct tab *t, struct karg *args, int js)
 		goto done;
 	}
 
-	/* we don't want to save :port number */
-	p = g_strrstr(dom, ":");
-	if (p)
-		*p = '\0';
-
 	lt = g_strdup_printf("%s=%s", js ? "js_wl" : "cookie_wl", dom);
 
 	while (!feof(f)) {