wmbutton: wmbutton.h and wmb_libs.c code clean
This patch is a code clean patch: - Removes spaces and tabs at end of line. - Remove curly brackets not needed. - Change spaces by tabs. - Add spaces after and before operators. - Removes spaces not needed. - Better code style. - Added void as function argument.
This commit is contained in:
parent
cc68392ccb
commit
1400c7f7a6
2 changed files with 603 additions and 573 deletions
1120
wmbutton/wmb_libs.c
1120
wmbutton/wmb_libs.c
File diff suppressed because it is too large
Load diff
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
#define EOLN '\n' /* Defines the new line character */
|
#define EOLN '\n' /* Defines the new line character */
|
||||||
#define SIZE1 20 /* Defines the increment to increase the */
|
#define SIZE1 20 /* Defines the increment to increase the */
|
||||||
/* string by until a newline of EOF is found */
|
/* string by until a newline of EOF is found */
|
||||||
|
|
||||||
/****** Defines for Tool Tips ***************************************/
|
/****** Defines for Tool Tips ***************************************/
|
||||||
#define TOOLTIP_SUPPORT 1
|
#define TOOLTIP_SUPPORT 1
|
||||||
|
@ -66,41 +66,41 @@
|
||||||
/****** Typedefs *******************************************/
|
/****** Typedefs *******************************************/
|
||||||
|
|
||||||
struct Config_t {
|
struct Config_t {
|
||||||
char *configfile;
|
char *configfile;
|
||||||
char *buttonfile;
|
char *buttonfile;
|
||||||
char *Geometry_str;
|
char *Geometry_str;
|
||||||
char *Display_str;
|
char *Display_str;
|
||||||
int mmouse;
|
int mmouse;
|
||||||
int Verbose;
|
int Verbose;
|
||||||
char* szTooltipFont;
|
char* szTooltipFont;
|
||||||
int bTooltipSwapColors;
|
int bTooltipSwapColors;
|
||||||
int bTooltipDisable;
|
int bTooltipDisable;
|
||||||
};
|
};
|
||||||
|
|
||||||
/****** Function Prototyes *******************************************/
|
/****** Function Prototyes *******************************************/
|
||||||
void RunAppN(int app); // function to run app N as found in conf file
|
void RunAppN(int app); /* function to run app N as found in conf file */
|
||||||
char *Parse(int app); // parse data in config file
|
char *Parse(int app); /* parse data in config file */
|
||||||
void parseargs(int argc, char **argv);
|
void parseargs(int argc, char **argv);
|
||||||
char *readln(FILE *fp); // read line from file, return pointer to it
|
char *readln(FILE *fp); /* read line from file, return pointer to it */
|
||||||
void err_mess(int err, char *str); // Error Handling Routine
|
void err_mess(int err, char *str); /* Error Handling Routine */
|
||||||
void show_usage(void); // show usage message to stderr
|
void show_usage(void); /* show usage message to stderr */
|
||||||
int flush_expose(Window w);
|
int flush_expose(Window w);
|
||||||
|
|
||||||
|
|
||||||
/****** Tooltip Function Prototypes **********************************/
|
/****** Tooltip Function Prototypes **********************************/
|
||||||
void initTooltip();
|
void initTooltip();
|
||||||
void destroyTooltip ();
|
void destroyTooltip(void);
|
||||||
int hasTooltipSupport ();
|
int hasTooltipSupport(void);
|
||||||
void showTooltip (int nButton, int nMouseX, int nMouseY);
|
void showTooltip(int nButton, int nMouseX, int nMouseY);
|
||||||
void hideTooltip ();
|
void hideTooltip(void);
|
||||||
int hasTooltip ();
|
int hasTooltip(void);
|
||||||
void drawTooltipBalloon (Pixmap pix, GC gc, int x, int y, int w, int h, int side);
|
void drawTooltipBalloon(Pixmap pix, GC gc, int x, int y, int w, int h, int side);
|
||||||
Pixmap createTooltipPixmap (int width, int height, int side, Pixmap *mask);
|
Pixmap createTooltipPixmap(int width, int height, int side, Pixmap *mask);
|
||||||
|
|
||||||
void initTime ();
|
void initTime(void);
|
||||||
long currentTimeMillis ();
|
long currentTimeMillis(void);
|
||||||
void getWindowOrigin (Window w, int* nX, int* nY);
|
void getWindowOrigin(Window w, int *nX, int *nY);
|
||||||
void getButtonLocation (int nButton, int* nLocationX, int* nLocationY);
|
void getButtonLocation(int nButton, int *nLocationX, int *nLocationY);
|
||||||
char *getButtonAppNames (int nButton);
|
char *getButtonAppNames(int nButton);
|
||||||
|
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
|
|
Loading…
Reference in a new issue