[gnome-builder/wip/gtk4-port: 320/1774] libide/gui: give test access to resources
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 320/1774] libide/gui: give test access to resources
- Date: Mon, 11 Jul 2022 22:31:07 +0000 (UTC)
commit 91dde2d7cbf8e153a4ed3cb4648a17f1ba7482a4
Author: Christian Hergert <chergert redhat com>
Date: Sat Apr 2 00:56:28 2022 -0700
libide/gui: give test access to resources
src/libide/gui/tests/test-preferences.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/libide/gui/tests/test-preferences.c b/src/libide/gui/tests/test-preferences.c
index 2922b8e4e..19725eb2d 100644
--- a/src/libide/gui/tests/test-preferences.c
+++ b/src/libide/gui/tests/test-preferences.c
@@ -2,6 +2,8 @@
#include <gtksourceview/gtksource.h>
#include <libide-gui.h>
+#include "ide-gui-resources.h"
+
static void create_source_view_cb (const char *page,
const IdePreferenceItemEntry *item,
AdwPreferencesGroup *pref_group,
@@ -106,6 +108,8 @@ main (int argc,
adw_init ();
gtk_source_init ();
+ g_resources_register (ide_gui_get_resource ());
+
main_loop = g_main_loop_new (NULL, FALSE);
window = IDE_PREFERENCES_WINDOW (ide_preferences_window_new (IDE_PREFERENCES_MODE_EMPTY));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]