aboutsummaryrefslogtreecommitdiff
path: root/src/traybutton.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/traybutton.c')
-rw-r--r--src/traybutton.c52
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;