From e96f9f3869c6ea5803f5759bf1737547a46be22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 19 Jul 2021 11:32:34 +0200 Subject: Change function declaration style This is a very sweeping change, but I feel that it is necessary. --- src/traybutton.c | 52 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 39 insertions(+), 13 deletions(-) (limited to 'src/traybutton.c') 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; -- cgit v1.2.3