From: Dana Jansens Date: Tue, 8 Apr 2003 02:00:08 +0000 (+0000) Subject: use a size not area for the label X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=7b5a51db2ba1a006529e4f0e946c9a659c4f02b5;p=chaz%2Fopenbox use a size not area for the label --- diff --git a/engines/engineinterface.h b/engines/engineinterface.h index 080e301e..1dbc9c70 100644 --- a/engines/engineinterface.h +++ b/engines/engineinterface.h @@ -50,7 +50,7 @@ typedef void EngineFrameHide(Frame *self); /* get_context */ typedef Context EngineGetContext(Client *client, Window win); -typedef void EngineRenderLabel(Window win, Rect *area, char *text, +typedef void EngineRenderLabel(Window win, Size *sz, char *text, gboolean hilight, gboolean toplevel); typedef void EngineSizeLabel(char *text, gboolean hilight, gboolean toplevel, diff --git a/engines/openbox/obrender.c b/engines/openbox/obrender.c index c765ef76..00272080 100644 --- a/engines/openbox/obrender.c +++ b/engines/openbox/obrender.c @@ -203,14 +203,14 @@ static void obrender_close(ObFrame *self, Appearance *a) paint(self->close, a); } -void render_label(Window win, Rect *area, char *text, +void render_label(Window win, Size *sz, char *text, gboolean hilight, gboolean toplevel) { Appearance *a; a = hilight ? ob_app_hilite_label : ob_app_unhilite_label; a->texture[0].data.text.string = text; - RECT_SET(a->area, 0, 0, area->width, area->height); + RECT_SET(a->area, 0, 0, sz->width, sz->height); a->texture[0].position = a->area; if (toplevel) {