diff options
author | jeongsu816 <jeongsu816@gmail.com> | 2020-07-29 12:36:45 +0000 |
---|---|---|
committer | Robert Ancell <robert.ancell@gmail.com> | 2020-08-07 03:44:49 +0000 |
commit | 015fbf8f4c13c082b76b7857accab727caa49d40 (patch) | |
tree | eebb31d27a43d5e32626aeb4b28aa3ad9432bf0f | |
parent | f1d892f46bef36d2ee26e510b3ae06e9da5a62ee (diff) | |
download | gnome-control-center-015fbf8f4c13c082b76b7857accab727caa49d40.tar.gz |
applications: ensure private types used by the template
on some systems, private types of settings app are not resolved.
Error building template class 'CcApplicationsPanel' for
an instance of type 'CcApplicationsPanel':
Invalid object type 'CcToggleRow'
to fix this issue, ensure private types used by the template
-rw-r--r-- | panels/applications/cc-applications-panel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/panels/applications/cc-applications-panel.c b/panels/applications/cc-applications-panel.c index c75b86660..31570ec4b 100644 --- a/panels/applications/cc-applications-panel.c +++ b/panels/applications/cc-applications-panel.c @@ -2038,6 +2038,9 @@ cc_applications_panel_init (CcApplicationsPanel *self) g_resources_register (cc_applications_get_resource ()); + g_type_ensure(CC_TYPE_TOGGLE_ROW); + g_type_ensure(CC_TYPE_INFO_ROW); + gtk_widget_init_template (GTK_WIDGET (self)); provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ()); |