diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-02 07:46:46 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-02 07:46:46 +0000 |
| commit | 71c8b0b7b2cf2fa79ac4c81b7756f2b230f2de7a (patch) | |
| tree | 7294b08a6708be789f5f674418c7dc80809d78b4 /engines/openbox/obengine.c | |
| parent | 4875ff5f8ed227a989c699fe6d8390396e485815 (diff) | |
create a generic tokenizer/sectionizer for the config file. pass off the token to functions registered for each section to parse them further. some fixes for the engine irt font shadows, and fixed a bug with rendering the iconify button when it was not in the layout
Diffstat (limited to 'engines/openbox/obengine.c')
| -rw-r--r-- | engines/openbox/obengine.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/openbox/obengine.c b/engines/openbox/obengine.c index b6b9638f..f98bb36c 100644 --- a/engines/openbox/obengine.c +++ b/engines/openbox/obengine.c @@ -36,6 +36,7 @@ color_rgb *ob_s_titlebut_unfocused_color; 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; @@ -495,7 +496,7 @@ void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized) self->icon_x = -1; self->desk_x = -1; self->shade_x = -1; - self->icon_x = -1; + self->iconify_x = -1; self->label_x = -1; self->max_x = -1; self->close_x = -1; @@ -712,10 +713,8 @@ static void layout_title(ObFrame *self) n = d = i = l = m = c = s = FALSE; - if (!config_get("titlebar.layout", Config_String, &layout)) { - layout.string = "NDSLIMC"; - config_set("titlebar.layout", Config_String, layout); - } + 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; |
