font: remove draw_ prefix in names

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-09-29 17:25:07 +02:00
parent 11601b670f
commit 31552f2122
4 changed files with 7 additions and 7 deletions

View File

@ -505,7 +505,7 @@ main(int argc, char **argv)
colors_reqs[1] = xcolor_init_unchecked(&globalconf.colors.bg, colors_reqs[1] = xcolor_init_unchecked(&globalconf.colors.bg,
"white", sizeof("white") - 1); "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++) for(colors_nbr = 0; colors_nbr < 2; colors_nbr++)
xcolor_init_reply(colors_reqs[colors_nbr]); xcolor_init_reply(colors_reqs[colors_nbr]);

4
font.c
View File

@ -32,7 +32,7 @@
* \return A new font. * \return A new font.
*/ */
font_t * font_t *
draw_font_new(const char *fontname) font_new(const char *fontname)
{ {
cairo_surface_t *surface; cairo_surface_t *surface;
cairo_t *cr; cairo_t *cr;
@ -66,7 +66,7 @@ draw_font_new(const char *fontname)
* \param font Font to delete. * \param font Font to delete.
*/ */
void void
draw_font_delete(font_t **font) font_delete(font_t **font)
{ {
if(*font) if(*font)
{ {

4
font.h
View File

@ -30,8 +30,8 @@ typedef struct
int height; int height;
} font_t; } font_t;
font_t *draw_font_new(const char *); font_t *font_new(const char *);
void draw_font_delete(font_t **); void font_delete(font_t **);
#endif #endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

4
luaa.c
View File

@ -597,8 +597,8 @@ luaA_awesome_newindex(lua_State *L)
case A_TK_FONT: case A_TK_FONT:
{ {
const char *newfont = luaL_checkstring(L, 3); const char *newfont = luaL_checkstring(L, 3);
draw_font_delete(&globalconf.font); font_delete(&globalconf.font);
globalconf.font = draw_font_new(newfont); globalconf.font = font_new(newfont);
/* refresh all wiboxes */ /* refresh all wiboxes */
foreach(wibox, globalconf.wiboxes) foreach(wibox, globalconf.wiboxes)
(*wibox)->need_update = true; (*wibox)->need_update = true;