Project

General

Profile

Bug #140 ยป 0039-Qt-Remove-qtg_get_gui_specific_themes_directories-us.patch

Marko Lindqvist, 01/07/2024 09:28 AM

View differences:

client/gui-qt/themes.cpp
*count = strvec_size(data_dirs);
strvec_iterate(data_dirs, data_dir) {
char buf[strlen(data_dir) + strlen("/themes/gui-qt") + 1];
int len = strlen(data_dir) + strlen("/themes/gui-qt") + 1;
char *buf = (char *)fc_malloc(len);
fc_snprintf(buf, sizeof(buf), "%s/themes/gui-qt", data_dir);
fc_snprintf(buf, len, "%s/themes/gui-qt", data_dir);
directories[i++] = fc_strdup(buf);
directories[i++] = buf;
} strvec_iterate_end;
return directories;
    (1-1/1)