[Github-comments] [geany/geany] Theme improvements (#1382)

Matthew Brush notifications at xxxxx
Sun Jan 29 17:46:20 UTC 2017


codebrainz commented on this pull request.



> +	theme_fn = g_build_filename(app->datadir, "geany.css", NULL);
+	load_css_theme(theme_fn, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+	g_free(theme_fn);
+
+	// load themes to handle breakage between various GTK+ versions
+	const struct
+	{
+		guint min_version;
+		guint max_version;
+		const gchar *file;
+	}
+	css_files[] =
+	{
+		{ 20, G_MAXUINT, "geany-3.20.css" },
+		{ 0, 19, "geany-3.0.css" },
+	};

Not a particularly strong reason (other than avoiding `@import`ing files into each other). I was going to put it back exactly like before, but this seems just as flexible.

-- 
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/1382
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170129/d5e2ec03/attachment.html>


More information about the Github-comments mailing list