aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-26 06:31:56 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-26 06:32:29 +0200
commit08cf0ef2e636ab2c465fd1ba6fa0ef786c892976 (patch)
treed8b80c1545fea2481cb73e8a800b05d579d35c48
parentbaf2dc8ccd660dfaa70a385a65b5e2bfc3d03ed6 (diff)
downloadlogdiag-08cf0ef2e636ab2c465fd1ba6fa0ef786c892976.tar.gz
logdiag-08cf0ef2e636ab2c465fd1ba6fa0ef786c892976.tar.xz
logdiag-08cf0ef2e636ab2c465fd1ba6fa0ef786c892976.zip
Make development builds find the program icon
-rw-r--r--src/logdiag.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/logdiag.c b/src/logdiag.c
index 8c52d40..f5a891f 100644
--- a/src/logdiag.c
+++ b/src/logdiag.c
@@ -161,6 +161,11 @@ main (int argc, char *argv[])
}
#endif
+#ifdef OPTION_NOINSTALL
+ gtk_icon_theme_prepend_search_path (gtk_icon_theme_get_default (),
+ PROJECT_SHARE_DIR "icons");
+#endif
+
gtk_window_set_default_icon_name (PROJECT_NAME);
if (files)