Fixed Misc option

pull/79/head
parent 80827ec0ad
commit 42433cd51f

@ -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){

@ -154,7 +154,7 @@ void yon_interface_update(main_window *widgets){
{
app_section *cur_section = yon_app_section_new();
cur_section->name = yon_char_new(_("Misc"));
cur_section->categories = yon_char_parsed_new(&cur_section->categories_size,"X-UBL-SettingsManager;",NULL);
cur_section->categories = yon_char_parsed_new(&cur_section->categories_size,"X-UBL-SettingsManager",NULL);
yon_dictionary_add_or_create_if_exists_with_data(main_config.sections,cur_section->name,cur_section);
}
}

Loading…
Cancel
Save