<p>In <a href="https://github.com/geany/geany-plugins/pull/279#discussion_r67777902">treebrowser/src/treebrowser.c</a>:</p>
<pre style='color:#555'>> +        gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER (provider),
> +                                                   GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
> +        if(!is_dir)
> +        {
> +            gtk_css_provider_load_from_data (GTK_CSS_PROVIDER(provider),
> +                                             " #addrbar {\n"
> +                                             "   background: red;\n"
> +                                             "}\n", -1, NULL);
> +        }
> +        else
> +        {
> +            gtk_css_provider_load_from_data (GTK_CSS_PROVIDER(provider),
> +                                             " #addrbar {\n"
> +                                             "   background: white;\n"
> +                                             "}\n", -1, NULL);
> +        }
</pre>
<p>and actually this isn't a proper port of what the original code did in GTK2: it used to set <em>both</em> background and foreground when <code>is_dir</code> evaluated to false, and here you change only the background, but to a different color depending on the <code>is_dir</code> value.  That's not good, as you change background but not foreground, so it might very well be unreadable (imagine white on white for a dark theme).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/279/files/5aea39e7bdafe1905226a419113f2e0f78249a23#r67777902">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJz8iD60Qi8PivXZFx9V1wsTz1aGUks5qNxKogaJpZM4F0jb6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJzoXsN6NRhULelVPrdl0PMQnsxUuks5qNxKogaJpZM4F0jb6.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/pull/279/files/5aea39e7bdafe1905226a419113f2e0f78249a23#r67777902"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>