config.c for the Openbox window manager
Copyright (c) 2006 Mikael Magnusson
- Copyright (c) 2003 Ben Jansens
+ Copyright (c) 2003-2007 Dana Jansens
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "screen.h"
#include "parser/parse.h"
#include "openbox.h"
+#include "gettext.h"
gboolean config_focus_new;
gboolean config_focus_follow;
gboolean config_theme_hidedisabled;
gchar *config_title_layout;
-gboolean config_title_number;
RrFont *config_font_activewindow;
RrFont *config_font_inactivewindow;
gint config_mouse_dclicktime;
gboolean config_menu_warppointer;
-gboolean config_menu_xorstyle;
guint config_menu_hide_delay;
gboolean config_menu_middle;
guint config_submenu_show_delay;
g_free(config_title_layout);
config_title_layout = parse_string(doc, n);
}
- if ((n = parse_find_node("titleNumber", node)))
- config_title_number = parse_bool(doc, n);
if ((n = parse_find_node("keepBorder", node)))
config_theme_keepborder = parse_bool(doc, n);
if ((n = parse_find_node("hideDisabled", node)))
gint size = RrDefaultFontSize;
RrFontWeight weight = RrDefaultFontWeight;
RrFontSlant slant = RrDefaultFontSlant;
- gboolean shadow = RrDefaultFontShadow;
- gint offset = RrDefaultFontShadowOffset;
- gchar tint = RrDefaultFontShadowTint;
if (parse_attr_contains("ActiveWindow", n, "place"))
font = &config_font_activewindow;
slant = RR_FONTSLANT_OBLIQUE;
g_free(s);
}
- if ((fnode = parse_find_node("shadow", n->children)))
- shadow = parse_bool(doc, fnode);
- if ((fnode = parse_find_node("shadowoffset", n->children)))
- offset = parse_int(doc, fnode);
- if ((fnode = parse_find_node("shadowtint", n->children))) {
- tint = parse_int(doc, fnode);
- if (tint > 100) tint = 100;
- else if (tint < -100) tint = -100;
- }
- *font = RrFontOpen(ob_rr_inst, name, size, weight, slant,
- shadow, offset, tint);
+ *font = RrFontOpen(ob_rr_inst, name, size, weight, slant);
g_free(name);
next_font:
n = parse_find_node("font", n->next);
config_dock_app_move_button = b;
config_dock_app_move_modifiers = s;
} else {
- g_warning("invalid button '%s'", str);
+ g_message(_("Invalid button '%s' specified in config file"), str);
}
g_free(str);
}
}
if ((n = parse_find_node("warpPointer", node)))
config_menu_warppointer = parse_bool(doc, n);
- if ((n = parse_find_node("xorStyle", node)))
- config_menu_xorstyle = parse_bool(doc, n);
if ((n = parse_find_node("hideDelay", node)))
config_menu_hide_delay = parse_int(doc, n);
if ((n = parse_find_node("middle", node)))
config_theme = NULL;
config_title_layout = g_strdup("NLIMC");
- config_title_number = TRUE;
config_theme_keepborder = TRUE;
config_theme_hidedisabled = FALSE;
parse_register(i, "resistance", parse_resistance, NULL);
config_menu_warppointer = TRUE;
- config_menu_xorstyle = TRUE;
config_menu_hide_delay = 250;
config_menu_middle = FALSE;
config_submenu_show_delay = 0;