font: remove draw_ prefix in names
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
11601b670f
commit
31552f2122
|
@ -505,7 +505,7 @@ main(int argc, char **argv)
|
|||
colors_reqs[1] = xcolor_init_unchecked(&globalconf.colors.bg,
|
||||
"white", sizeof("white") - 1);
|
||||
|
||||
globalconf.font = draw_font_new("sans 8");
|
||||
globalconf.font = font_new("sans 8");
|
||||
|
||||
for(colors_nbr = 0; colors_nbr < 2; colors_nbr++)
|
||||
xcolor_init_reply(colors_reqs[colors_nbr]);
|
||||
|
|
4
font.c
4
font.c
|
@ -32,7 +32,7 @@
|
|||
* \return A new font.
|
||||
*/
|
||||
font_t *
|
||||
draw_font_new(const char *fontname)
|
||||
font_new(const char *fontname)
|
||||
{
|
||||
cairo_surface_t *surface;
|
||||
cairo_t *cr;
|
||||
|
@ -66,7 +66,7 @@ draw_font_new(const char *fontname)
|
|||
* \param font Font to delete.
|
||||
*/
|
||||
void
|
||||
draw_font_delete(font_t **font)
|
||||
font_delete(font_t **font)
|
||||
{
|
||||
if(*font)
|
||||
{
|
||||
|
|
4
font.h
4
font.h
|
@ -30,8 +30,8 @@ typedef struct
|
|||
int height;
|
||||
} font_t;
|
||||
|
||||
font_t *draw_font_new(const char *);
|
||||
void draw_font_delete(font_t **);
|
||||
font_t *font_new(const char *);
|
||||
void font_delete(font_t **);
|
||||
|
||||
#endif
|
||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||
|
|
4
luaa.c
4
luaa.c
|
@ -597,8 +597,8 @@ luaA_awesome_newindex(lua_State *L)
|
|||
case A_TK_FONT:
|
||||
{
|
||||
const char *newfont = luaL_checkstring(L, 3);
|
||||
draw_font_delete(&globalconf.font);
|
||||
globalconf.font = draw_font_new(newfont);
|
||||
font_delete(&globalconf.font);
|
||||
globalconf.font = font_new(newfont);
|
||||
/* refresh all wiboxes */
|
||||
foreach(wibox, globalconf.wiboxes)
|
||||
(*wibox)->need_update = true;
|
||||
|
|
Loading…
Reference in New Issue