summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeongsu816 <jeongsu816@gmail.com>2020-07-29 12:36:45 +0000
committerRobert Ancell <robert.ancell@gmail.com>2020-08-07 03:44:49 +0000
commit015fbf8f4c13c082b76b7857accab727caa49d40 (patch)
treeeebb31d27a43d5e32626aeb4b28aa3ad9432bf0f
parentf1d892f46bef36d2ee26e510b3ae06e9da5a62ee (diff)
downloadgnome-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.c3
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 ());