From f2a1f136a27cf8f1c177766ee4a45b710b8a70d1 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 22 Apr 2017 22:45:01 +0200 Subject: [PATCH] Remove FEATURE_HISTORY_INDICATOR. This does not bring any real benefit to make allow to avoid this but makes the code hard to maintain. --- src/main.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main.c b/src/main.c index 0c8b6da..0b35304 100644 --- a/src/main.c +++ b/src/main.c @@ -1363,13 +1363,7 @@ static void update_title(Client *c) */ static void update_urlbar(Client *c) { -#if !defined(FEATURE_HISTORY_INDICATOR) - /* if only the uri is shown - write it like it is on the label */ - gtk_label_set_text(GTK_LABEL(c->statusbar.left), c->state.uri); -#else GString *str = g_string_new(c->state.uri); - -#ifdef FEATURE_HISTORY_INDICATOR gboolean back, fwd; back = webkit_web_view_can_go_back(c->webview); @@ -1379,11 +1373,9 @@ static void update_urlbar(Client *c) if (back || fwd) { g_string_append_printf(str, " [%s]", back ? (fwd ? "-+" : "-") : "+"); } -#endif /* FEATURE_HISTORY_INDICATOR */ gtk_label_set_text(GTK_LABEL(c->statusbar.left), str->str); g_string_free(str, TRUE); -#endif /* !defined(FEATURE_HISTORY_INDICATOR) */ } #ifdef FREE_ON_QUIT -- 2.20.1