[geany/geany-plugins] ed7691: Merge pull request #883 from DevynCJohnson/patch-1
Frank Lanitz
git-noreply at xxxxx
Thu Jul 25 09:09:54 UTC 2019
Branch: refs/heads/master
Author: Frank Lanitz <frank at frank.uvena.de>
Committer: GitHub <noreply at github.com>
Date: Thu, 25 Jul 2019 09:09:54 UTC
Commit: ed7691aabda7a49039343e15d9d24cfaf58155f9
https://github.com/geany/geany-plugins/commit/ed7691aabda7a49039343e15d9d24cfaf58155f9
Log Message:
-----------
Merge pull request #883 from DevynCJohnson/patch-1
Added macros to ao_colortip.c in "Addons"
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;
@@ -251,7 +258,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).
More information about the Plugins-Commits
mailing list