cosmetic and don't cast for nothing
This commit is contained in:
parent
79749fcc7f
commit
3b013f90b1
|
@ -38,7 +38,7 @@ focustitle_new(Statusbar *statusbar)
|
||||||
{
|
{
|
||||||
Widget *w;
|
Widget *w;
|
||||||
w = p_new(Widget, 1);
|
w = p_new(Widget, 1);
|
||||||
w->draw = (void*) focustitle_draw;
|
w->draw = focustitle_draw;
|
||||||
w->statusbar = statusbar;
|
w->statusbar = statusbar;
|
||||||
w->name = name;
|
w->name = name;
|
||||||
w->alignment = AlignFlex;
|
w->alignment = AlignFlex;
|
||||||
|
|
|
@ -22,7 +22,6 @@ isoccupied(TagClientLink *tc, int screen, Client *head, Tag *t)
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
taglist_draw(DrawCtx *ctx,
|
taglist_draw(DrawCtx *ctx,
|
||||||
awesome_config *awesomeconf,
|
awesome_config *awesomeconf,
|
||||||
|
@ -65,17 +64,15 @@ taglist_draw(DrawCtx *ctx,
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Widget *
|
Widget *
|
||||||
taglist_new(Statusbar *statusbar)
|
taglist_new(Statusbar *statusbar)
|
||||||
{
|
{
|
||||||
Widget *w;
|
Widget *w;
|
||||||
w = p_new(Widget, 1);
|
w = p_new(Widget, 1);
|
||||||
w->draw = (void*) taglist_draw;
|
w->draw = taglist_draw;
|
||||||
w->statusbar = statusbar;
|
w->statusbar = statusbar;
|
||||||
w->name = name;
|
w->name = name;
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
|
|
||||||
|
|
||||||
static char name[] = "textbox";
|
static char name[] = "textbox";
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -20,13 +19,12 @@ textbox_draw(DrawCtx *ctx,
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Widget *
|
Widget *
|
||||||
textbox_new(Statusbar *statusbar)
|
textbox_new(Statusbar *statusbar)
|
||||||
{
|
{
|
||||||
Widget *w;
|
Widget *w;
|
||||||
w = p_new(Widget, 1);
|
w = p_new(Widget, 1);
|
||||||
w->draw = (void*) textbox_draw;
|
w->draw = textbox_draw;
|
||||||
w->statusbar = statusbar;
|
w->statusbar = statusbar;
|
||||||
w->name = name;
|
w->name = name;
|
||||||
return w;
|
return w;
|
||||||
|
|
Loading…
Reference in New Issue