[gnome-control-center] applications: ensure private types used by the template
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] applications: ensure private types used by the template
- Date: Fri, 7 Aug 2020 03:46:47 +0000 (UTC)
commit 015fbf8f4c13c082b76b7857accab727caa49d40
Author: jeongsu816 <jeongsu816 gmail com>
Date: Wed Jul 29 12:36:45 2020 +0000
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
panels/applications/cc-applications-panel.c | 3 +++
1 file changed, 3 insertions(+)
---
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 ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]