<p>In <a href="https://github.com/geany/geany/pull/994#discussion_r59690320">src/ui_utils.c</a>:</p>
<pre style='color:#555'>> @@ -2477,10 +2477,24 @@ void ui_init_builder(void)
>  static void init_custom_style(void)
>  {
>  #if GTK_CHECK_VERSION(3, 0, 0)
> -  gchar *css_file = g_build_filename(app->datadir, "geany.css", NULL);
> +  const struct {
> +          guint version;
> +          const gchar *file;
> +  } css_files[] = {
> +          { 20, "geany-3.20.css" },
> +          { 0, "geany-3.0.css" },
> +  };
</pre>
<p>Use <a href="https://en.wikipedia.org/wiki/Indent_style#Allman_style">Allman style</a> <a href="https://github.com/geany/geany/blob/1.27.0/HACKING#L249">braces on their own line</a> instead of <a href="https://en.wikipedia.org/wiki/Indent_style#K.26R_style">K&R style</a> braces on the same line. That being said, one could argue you're just following <a href="https://github.com/geany/geany/blob/1.27.0/src/filetypes.c#L619">existing code that breaks the convention</a> :)</p>

<p>In theory it would be like this:</p>

<div class="highlight highlight-source-c"><pre><span class="pl-k">const</span> <span class="pl-k">struct</span> 
{
    guint version;
    <span class="pl-k">const</span> gchar *file;
}
css_files[] =
{
    { <span class="pl-c1">20</span>, <span class="pl-s"><span class="pl-pds">"</span>geany-3.20.css<span class="pl-pds">"</span></span> },
    { <span class="pl-c1">0</span>, <span class="pl-s"><span class="pl-pds">"</span>geany-3.0.css<span class="pl-pds">"</span></span> },
};</pre></div>

<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 or <a href="https://github.com/geany/geany/pull/994/files/ca8f6f2094cde6f238f37341df94c57ae065cb03#r59690320">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJynjVvaibLUmgD9PLyb6X4szRwyvks5p3g6OgaJpZM4IEajJ.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/pull/994/files/ca8f6f2094cde6f238f37341df94c57ae065cb03#r59690320"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>