aboutsummaryrefslogtreecommitdiff
path: root/src/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/clock.c')
-rw-r--r--src/clock.c46
1 files changed, 34 insertions, 12 deletions
diff --git a/src/clock.c b/src/clock.c
index 147c1f6..27e0064 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -56,12 +56,16 @@ static void ProcessClockMotionEvent(TrayComponentType *cp,
static void DrawClock(ClockType *clk, const TimeType *now, int x, int y);
/** Initialize clocks. */
-void InitializeClock() {
+void
+InitializeClock()
+{
clocks = NULL;
}
/** Start clock(s). */
-void StartupClock() {
+void
+StartupClock()
+{
ClockType *clk;
@@ -77,11 +81,15 @@ void StartupClock() {
}
/** Stop clock(s). */
-void ShutdownClock() {
+void
+ShutdownClock()
+{
}
/** Destroy clock(s). */
-void DestroyClock() {
+void
+DestroyClock()
+{
ClockType *cp;
@@ -150,7 +158,9 @@ TrayComponentType *CreateClock(const char *format, const char *command,
}
/** Initialize a clock tray component. */
-void Create(TrayComponentType *cp) {
+void
+Create(TrayComponentType *cp)
+{
ClockType *clk;
@@ -169,7 +179,9 @@ void Create(TrayComponentType *cp) {
}
/** Resize a clock tray component. */
-void Resize(TrayComponentType *cp) {
+void
+Resize(TrayComponentType *cp)
+{
ClockType *clk;
TimeType now;
@@ -197,7 +209,9 @@ void Resize(TrayComponentType *cp) {
}
/** Destroy a clock tray component. */
-void Destroy(TrayComponentType *cp) {
+void
+Destroy(TrayComponentType *cp)
+{
ClockType *clk;
@@ -213,7 +227,9 @@ void Destroy(TrayComponentType *cp) {
}
/** Process a click event on a clock tray component. */
-void ProcessClockButtonEvent(TrayComponentType *cp, int x, int y, int mask) {
+void
+ProcessClockButtonEvent(TrayComponentType *cp, int x, int y, int mask)
+{
ClockType *clk;
@@ -230,8 +246,10 @@ void ProcessClockButtonEvent(TrayComponentType *cp, int x, int y, int mask) {
}
/** Process a motion event on a clock tray component. */
-void ProcessClockMotionEvent(TrayComponentType *cp,
- int x, int y, int mask) {
+void
+ProcessClockMotionEvent(TrayComponentType *cp,
+ int x, int y, int mask)
+{
Assert(cp);
@@ -243,7 +261,9 @@ void ProcessClockMotionEvent(TrayComponentType *cp,
}
/** Update a clock tray component. */
-void SignalClock(const TimeType *now, int x, int y) {
+void
+SignalClock(const TimeType *now, int x, int y)
+{
ClockType *cp;
int shouldDraw;
@@ -282,7 +302,9 @@ void SignalClock(const TimeType *now, int x, int y) {
}
/** Draw a clock tray component. */
-void DrawClock(ClockType *clk, const TimeType *now, int x, int y) {
+void
+DrawClock(ClockType *clk, const TimeType *now, int x, int y)
+{
TrayComponentType *cp;
const char *shortTime;