summaryrefslogtreecommitdiff
path: root/openbox/config.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2005-07-14 13:44:33 +0000
committerMikael Magnusson <mikachu@comhem.se>2005-07-14 13:44:33 +0000
commit1cfb65bc401ee8f44103a1a74404d191106a7535 (patch)
tree8da8885e28dec7487a71d2d13798fec725e91236 /openbox/config.c
parent6ec1881579c8b4499399ed25026f1e5376d0c04b (diff)
add a config option hideDisabled in the theme section that hides disabled buttons instead of showing them as disabled, based on patch in bug #2310
Diffstat (limited to 'openbox/config.c')
-rw-r--r--openbox/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/config.c b/openbox/config.c
index 8c86b973..c43db935 100644
--- a/openbox/config.c
+++ b/openbox/config.c
@@ -35,6 +35,7 @@ ObPlacePolicy config_place_policy;
gchar *config_theme;
gboolean config_theme_keepborder;
+gboolean config_theme_hidedisabled;
gchar *config_title_layout;
@@ -256,6 +257,8 @@ static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
}
if ((n = parse_find_node("keepBorder", node)))
config_theme_keepborder = parse_bool(doc, n);
+ if ((n = parse_find_node("hideDisabled", node)))
+ config_theme_hidedisabled = parse_bool(doc, n);
}
static void parse_desktops(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
@@ -556,6 +559,7 @@ void config_startup(ObParseInst *i)
config_title_layout = g_strdup("NLIMC");
config_theme_keepborder = TRUE;
+ config_theme_hidedisabled = FALSE;
parse_register(i, "theme", parse_theme, NULL);