[Github-comments] [geany/geany] ui-utils: Load per-version GTK+ CSS file (#994)

elextr notifications at xxxxx
Thu Apr 14 09:59:12 UTC 2016


> @@ -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" },
> +	};

The braces on their own line is certainly the style used in code, but when
I looked at other declarations with initializations they seemed to use this
style already, maybe I was just (un?)lucky with my samples :)


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/994/files/ca8f6f2094cde6f238f37341df94c57ae065cb03#r59691013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160414/b54229a2/attachment.html>


More information about the Github-comments mailing list