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