[gnome-builder/wip/gtk4-port] libide/greeter: force registration of resources



commit 916ef13e1c815c77a1e1cd6f21c47892cce0f8c0
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 30 15:03:19 2022 -0700

    libide/greeter: force registration of resources
    
    To ensure they are not dropped by the linker.

 src/libide/greeter/ide-greeter-workspace.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libide/greeter/ide-greeter-workspace.c b/src/libide/greeter/ide-greeter-workspace.c
index f2f2818e2..6a3879c4e 100644
--- a/src/libide/greeter/ide-greeter-workspace.c
+++ b/src/libide/greeter/ide-greeter-workspace.c
@@ -27,6 +27,7 @@
 
 #include "ide-greeter-buttons-section.h"
 #include "ide-greeter-private.h"
+#include "ide-greeter-resources.h"
 #include "ide-greeter-row.h"
 #include "ide-greeter-workspace.h"
 
@@ -661,6 +662,8 @@ ide_greeter_workspace_class_init (IdeGreeterWorkspaceClass *klass)
 
   g_type_ensure (IDE_TYPE_GREETER_BUTTONS_SECTION);
   g_type_ensure (IDE_TYPE_GREETER_ROW);
+
+  g_resources_register (ide_greeter_get_resource ());
 }
 
 static void


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