summaryrefslogtreecommitdiff
path: root/engines/openbox/openbox.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-22 23:26:43 +0000
committerDana Jansens <danakj@orodu.net>2003-03-22 23:26:43 +0000
commit5bf68f762b8fc87cf5583b645b948b4fe55f179f (patch)
tree9fd2db21c6fe08bc9433574dc429744f2966a79b /engines/openbox/openbox.c
parent4cc0d9b72d4bb084e6736c60319fd8e2ab92ef6a (diff)
make the openbox engine use the new config shit instead of the themerc shit.
order te startup so that plugins can set up their config shit before parsing the config, then the config is parsed, engine is loaded, and finally the plugins are officially started.
Diffstat (limited to 'engines/openbox/openbox.c')
-rw-r--r--engines/openbox/openbox.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/openbox/openbox.c b/engines/openbox/openbox.c
index 0123f474..f9ac31d4 100644
--- a/engines/openbox/openbox.c
+++ b/engines/openbox/openbox.c
@@ -3,7 +3,7 @@
#include "../../kernel/screen.h"
#include "../../kernel/extensions.h"
#include "../../kernel/dispatch.h"
-#include "../../kernel/themerc.h"
+#include "../../kernel/config.h"
#include "../../kernel/frame.h"
#include "../../render/render.h"
#include "../../render/color.h"
@@ -605,12 +605,18 @@ static void layout_title(ObFrame *self)
const char *lc;
int x;
gboolean n, d, i, l, m ,c;
+ ConfigValue layout;
n = d = i = l = m = c = FALSE;
+ if (!config_get("titlebar.layout", Config_String, &layout)) {
+ layout.string = "NDLIMC";
+ config_set("titlebar.layout", Config_String, layout);
+ }
+
/* figure out whats being shown, and the width of the label */
self->label_width = self->width - (s_bevel + 1) * 2;
- for (lc = themerc_titlebar_layout; *lc != '\0'; ++lc) {
+ for (lc = layout.string; *lc != '\0'; ++lc) {
switch (*lc) {
case 'N':
if (!(self->frame.client->decorations & Decor_Icon)) break;
@@ -678,7 +684,7 @@ static void layout_title(ObFrame *self)
}
x = s_bevel + 1;
- for (lc = themerc_titlebar_layout; *lc != '\0'; ++lc) {
+ for (lc = layout.string; *lc != '\0'; ++lc) {
switch (*lc) {
case 'N':
if (!n) break;