]> Dogcows Code - chaz/openbox/commitdiff
use a size not area for the label
authorDana Jansens <danakj@orodu.net>
Tue, 8 Apr 2003 02:00:08 +0000 (02:00 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 8 Apr 2003 02:00:08 +0000 (02:00 +0000)
engines/engineinterface.h
engines/openbox/obrender.c

index 080e301e2f64f0a95794ea74430332814f826010..1dbc9c70d8724c6e9b698c971edc5400a573c78e 100644 (file)
@@ -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,
index c765ef761e2fdde8d73b345d94e936629d39ad53..00272080eabadc776b40ff9d05df9e569c7608f5 100644 (file)
@@ -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) {
This page took 0.023792 seconds and 4 git commands to generate.