rename draw_get_context() to draw_context_new()

This commit is contained in:
Julien Danjou 2008-01-27 19:02:08 +01:00
parent c26d5242d5
commit 30eba52596
4 changed files with 4 additions and 4 deletions

View File

@ -102,7 +102,7 @@ main(int argc, char **argv)
XStoreName(disp, sw->window, "awmessage"); XStoreName(disp, sw->window, "awmessage");
ctx = draw_get_context(disp, DefaultScreen(disp), ctx = draw_context_new(disp, DefaultScreen(disp),
geometry.width, geometry.height, sw->drawable); geometry.width, geometry.height, sw->drawable);

View File

@ -33,7 +33,7 @@
* \return draw context ref * \return draw context ref
*/ */
DrawCtx * DrawCtx *
draw_get_context(Display *disp, int phys_screen, int width, int height, Drawable dw) draw_context_new(Display *disp, int phys_screen, int width, int height, Drawable dw)
{ {
DrawCtx *d = p_new(DrawCtx, 1); DrawCtx *d = p_new(DrawCtx, 1);

View File

@ -54,7 +54,7 @@ typedef struct
int depth; int depth;
} DrawCtx; } DrawCtx;
DrawCtx *draw_get_context(Display *, int, int, int, Drawable); DrawCtx *draw_context_new(Display *, int, int, int, Drawable);
void draw_text(DrawCtx *, Area, Alignment, int, XftFont *, const char *, XColor fg, XColor bg); void draw_text(DrawCtx *, Area, Alignment, int, XftFont *, const char *, XColor fg, XColor bg);
void draw_rectangle(DrawCtx *, Area, Bool, XColor); void draw_rectangle(DrawCtx *, Area, Bool, XColor);

View File

@ -98,7 +98,7 @@ statusbar_draw(Statusbar *statusbar)
break; break;
} }
DrawCtx *ctx = draw_get_context(globalconf.display, DrawCtx *ctx = draw_context_new(globalconf.display,
phys_screen, phys_screen,
statusbar->width, statusbar->width,
statusbar->height, statusbar->height,