diff --git a/3rdparty/mmu_man/themes/MSThemeImporter.cpp b/3rdparty/mmu_man/themes/MSThemeImporter.cpp index fb5381c795..11f53559b7 100644 --- a/3rdparty/mmu_man/themes/MSThemeImporter.cpp +++ b/3rdparty/mmu_man/themes/MSThemeImporter.cpp @@ -608,7 +608,7 @@ status_t MSThemeImporter::ParseWinPath(BDirectory &rootDir, const char *from, BP BDirectory dir; while (p.Length()) { BString component; - PRINT(("ParseWinPath: p.L %d p '%s'\n", p.Length(), p.String())); + //PRINT(("ParseWinPath: p.L %d p '%s'\n", p.Length(), p.String())); int32 len = p.FindFirst('\\'); if (len < 0) len = p.Length(); @@ -617,8 +617,8 @@ status_t MSThemeImporter::ParseWinPath(BDirectory &rootDir, const char *from, BP err = dir.SetTo(to.Path()); if (err < B_OK) return err; - PRINT(("ParseWinPath: at '%s'\n", to.Path())); - PRINT(("ParseWinPath: testing '%s'\n", component.String())); + //PRINT(("ParseWinPath: at '%s'\n", to.Path())); + //PRINT(("ParseWinPath: testing '%s'\n", component.String())); if (dir.Contains(component.String())) { to.Append(component.String()); continue; @@ -626,25 +626,25 @@ status_t MSThemeImporter::ParseWinPath(BDirectory &rootDir, const char *from, BP // can't find as is, try various capitalizations // (caseless fs SUXOR) component.Capitalize(); - PRINT(("ParseWinPath: testing '%s'\n", component.String())); + //PRINT(("ParseWinPath: testing '%s'\n", component.String())); if (dir.Contains(component.String())) { to.Append(component.String()); continue; } component.CapitalizeEachWord(); - PRINT(("ParseWinPath: testing '%s'\n", component.String())); + //PRINT(("ParseWinPath: testing '%s'\n", component.String())); if (dir.Contains(component.String())) { to.Append(component.String()); continue; } component.ToLower(); - PRINT(("ParseWinPath: testing '%s'\n", component.String())); + //PRINT(("ParseWinPath: testing '%s'\n", component.String())); if (dir.Contains(component.String())) { to.Append(component.String()); continue; } component.ToUpper(); - PRINT(("ParseWinPath: testing '%s'\n", component.String())); + //PRINT(("ParseWinPath: testing '%s'\n", component.String())); if (dir.Contains(component.String())) { to.Append(component.String()); continue; diff --git a/3rdparty/mmu_man/themes/addons/BeOSWindowDecorAddon.cpp b/3rdparty/mmu_man/themes/addons/BeOSWindowDecorAddon.cpp index 2de24f1e30..afa4a3cd60 100644 --- a/3rdparty/mmu_man/themes/addons/BeOSWindowDecorAddon.cpp +++ b/3rdparty/mmu_man/themes/addons/BeOSWindowDecorAddon.cpp @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -48,11 +49,13 @@ status_t set_window_decor_safe(const char *name, BMessage *globals) { // make sure the decor exists (set_window_decor() always returns B_OK) + //PRINT(("set_window_decor_safe(%s, %p)\n", name, globals)); BPath p("/etc/decors/"); p.Append(name); BNode n(p.Path()); if (n.InitCheck() < B_OK || !n.IsFile()) return ENOENT; + //PRINT(("set_window_decor_safe: found\n")); set_window_decor(name, globals); return B_OK; } @@ -135,8 +138,9 @@ status_t DecorThemesAddon::ApplyTheme(BMessage &theme, uint32 flags) #ifdef B_BEOS_VERSION_DANO bool decorDone = false; + int i; // try each name until one works - for (int i = 0; window_decor.FindString("window:decor", i, &decorName) == B_OK; i++) { + for (i = 0; window_decor.FindString("window:decor", i, &decorName) == B_OK; i++) { err = set_window_decor_safe(decorName.String(), (window_decor.FindMessage("window:decor_globals", &globals) == B_OK)?&globals:NULL); if (err < B_OK) @@ -145,9 +149,9 @@ status_t DecorThemesAddon::ApplyTheme(BMessage &theme, uint32 flags) break; } // none match but we did have one, force the default with the globals - if (!decorDone && decorName.Length()) { + if (!decorDone && i > 0) { decorDone = true; - set_window_decor_safe(decorName.String(), + set_window_decor("Default", (window_decor.FindMessage("window:decor_globals", &globals) == B_OK)?&globals:NULL); } // none... maybe R5 number ?