commit d4f6290a4180bd103ee10d73f26bde71fed39567
parent 996b75505f7015eac8d99d74b512e6f406366dda
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Sun, 28 Oct 2018 15:11:33 +0100
Add explanatory comment to GTKUT_COLOR_BUTTON_LABEL macro.
...so that people don't have to dig in commit history to find out.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/gtk/gtkutils.h b/src/gtk/gtkutils.h
@@ -56,6 +56,11 @@
#define GTKUT_CTREE_REFRESH(clist) \
GTK_CMCLIST_GET_CLASS(clist)->refresh(clist)
+/* String used in color button labels.
+ * Instead of hardcoding a size which doesn't look the same on different
+ * resolutions, use a space;m-space;space label and let GTK+ to compute
+ * the appropriate button size for current font.
+ * This macro is only used in gtkut_set_button_color(). */
#define GTKUT_COLOR_BUTTON_LABEL "\x20\xE2\x80\x83\x20"
/* Set "color" to the same color as "rgba" */