[gnome-terminal/gnome-43] profile: Use the correct schema source to lookup schemas



commit 78508bb58c00f11ca6db49251346708d2e5b7692
Author: Christian Persch <chpe src gnome org>
Date:   Thu Aug 18 18:32:17 2022 +0200

    profile: Use the correct schema source to lookup schemas
    
    (cherry picked from commit f133374e2b5a03c0d2cb6534a5d0502957ea2cf7)

 src/terminal-settings-list.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/terminal-settings-list.cc b/src/terminal-settings-list.cc
index 095b99dc..20d29b68 100644
--- a/src/terminal-settings-list.cc
+++ b/src/terminal-settings-list.cc
@@ -320,8 +320,7 @@ clone_child (TerminalSettingsList *list,
   client = dconf_client_new ();
   changeset = dconf_changeset_new ();
 
-  GSettingsSchemaSource *source = g_settings_schema_source_get_default (); /* unowned */
-  gs_unref_settings_schema GSettingsSchema* schema = g_settings_schema_source_lookup (source,
+  gs_unref_settings_schema GSettingsSchema* schema = g_settings_schema_source_lookup (list->schema_source,
                                                                                       list->child_schema_id,
                                                                                       TRUE);
    /* shouldn't really happen ever */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]