diff options
author | Thomas White <taw@physics.org> | 2022-08-24 13:27:57 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-08-24 13:56:06 +0200 |
commit | 606d42de1570307bf39e8955cc56d074c5f855d3 (patch) | |
tree | 6b962b91653172d50fdf78e2660f9b9d1791a076 /src | |
parent | 4464b2fc8d2840d489a839e4973fab1e71144efc (diff) |
GUI: Add custom task icons
Previously, the task buttons used stock icons chosen to approximately
fit the task when displayed with the icon theme on my computers. But
they don't fit so well in other themes, and sometimes no icon is shown
at all.
So, now they have their own icons, specifically designed for CrystFEL.
Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/9
Diffstat (limited to 'src')
-rw-r--r-- | src/crystfel_gui.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 1c439b18..2881728b 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -836,23 +836,23 @@ static void add_button(GtkWidget *vbox, const char *label, const char *imagen, static void add_task_buttons(GtkWidget *vbox, struct crystfelproject *proj) { /* FIXME: All these icons are placeholders (GitLab #9) */ - add_button(vbox, "Load data", "folder-pictures", + add_button(vbox, "Load data", "crystfel-load-data", G_CALLBACK(import_sig), proj); - add_button(vbox, "Peak detection", "edit-find", + add_button(vbox, "Peak detection", "crystfel-peak-detection", G_CALLBACK(peaksearch_sig), proj); - add_button(vbox, "Index this frame", "system-run", + add_button(vbox, "Index this frame", "crystfel-index-frame", G_CALLBACK(index_one_sig), proj); - add_button(vbox, "Index all frames", "view-grid", + add_button(vbox, "Index all frames", "crystfel-index-all", G_CALLBACK(index_all_sig), proj); - add_button(vbox, "Determine unit cell", "applications-engineering", + add_button(vbox, "Determine unit cell", "crystfel-unitcell", G_CALLBACK(cell_explorer_sig), proj); - add_button(vbox, "Indexing ambiguity", "face-worried", + add_button(vbox, "Indexing ambiguity", "crystfel-ambiguity", G_CALLBACK(ambi_sig), proj); - add_button(vbox, "Merge", "applications-science", + add_button(vbox, "Merge", "crystfel-merge", G_CALLBACK(merge_sig), proj); - add_button(vbox, "Figures of merit", "trophy-gold", + add_button(vbox, "Figures of merit", "crystfel-fom", G_CALLBACK(fom_sig), proj); - add_button(vbox, "Export data", "document-send", + add_button(vbox, "Export data", "crystfel-export", G_CALLBACK(export_sig), proj); } |