3 --- src/core/Fl_Style.cpp.orig 2003-02-02 10:50:33.000000000 +0000
4 +++ src/core/Fl_Style.cpp
5 @@ -284,21 +284,34 @@ Fl_Theme Fl_Style::load_theme(const char
7 Fl_Theme Fl_Style::load_theme(const char* name)
9 + static const char so_suffix[] = ".so";
10 + const char *suffix = so_suffix;
12 // no name leaves the built-in default:
13 if (!name || !*name) return fltk_theme;
16 // add ".theme" if it is not there:
17 char name_buf[FL_PATH_MAX];
19 if (n < 6 || strcasecmp(name+n-6, ".theme"))
21 - snprintf(name_buf, FL_PATH_MAX, "%s.theme", name);
22 + snprintf(name_buf, FL_PATH_MAX, "%s.theme%s", name, suffix);
25 + snprintf(name_buf, FL_PATH_MAX, "%s%s", name, suffix);
31 // search for the file:
32 const char *path = fl_find_config_file(name);
34 + if (suffix == so_suffix) {
38 // If they said "default" it is ok if the plugin is not found:
39 if (!strncmp(name, "default.", 8)) return fltk_theme;