diff options
-rw-r--r-- | src/tab-chrome.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 3a57f4b..427d7b4 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -298,17 +298,10 @@ static void uri_activate_cb(GtkEntry *entry, MqTabChrome *chrome) { const gchar *uri; - gchar *rw_uri; uri = gtk_entry_get_text(GTK_ENTRY(entry)); - if (g_str_has_prefix(uri, "about:")) { - rw_uri = g_strconcat("mq-about:", uri + strlen("about:"), NULL); - webkit_web_view_load_uri(chrome->web_view, rw_uri); - g_free(rw_uri); - } else { - webkit_web_view_load_uri(chrome->web_view, uri); - } + mq_web_view_load_uri(MQ_WEB_VIEW(chrome->web_view), uri); } static void @@ -316,17 +309,10 @@ home_clicked_cb(GtkToolButton G_GNUC_UNUSED *toolbutton, MqTabChrome *chrome) { const gchar *uri; - gchar *rw_uri; uri = mq_config_get_string(chrome->config, "tabs.home"); - if (g_str_has_prefix(uri, "about:")) { - rw_uri = g_strconcat("mq-about:", uri + strlen("about:"), NULL); - webkit_web_view_load_uri(chrome->web_view, rw_uri); - g_free(rw_uri); - } else { - webkit_web_view_load_uri(chrome->web_view, uri); - } + mq_web_view_load_uri(MQ_WEB_VIEW(chrome->web_view), uri); } static void |