[gnome-builder: 17/139] gstyle: register resources manually



commit 562b2b34c5ef0dbd4607c9240cfa285e69335fb4
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 9 15:07:18 2019 -0800

    gstyle: register resources manually
    
    This ensures that we have access to them without relying on shared library
    loading and static constructors.

 src/gstyle/gstyle-color-panel.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/gstyle/gstyle-color-panel.c b/src/gstyle/gstyle-color-panel.c
index 6b06dca8a..6c91a4c1e 100644
--- a/src/gstyle/gstyle-color-panel.c
+++ b/src/gstyle/gstyle-color-panel.c
@@ -22,6 +22,8 @@
 
 #include <glib/gi18n.h>
 
+#include "gstyle-resources.h"
+
 #include "gstyle-color-panel-private.h"
 #include "gstyle-color-panel-actions.h"
 #include "gstyle-revealer.h"
@@ -1378,6 +1380,8 @@ gstyle_color_panel_class_init (GstyleColorPanelClass *klass)
   object_class->get_property = gstyle_color_panel_get_property;
   object_class->set_property = gstyle_color_panel_set_property;
 
+  g_resources_register (gstyle_get_resource ());
+
   gtk_widget_class_set_template_from_resource (widget_class,
                                                "/org/gnome/libgstyle/ui/gstyle-color-panel.ui");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]