[gnome-control-center/gnome-3-36] 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/gnome-3-36] applications: ensure private types used by the template
- Date: Tue, 18 Aug 2020 21:07:19 +0000 (UTC)
commit 1cd98472daa9e6eb9c02df5d6c6ebd88553e0b03
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 59964b1ed..fe9b71a50 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -1921,6 +1921,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]