Ticket #72: default_theme.diff
File default_theme.diff, 1.5 KB (added by , 19 years ago) |
---|
-
libs/libmyth/mythcontext.cpp
1396 1396 if (dir.exists()) 1397 1397 return testdir; 1398 1398 1399 testdir = "../menutest/" + themename;1399 testdir = d->m_installprefix + "/share/mythtv/themes/G.A.N.T."; 1400 1400 dir.setPath(testdir); 1401 if (dir.exists()) 1401 if (dir.exists()){ 1402 cerr<<"Defaulting to G.A.N.T. theme"<<endl; 1402 1403 return testdir; 1404 } 1403 1405 1404 1406 1405 1407 // Don't complain about the "default" theme being missing … … 1409 1411 dir.setPath(testdir); 1410 1412 if (dir.exists()) 1411 1413 return testdir; 1412 } 1414 dir.setPath(testdir); 1413 1415 1414 1416 cerr << "Could not find theme: " << themename << endl; 1415 return ""; 1417 } 1416 1418 } 1417 1419 QString MythContext::GetMenuThemeDir(void) 1418 1420 { -
programs/mythuitest/main.cpp
25 25 if (themedir == "") 26 26 { 27 27 cerr << "Couldn't find theme " << themename << endl; 28 exit(0); 28 cerr << "loading Titivillus as default theme"<<endl; 29 themename = "Titivillus"; 30 themedir = gContext->FindThemeDir("/usr/local/share/mythtv/themes"); 31 cout<< themedir<<themename<<endl; 32 //exit(0); 29 33 } 30 34 31 35 gContext->LoadQtConfig();