summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@debian.org>2011-12-14 19:28:41 +0900
committerArnaud Fontaine <arnau@debian.org>2011-12-14 20:15:33 +0900
commit79549aefac1c7babbcb54e270520caaee8982b15 (patch)
treedda9148e21508e21694725a3e5fc50110044c807
parent84d26bdf9c96b51dccedd89b70095bae1b13fdd5 (diff)
Use Bool rather than int type for booleans.
-rw-r--r--transSet.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/transSet.c b/transSet.c
index 292e344..4a32373 100644
--- a/transSet.c
+++ b/transSet.c
@@ -108,16 +108,16 @@ Get_Actual_Window (Display *dpy)
int
main (int argc, char **argv)
{
- int gotd = 0;
+ Bool gotd = False;
double d;
unsigned int opacity;
unsigned int current_opacity;
int select_method = 0; // 0 = click, 1 = point, 2 = id, 3 = name
- int flag_toggle = 0;
- int flag_increase = 0;
- int flag_decrease = 0;
- int flag_verbose = 0;
- int flag_no_regex = 0;
+ Bool flag_toggle = False;
+ Bool flag_increase = False;
+ Bool flag_decrease = False;
+ Bool flag_verbose = False;
+ Bool flag_no_regex = False;
int o;
float min = 0, max = 1;
char *idstr = NULL, *namestr = NULL;
@@ -155,7 +155,7 @@ main (int argc, char **argv)
long_options, &options_index)) != -1) {
switch (o) {
case 't':
- flag_toggle = 1;
+ flag_toggle = True;
break;
case 'h':
Usage ();
@@ -178,16 +178,16 @@ main (int argc, char **argv)
select_method = 4;
break;
case '1':
- flag_increase = 1;
+ flag_increase = True;
break;
case '2':
- flag_decrease = 1;
+ flag_decrease = True;
break;
case 'v':
- flag_verbose = 1;
+ flag_verbose = True;
break;
case '4':
- flag_no_regex = 1;
+ flag_no_regex = True;
break;
case 'm':
min = atof (optarg);
@@ -207,7 +207,7 @@ main (int argc, char **argv)
if (optind < argc) {
d = atof (argv[optind]);
- gotd = 1;
+ gotd = True;
}
/* select the window to make transparent */
@@ -302,7 +302,7 @@ main (int argc, char **argv)
/* for user-compability with transset */
if (!gotd)
- flag_toggle = 1;
+ flag_toggle = True;
/* toggle */
if (flag_toggle)