diff --git a/source/ubinstall-gtk-components.c b/source/ubinstall-gtk-components.c index d76673a..9bfe3e0 100644 --- a/source/ubinstall-gtk-components.c +++ b/source/ubinstall-gtk-components.c @@ -453,7 +453,7 @@ gboolean yon_software_insert(struct row_data *row_input){ char *modules_prm = config(modules_parameter); char *modules_param = NULL; if (modules_prm&&!strcmp(modules_prm,"auto")){ - int final_size; + int final_size = 0; config_str final = NULL; for (int i=0;iname,",")){ gtk_widget_set_sensitive(row->InstallCheck,0); @@ -583,6 +595,18 @@ void yon_pacman_init(main_window *widgets){ yon_char_parsed_free(parsed,parsed_size); } modules_packages = yon_char_parsed_to_string(final,final_size,","); + } else if (!yon_char_is_empty(modules_packages)){ + int final_size = 0; + config_str final = NULL; + for (int i=0;iStartupAppsList,&iter); - gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,2,parsed[i],4,1,-1); + gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,1,parsed[i],4,1,-1); } } yon_char_parsed_free(parsed,parsed_size); @@ -123,7 +123,7 @@ void on_startup_app_add_accept(GtkWidget *self, main_window *widgets){ } GtkTreeIter iter; gtk_list_store_append(widgets->StartupAppsList,&iter); - gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,1,unit,2,app,3,description,4,1,-1); + gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,1,app,2,unit,3,description,4,1,-1); on_subwindow_close(self); } @@ -185,8 +185,8 @@ void on_startup_app_edit(GtkWidget *, main_window *widgets){ startup_service_window *window = yon_startup_app_window_new(); yon_gtk_window_setup(GTK_WINDOW(window->Window),GTK_WINDOW(widgets->MainWindow),APPLICATIONS_EDIT_TITLE_LABEL,icon_path,"app_add_window"); g_signal_connect(G_OBJECT(window->AcceptButton),"clicked",G_CALLBACK(on_startup_app_edit_accept),widgets); - gtk_entry_set_text(GTK_ENTRY(window->UnitEntry),unit); - gtk_entry_set_text(GTK_ENTRY(window->ServiceEntry),app); + gtk_entry_set_text(GTK_ENTRY(window->UnitEntry),app); + gtk_entry_set_text(GTK_ENTRY(window->ServiceEntry),unit); gtk_entry_set_text(GTK_ENTRY(window->DescriptionEntry),description); gtk_widget_show(window->Window); } @@ -203,7 +203,7 @@ int yon_startup_app_save(main_window *widgets){ list_size++; char *target; int status; - gtk_tree_model_get(model,&iter,0,&status,2,&target,-1); + gtk_tree_model_get(model,&iter,0,&status,1,&target,-1); if (status){ yon_char_parsed_add_or_create_if_exists(modules,&size,target); } diff --git a/ubinstall-gtk-service-window.glade b/ubinstall-gtk-service-window.glade index c311996..99d90b5 100644 --- a/ubinstall-gtk-service-window.glade +++ b/ubinstall-gtk-service-window.glade @@ -55,7 +55,7 @@ False 5 - + True False Service: @@ -91,7 +91,7 @@ False 5 - + True False Unit: