diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-19 11:32:34 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-19 11:32:34 +0200 |
commit | e96f9f3869c6ea5803f5759bf1737547a46be22f (patch) | |
tree | e070f699751eebad032a47f118293ef219f1e147 /src/traybutton.c | |
parent | 0d1af7a8c8e163250e940833d646a12852aa9e5b (diff) | |
download | jwm-e96f9f3869c6ea5803f5759bf1737547a46be22f.tar.gz |
Change function declaration style
This is a very sweeping change, but I feel that it is necessary.
Diffstat (limited to 'src/traybutton.c')
-rw-r--r-- | src/traybutton.c | 52 |
1 files changed, 39 insertions, 13 deletions
diff --git a/src/traybutton.c b/src/traybutton.c index b596ba0..6761d7c 100644 --- a/src/traybutton.c +++ b/src/traybutton.c @@ -54,13 +54,17 @@ static void ProcessMotionEvent(TrayComponentType *cp, /*************************************************************************** ***************************************************************************/ -void InitializeTrayButtons() { +void +InitializeTrayButtons() +{ buttons = NULL; } /*************************************************************************** ***************************************************************************/ -void StartupTrayButtons() { +void +StartupTrayButtons() +{ TrayButtonType *bp; @@ -91,13 +95,17 @@ void StartupTrayButtons() { /*************************************************************************** ***************************************************************************/ -void ShutdownTrayButtons() { +void +ShutdownTrayButtons() +{ } /*************************************************************************** ***************************************************************************/ -void DestroyTrayButtons() { +void +DestroyTrayButtons() +{ TrayButtonType *bp; @@ -200,7 +208,9 @@ TrayComponentType *CreateTrayButton(const char *iconName, /*************************************************************************** ***************************************************************************/ -void SetSize(TrayComponentType *cp, int width, int height) { +void +SetSize(TrayComponentType *cp, int width, int height) +{ TrayButtonType *bp; int labelWidth, labelHeight; @@ -248,7 +258,9 @@ void SetSize(TrayComponentType *cp, int width, int height) { /*************************************************************************** ***************************************************************************/ -void CheckedCreate(TrayComponentType *cp) { +void +CheckedCreate(TrayComponentType *cp) +{ TrayButtonType *bp; @@ -279,7 +291,9 @@ void CheckedCreate(TrayComponentType *cp) { /*************************************************************************** ***************************************************************************/ -void Create(TrayComponentType *cp) { +void +Create(TrayComponentType *cp) +{ ButtonNode button; TrayButtonType *bp; @@ -330,7 +344,9 @@ void Create(TrayComponentType *cp) { /*************************************************************************** ***************************************************************************/ -void Resize(TrayComponentType *cp) { +void +Resize(TrayComponentType *cp) +{ Destroy(cp); Create(cp); @@ -339,7 +355,9 @@ void Resize(TrayComponentType *cp) { /*************************************************************************** ***************************************************************************/ -void Destroy(TrayComponentType *cp) { +void +Destroy(TrayComponentType *cp) +{ if(cp->pixmap != None) { JXFreePixmap(display, cp->pixmap); } @@ -347,7 +365,9 @@ void Destroy(TrayComponentType *cp) { /*************************************************************************** ***************************************************************************/ -void ProcessButtonEvent(TrayComponentType *cp, int x, int y, int mask) { +void +ProcessButtonEvent(TrayComponentType *cp, int x, int y, int mask) +{ const ScreenType *sp; int mwidth, mheight; @@ -399,7 +419,9 @@ void ProcessButtonEvent(TrayComponentType *cp, int x, int y, int mask) { /*************************************************************************** ***************************************************************************/ -void ProcessMotionEvent(TrayComponentType *cp, int x, int y, int mask) { +void +ProcessMotionEvent(TrayComponentType *cp, int x, int y, int mask) +{ TrayButtonType *bp = (TrayButtonType*)cp->object; @@ -411,7 +433,9 @@ void ProcessMotionEvent(TrayComponentType *cp, int x, int y, int mask) { /*************************************************************************** ***************************************************************************/ -void SignalTrayButton(const TimeType *now, int x, int y) { +void +SignalTrayButton(const TimeType *now, int x, int y) +{ TrayButtonType *bp; const char *popup; @@ -436,7 +460,9 @@ void SignalTrayButton(const TimeType *now, int x, int y) { /*************************************************************************** ***************************************************************************/ -void ValidateTrayButtons() { +void +ValidateTrayButtons() +{ TrayButtonType *bp; int bindex; |