Changeset 3ddcf2d9cdfa

Show
Ignore:
Timestamp:
11/16/08 21:44:29 (7 weeks ago)
Author:
Milosz Derezynski <monostatic77@…>
Branch:
trunk
Message:

* Oops: load config file first, then register keys+domains using the new scheme/system

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • mcs/mcs.cpp

    r999 r1000  
    285285        if (!xpathObj) 
    286286        { 
     287            g_message("No xpathobj"); 
    287288            goto clear_xpathobj; 
    288289        } 
     
    290291        if (!xpathObj->nodesetval) 
    291292        { 
     293            g_message("No nodes"); 
    292294            goto clear_xpathobj; 
    293295        } 
     
    295297        if (!xpathObj->nodesetval->nodeNr) 
    296298        { 
     299            g_message("No nodeNr"); 
    297300            goto clear_xpathobj; 
    298301        } 
     
    300303        if (xpathObj->nodesetval->nodeNr > 1) //XXX: There can only be ONE node! 
    301304        { 
     305            g_message("More than 1 key with the same name"); 
    302306            goto clear_xpathobj; 
    303307        } 
     
    305309        if (!xpathObj->nodesetval->nodeTab[0]->children) 
    306310        { 
     311            g_message("Key is empty"); 
    307312            goto clear_xpathobj; 
    308313        } 
  • mpx/main.cc

    r997 r1000  
    130130    { 
    131131        try{ 
     132 
    132133            mcs = new Mcs::Mcs (Glib::build_filename (get_app_config_dir (), "config.xml"), "mpx", 0.01); 
    133         } catch( Mcs::Mcs::Exceptions & cxe ) 
    134         { 
     134 
     135        } catch( Mcs::Mcs::Exceptions & cxe ) { 
     136 
    135137            if (cxe == Mcs::Mcs::PARSE_ERROR) 
    136138            { 
     
    138140            } 
    139141        } 
     142 
     143        mcs->load (Mcs::Mcs::VERSION_IGNORE); 
    140144 
    141145        mcs->domain_register ("main-window"); 
     
    275279        mcs->domain_register("PlaybackSourceMusicLib"); 
    276280        mcs->key_register("PlaybackSourceMusicLib", "divider-position", 250); 
    277  
    278         mcs->load (Mcs::Mcs::VERSION_IGNORE); 
    279281    } 
    280282