From: Dana Jansens Date: Sun, 23 Mar 2003 00:39:04 +0000 (+0000) Subject: add booleans X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=6cebd34855d6e29345ca821a17feb82753982e7e;p=chaz%2Fopenbox add booleans --- diff --git a/openbox/config.c b/openbox/config.c index ca7cc2b5..a6114b47 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -35,7 +35,7 @@ void config_startup() "Titlebar Font", "The fontstring specifying the font to " "be used in window titlebars.")); - config_def_set(config_def_new("font.shadow", Config_Integer, + config_def_set(config_def_new("font.shadow", Config_Bool, "Titlebar Font Shadow", "Whether or not the text in the window " "titlebars gets a drop shadow.")); diff --git a/openbox/config.h b/openbox/config.h index 7366e95f..9b62b8e5 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -5,12 +5,14 @@ typedef enum { Config_String, - Config_Integer + Config_Integer, + Config_Bool } ConfigValueType; typedef union { char *string; int integer; + gboolean bool; } ConfigValue; typedef struct {