ltkx

GUI toolkit for X11 (WIP)
git clone git://lumidify.org/ltkx.git
Log | Files | Refs | README | LICENSE

commit 0d1261643961eb2860692778d1a33fe1a5f5cdc6
parent 626774f7dfbfa20af2cf3e093141f4da1a1e83d7
Author: lumidify <nobody@lumidify.org>
Date:   Sat, 11 Apr 2020 13:21:49 +0200

Small cleanup; add note

Diffstat:
MLICENSE | 2+-
MNOTES | 1+
Mbutton.c | 2++
Mltk.c | 2++
Mltk.h | 2--
Mtext-hb.c | 2++
6 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -1,7 +1,7 @@ MIT/X Consortium License The Lumidify ToolKit (LTK) -Copyright (c) 2016, 2017, 2018 lumidify <nobody@lumidify.org> +Copyright (c) 2016, 2017, 2018, 2019, 2020 lumidify <nobody@lumidify.org> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/NOTES b/NOTES @@ -8,3 +8,4 @@ When the screen size is set differently by the window manager on startup, the or Change list of windows to simple array or binary search tree - hash overkill since there usually won't be too many windows -> maybe optimize for common case of one window so no need to search at all Fribidi - needs to be run on entire paragraph first; line breaking later - needs to take paragraph dir into account +Should widgets be reference-counted? diff --git a/button.c b/button.c @@ -24,6 +24,8 @@ #include "ltk.h" #include "button.h" +extern Ltk *ltk_global; + void ltk_button_ini_handler(LtkTheme *theme, const char *prop, const char *value) { if (strcmp(prop, "border_width") == 0) { diff --git a/ltk.c b/ltk.c @@ -26,6 +26,8 @@ #include "ini.h" #include "ltk.h" +Ltk *ltk_global; + void ltk_init(const char *theme_path) { ltk_global = malloc(sizeof(Ltk)); diff --git a/ltk.h b/ltk.h @@ -121,8 +121,6 @@ typedef struct { Atom wm_delete_msg; } Ltk; -Ltk *ltk_global; - void ltk_init(const char *theme_path); void ltk_fatal(const char *msg); diff --git a/text-hb.c b/text-hb.c @@ -30,6 +30,8 @@ #include "ltk.h" #include "text-hb.h" +extern Ltk *ltk_global; + /* These unicode routines are taken from * https://github.com/JeffBezanson/cutef8 */