[sysprof/wip/visualizers] visualizer-view: ensure types are registered
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/visualizers] visualizer-view: ensure types are registered
- Date: Sun, 9 Oct 2016 19:37:14 +0000 (UTC)
commit 034a7d881ff6c4d519562ba720b41b7cb97712a6
Author: Christian Hergert <chergert redhat com>
Date: Sun Oct 9 12:36:28 2016 -0700
visualizer-view: ensure types are registered
These have the chance of being dropped unless we export them
here manually. We probably should change how we export symbols
so this isn't required in the future.
lib/sp-visualizer-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/sp-visualizer-view.c b/lib/sp-visualizer-view.c
index c8dbf50..98f7009 100644
--- a/lib/sp-visualizer-view.c
+++ b/lib/sp-visualizer-view.c
@@ -527,6 +527,9 @@ sp_visualizer_view_class_init (SpVisualizerViewClass *klass)
sp_theme_manager_register_resource (theme_manager, NULL, NULL,
"/org/gnome/sysprof/css/SpVisualizerView-shared.css");
sp_theme_manager_register_resource (theme_manager, "Adwaita", NULL,
"/org/gnome/sysprof/css/SpVisualizerView-Adwaita.css");
sp_theme_manager_register_resource (theme_manager, "Adwaita", "dark",
"/org/gnome/sysprof/css/SpVisualizerView-Adwaita-dark.css");
+
+ g_type_ensure (SP_TYPE_VISUALIZER_LIST);
+ g_type_ensure (SP_TYPE_VISUALIZER_TICKS);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]