From 9da0db1d83cdfc32c140d9416c0ee10529739d0f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 17 Sep 2017 13:53:43 -0400 Subject: src/tab-chrome.c: Restore URI bar style on URI change --- (limited to 'src') diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 1b07236..93878fd 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -184,6 +184,8 @@ load_changed_cb(WebKitWebView *web_view, WebKitLoadEvent load_event, case WEBKIT_LOAD_COMMITTED: gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), webkit_web_view_get_uri(web_view)); + gtk_entry_set_attributes(GTK_ENTRY(chrome->uri_entry), + NULL); break; case WEBKIT_LOAD_FINISHED: gtk_entry_set_progress_fraction( @@ -258,6 +260,7 @@ uri_cb(WebKitWebView *web_view, GParamSpec __attribute__((unused)) *paramspec, { gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), webkit_web_view_get_uri(web_view)); + gtk_entry_set_attributes(GTK_ENTRY(chrome->uri_entry), NULL); } static void -- cgit v0.9.1