[gnome-builder/wip/gtk4-port: 225/736] libide/greeter: force registration of resources
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 225/736] libide/greeter: force registration of resources
- Date: Tue, 26 Apr 2022 01:46:20 +0000 (UTC)
commit bfbd80cbfc8c33341ee814520f49599a2e3488d6
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]