|
|
|
|
@ -46,6 +46,8 @@ void on_gnome_activate(GtkWidget *,GtkListBoxRow *self, gnome_theme_struct *them
|
|
|
|
|
if (!yon_char_is_empty(command_args)) free(command_args);
|
|
|
|
|
command_args = temp;
|
|
|
|
|
}
|
|
|
|
|
yon_debug_output("%s ",command);
|
|
|
|
|
yon_debug_output("%s\n",command_args);
|
|
|
|
|
yon_launch_app_with_arguments(command,command_args);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -83,6 +85,19 @@ gnome_section *yon_gnome_section_new(){
|
|
|
|
|
|
|
|
|
|
void yon_gnome_section_setup_apps(gnome_section *cur_section, const char *target){
|
|
|
|
|
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){
|
|
|
|
|
|