diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-05 20:27:03 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-05 20:27:03 +0000 |
| commit | cbbf90a718ecc6836ef7a77b9040aebb9da348b8 (patch) | |
| tree | a53bcdc993f850bc0500daaebd5b1bd0b7b50ee1 /engines/openbox/obengine.c | |
| parent | 88f8ebada97c4c82252badeb57b7e71a2940600b (diff) | |
change how rc parsing will work. a=b will be parsed in any [section] and given to a separate parsing callback. no more general config infrastructure needed/
Diffstat (limited to 'engines/openbox/obengine.c')
| -rw-r--r-- | engines/openbox/obengine.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/engines/openbox/obengine.c b/engines/openbox/obengine.c index 4dda711e..bad7b51e 100644 --- a/engines/openbox/obengine.c +++ b/engines/openbox/obengine.c @@ -1,10 +1,10 @@ #include "obtheme.h" #include "obrender.h" #include "obengine.h" -#include "../../kernel/openbox.h" -#include "../../kernel/extensions.h" -#include "../../kernel/dispatch.h" -#include "../../kernel/config.h" +#include "kernel/openbox.h" +#include "kernel/extensions.h" +#include "kernel/dispatch.h" +#include "kernel/engine.h" #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> @@ -34,9 +34,6 @@ color_rgb *ob_s_titlebut_focused_color; color_rgb *ob_s_titlebut_unfocused_color; /* style settings - fonts */ int ob_s_winfont_height; -int ob_s_winfont_shadow; -int ob_s_winfont_shadow_offset; -int ob_s_winfont_shadow_tint; ObFont *ob_s_winfont; /* style settings - masks */ pixmap_mask *ob_s_max_set_mask; @@ -694,16 +691,12 @@ static void layout_title(ObFrame *self) char *lc; int x; gboolean n, d, i, l, m, c, s; - ConfigValue layout; n = d = i = l = m = c = s = FALSE; - if (!config_get("titlebar.layout", Config_String, &layout)) - g_assert_not_reached(); - /* figure out whats being shown, and the width of the label */ self->label_width = self->width - (ob_s_bevel + 1) * 2; - for (lc = layout.string; *lc != '\0'; ++lc) { + for (lc = engine_layout; *lc != '\0'; ++lc) { switch (*lc) { case 'N': if (!(self->frame.client->decorations & Decor_Icon)) break; @@ -761,7 +754,7 @@ static void layout_title(ObFrame *self) if (!c) XUnmapWindow(ob_display, self->close); x = ob_s_bevel + 1; - for (lc = layout.string; *lc != '\0'; ++lc) { + for (lc = engine_layout; *lc != '\0'; ++lc) { switch (*lc) { case 'N': if (!n) break; |
