Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Thu, 16 Nov 2023 09:55:34 UTC Commit: 0e0a96ef8e7fec5117f67f3aea1bcfa685d3f6d0 https://github.com/geany/geany/commit/0e0a96ef8e7fec5117f67f3aea1bcfa685d3f6...
Log Message: ----------- Remove invalid placeholder code
Since 9c49eceec823f042ffc93bea6e11e1e72d85df90 we don't have any per-GTK-version CSS data, so the array holding those and the associated metadata is empty.
However an array in ISO C cannot be zero-sized, so just drop this placeholder code we might never need again anyway.
Modified Paths: -------------- src/ui_utils.c
Modified: src/ui_utils.c 27 lines changed, 0 insertions(+), 27 deletions(-) =================================================================== @@ -2576,33 +2576,6 @@ static void init_css_styles(void) 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[] = - { - /* Unused now but can be used to load css for different GTK versions, such as - * { 20, G_MAXUINT, "geany-3.20.css" }, - * { 0, 19, "geany-3.0.css" }, - */ - }; - - guint gtk_version = gtk_get_minor_version(); - for (guint i = 0; i < G_N_ELEMENTS(css_files); i++) - { - if (gtk_version >= css_files[i].min_version && - gtk_version <= css_files[i].max_version) - { - theme_fn = g_build_filename(app->datadir, css_files[i].file, NULL); - load_css_theme(theme_fn, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); - g_free(theme_fn); - } - } - // if the user provided a geany.css file in their config dir, try and load that theme_fn = g_build_filename(app->configdir, "geany.css", NULL); if (g_file_test(theme_fn, G_FILE_TEST_EXISTS))
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).