Branch: refs/heads/master
Author: Devyn Collier Johnson <DevynCJohnson(a)Gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: Sat, 13 Jul 2019 04:08:44 UTC
Commit: 16d16d5b4964029f21bb916f83662e97062b548a
https://github.com/geany/geany-plugins/commit/16d16d5b4964029f21bb916f83662…
Log Message:
-----------
Update ao_colortip.c
Changed the hard-coded color-tip string to be set via macros which can be used to set the size of the color-tip at compile-time. This is helpful for making the color-tip larger on 4K screens or for people with less acute vision.
Modified Paths:
--------------
addons/src/ao_colortip.c
Modified: addons/src/ao_colortip.c
9 lines changed, 8 insertions(+), 1 deletions(-)
===================================================================
@@ -32,6 +32,13 @@ typedef struct _AoColorTipPrivate AoColorTipPrivate;
#define AO_COLORTIP_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj),\
AO_COLORTIP_TYPE, AoColorTipPrivate))
+// This is helpful for making the color-tip larger on 4K screens or for people with less acute vision
+#if (!(defined(COLOR_TIP_TEMPLATE) || defined(LARGE_COLOR_TIP)))
+# define COLOR_TIP_TEMPLATE " "
+#else
+# define COLOR_TIP_TEMPLATE " \n "
+#endif
+
struct _AoColorTip
{
GObject parent;
@@ -243,7 +250,7 @@ void ao_color_tip_editor_notify(AoColorTip *colortip, GeanyEditor *editor, SCNot
if (color != -1)
{
SSM(sci, SCI_CALLTIPSETBACK, color, 0);
- SSM(sci, SCI_CALLTIPSHOW, nt->position, (sptr_t)" ");
+ SSM(sci, SCI_CALLTIPSHOW, nt->position, (sptr_t)COLOR_TIP_TEMPLATE);
}
g_free(subtext);
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).