[gnome-builder] libide/tweaks: add icon search path



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]