aboutsummaryrefslogtreecommitdiff
path: root/src/crystfel_gui.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-08-25 11:32:47 +0200
committerThomas White <taw@physics.org>2022-08-25 11:32:47 +0200
commitd7079c3725df973d1444478881d8debfe39e065c (patch)
tree6a9b514f50af2e6db94047d3842c4ab2f1cd4702 /src/crystfel_gui.c
parent7f2c2fb5a158b313804775ba431f0131914db1b6 (diff)
GUI: Get icons via a GResource
Otherwise we have to mess around with custom paths whenever CrystFEL is installed in a non-system location.
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r--src/crystfel_gui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index a82f305e..eb13e608 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -1083,6 +1083,9 @@ int main(int argc, char *argv[])
gtk_init(&argc, &argv);
g_set_application_name("CrystFEL");
+ gtk_icon_theme_add_resource_path(gtk_icon_theme_get_default(),
+ "/de/desy/CrystFEL");
+
if ( default_project(&proj) ) {
ERROR("Failed to set up default project\n");
return 1;