[gnome-text-editor] app: adjust ordering of style scheme search path
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] app: adjust ordering of style scheme search path
- Date: Sun, 13 Feb 2022 22:21:26 +0000 (UTC)
commit 9df53d528593583d1c6e80da10d3fd711051d41a
Author: Christian Hergert <christian hergert me>
Date: Sun Feb 13 14:09:25 2022 -0800
app: adjust ordering of style scheme search path
We want user data dir highest of all, then app search path, then system
gtksourceview path.
src/editor-application.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/editor-application.c b/src/editor-application.c
index b472f0c..ae5e196 100644
--- a/src/editor-application.c
+++ b/src/editor-application.c
@@ -377,10 +377,10 @@ editor_application_startup (GApplication *application)
}
schemes = gtk_source_style_scheme_manager_get_default ();
- gtk_source_style_scheme_manager_append_search_path (schemes, PACKAGE_DATADIR"/styles");
+ gtk_source_style_scheme_manager_prepend_search_path (schemes, PACKAGE_DATADIR"/styles");
/* add also the user local style folder which is different from the flatpak style folder */
style_path = g_build_filename (g_get_home_dir (), ".local", "share", "gtksourceview-5", "styles", NULL);
- gtk_source_style_scheme_manager_append_search_path (schemes, style_path);
+ gtk_source_style_scheme_manager_prepend_search_path (schemes, style_path);
style_manager = adw_style_manager_get_default ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]