From 12a8a8a55e7f4fdb42994515af77ee8f9ec12277 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 11 Sep 2025 18:03:20 +0600 Subject: [PATCH] Config loading --- source/ubinstall-gtk.c | 6 +++--- source/ubinstall-gtk.h | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index ca9e521..b21e890 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -631,9 +631,9 @@ main_window *yon_main_window_complete(){ gtk_menu_shell_append(GTK_MENU_SHELL(menu),widgets->DocumentationMenuItem); gtk_menu_shell_append(GTK_MENU_SHELL(menu),widgets->AboutMenuItem); - // g_signal_connect(G_OBJECT(widgets->LoadGlobalConfigurationMenuItem),"activate",G_CALLBACK(on_config_global_load),widgets); - // g_signal_connect(G_OBJECT(widgets->LoadLocalConfigurationMenuItem),"activate",G_CALLBACK(on_config_local_load),widgets); - // g_signal_connect(G_OBJECT(widgets->LoadExternalConfigurationMenuItem),"activate",G_CALLBACK(on_config_custom_load),widgets); + g_signal_connect(G_OBJECT(widgets->LoadGlobalConfigurationMenuItem),"activate",G_CALLBACK(on_config_global_load),widgets); + g_signal_connect(G_OBJECT(widgets->LoadLocalConfigurationMenuItem),"activate",G_CALLBACK(on_config_local_load),widgets); + g_signal_connect(G_OBJECT(widgets->LoadExternalConfigurationMenuItem),"activate",G_CALLBACK(on_config_custom_load),widgets); // g_signal_connect(G_OBJECT(widgets->SaveGlobalLocalConfigurationMenuItem),"activate",G_CALLBACK(on_config_global_local_save),widgets); // g_signal_connect(G_OBJECT(widgets->SaveGlobalConfigurationMenuItem),"activate",G_CALLBACK(on_config_global_save),widgets); diff --git a/source/ubinstall-gtk.h b/source/ubinstall-gtk.h index 1f78de0..2838141 100755 --- a/source/ubinstall-gtk.h +++ b/source/ubinstall-gtk.h @@ -143,12 +143,6 @@ layout && /description:/ {\ #define modules_extra_parameter_command "ubconfig --source global get [autoinstall] AUTOINSTALL[modules_extra]" /*------------------------------------------------------------*/ -// #define user_name_parameter "AUTOINSTALL[user_name]" -// #define user_name_parameter_command "ubconfig --source global --conarg get [autoinstall] AUTOINSTALL[user_name]" -// #define user_gecos_parameter "AUTOINSTALL[user_gecos]" -// #define user_gecos_parameter_command "ubconfig --source global get [autoinstall] AUTOINSTALL[user_gecos]" -// #define user_password_parameter "AUTOINSTALL[user_password]" -// #define user_password_parameter_command "ubconfig --source global --conarg get [autoinstall] AUTOINSTALL[user_password]" #define root_password_parameter "AUTOINSTALL[ubconfig set [users] DEFAULTROOTPASSWD]" #define root_password_parameter_command "ubconfig --source global --conarg get [autoinstall] AUTOINSTALL['ubconfig set [users] DEFAULTROOTPASSWD']" #define autologin_parameter "AUTOINSTALL[ubconfig set [desktop] AUTOLOGINUSER]"