|
|
|
|
@ -67,6 +67,18 @@ void on_main_activate(GtkFlowBox* , GtkFlowBoxChild* child, main_theme_struct *t
|
|
|
|
|
void yon_main_section_setup_apps(main_section *cur_section, const char *target){
|
|
|
|
|
if (yon_char_is_empty(target)) return;
|
|
|
|
|
apps *cur_app = yon_apps_get((char*)target);
|
|
|
|
|
{
|
|
|
|
|
if (cur_section->section->categories_size==1&&!strcmp(cur_section->section->categories[0],"X-UBL-SettingsManager")) {
|
|
|
|
|
int found_else = 0;
|
|
|
|
|
for (int i=0;i<cur_app->categories_size;i++){
|
|
|
|
|
if (strstr(cur_app->Categories[i],"X-UBL-")&&strcmp(cur_app->Categories[i],"X-UBL-SettingsManager")){
|
|
|
|
|
found_else = 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (found_else) return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
GtkIconInfo *info = gtk_icon_theme_lookup_icon_for_scale(gtk_icon_theme_get_default(), !yon_char_is_empty(cur_app->Icon)?cur_app->Icon:icon_path, main_config.apps_icon_size,1,GTK_ICON_LOOKUP_FORCE_SIZE);
|
|
|
|
|
GtkWidget *Image = NULL;
|
|
|
|
|
if (info){
|
|
|
|
|
|