[gnome-builder] libide/tweaks: add icon search path
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/tweaks: add icon search path
- Date: Wed, 3 Aug 2022 03:45:35 +0000 (UTC)
commit 3165cd0c72c3b6b7948a58bf5c35e7cd3a24baed
Author: Christian Hergert <chergert redhat com>
Date: Tue Aug 2 20:44:55 2022 -0700
libide/tweaks: add icon search path
We're just testing here, but it's nice to be able to use our installed
icons anyway.
src/libide/tweaks/tests/test-tweaks.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/libide/tweaks/tests/test-tweaks.c b/src/libide/tweaks/tests/test-tweaks.c
index 41c7f22eb..48d1789ff 100644
--- a/src/libide/tweaks/tests/test-tweaks.c
+++ b/src/libide/tweaks/tests/test-tweaks.c
@@ -18,6 +18,8 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
+#include "config.h"
+
#include <unistd.h>
#include <gtksourceview/gtksource.h>
@@ -59,6 +61,9 @@ main (int argc,
return EXIT_FAILURE;
}
+ gtk_icon_theme_add_search_path (gtk_icon_theme_get_for_display (gdk_display_get_default ()),
+ PACKAGE_ICONDIR);
+
tweaks = ide_tweaks_new ();
string = g_string_new (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]