default values

This commit is contained in:
fluxgen 2003-08-16 10:01:57 +00:00
parent 502dd6b3e3
commit 3496a1e198

View file

@ -19,7 +19,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: RootTheme.cc,v 1.2 2003/04/28 00:38:42 fluxgen Exp $
// $Id: RootTheme.cc,v 1.3 2003/08/16 10:01:57 fluxgen Exp $
#include "RootTheme.hh"
@ -35,6 +35,10 @@ RootTheme::RootTheme(int screen_num, std::string &screen_root_command):
m_border_color(*this, "borderColor", "BorderColor"),
m_screen_root_command(screen_root_command) {
*m_border_width = 0;
*m_bevel_width = 0;
*m_handle_width = 0;
XGCValues gcv;
Display *disp = FbTk::App::instance()->display();
gcv.foreground = WhitePixel(disp, screen_num)^BlackPixel(disp, screen_num);
@ -51,6 +55,16 @@ RootTheme::~RootTheme() {
}
void RootTheme::reconfigTheme() {
// clamp values to "normal" size
if (*m_border_width > 20)
*m_border_width = 20;
if (*m_bevel_width > 20)
*m_bevel_width = 20;
if (*m_handle_width > 20)
*m_handle_width = 20;
// override resource root command?
if (m_screen_root_command == "") {
// do root command