From 30eba52596bc28cc872fcf34dab4263b4245e6d5 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 27 Jan 2008 19:02:08 +0100 Subject: [PATCH] rename draw_get_context() to draw_context_new() --- awesome-message.c | 2 +- common/draw.c | 2 +- common/draw.h | 2 +- statusbar.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/awesome-message.c b/awesome-message.c index 45c12918..9fcecca3 100644 --- a/awesome-message.c +++ b/awesome-message.c @@ -102,7 +102,7 @@ main(int argc, char **argv) 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); diff --git a/common/draw.c b/common/draw.c index 3fd13e24..319f3518 100644 --- a/common/draw.c +++ b/common/draw.c @@ -33,7 +33,7 @@ * \return draw context ref */ 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); diff --git a/common/draw.h b/common/draw.h index dec3df7b..a99d6c80 100644 --- a/common/draw.h +++ b/common/draw.h @@ -54,7 +54,7 @@ typedef struct int depth; } 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_rectangle(DrawCtx *, Area, Bool, XColor); diff --git a/statusbar.c b/statusbar.c index 136766c7..8802453a 100644 --- a/statusbar.c +++ b/statusbar.c @@ -98,7 +98,7 @@ statusbar_draw(Statusbar *statusbar) break; } - DrawCtx *ctx = draw_get_context(globalconf.display, + DrawCtx *ctx = draw_context_new(globalconf.display, phys_screen, statusbar->width, statusbar->height, -- 2.11.4.GIT