diff options
author | Marco Peereboom <marco@conformal.com> | 2011-01-06 05:20:02 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-01-06 05:20:02 +0000 |
commit | a24d1c7ccf5a5df6f1fb66287ccf5e03e5af67d0 (patch) | |
tree | 9ef0d5065e87be443660e665531a818c80ce2605 | |
parent | 00328819e790617f2c5b8e8dddb164a3897955ca (diff) | |
download | xombrero-a24d1c7ccf5a5df6f1fb66287ccf5e03e5af67d0.tar.gz |
once we save a cert color the address bar pretty blue
-rw-r--r-- | xxxterm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xxxterm.c b/xxxterm.c index e789853..552cffb 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -2228,6 +2228,7 @@ save_certs(struct tab *t, gnutls_x509_crt_t *certs, char cert_buf[64 * 1024], file[PATH_MAX]; int i; FILE *f; + GdkColor color; if (t == NULL || certs == NULL || cert_count <= 0 || domain == NULL) return; @@ -2243,14 +2244,18 @@ save_certs(struct tab *t, gnutls_x509_crt_t *certs, if (gnutls_x509_crt_export(certs[i], GNUTLS_X509_FMT_PEM, cert_buf, &cert_buf_sz)) { warnx("gnutls_x509_crt_export"); - break; + goto done; } if (fwrite(cert_buf, cert_buf_sz, 1, f) != 1) { warn("fwrite certs"); - break; + goto done; } } + /* not the best spot but oh well */ + gdk_color_parse("lightblue", &color); + gtk_widget_modify_base(t->uri_entry, GTK_STATE_NORMAL, &color); +done: fclose(f); } |