diff --git a/source/ubinstall-gtk-users.c b/source/ubinstall-gtk-users.c index 80ca30e..0f4d915 100644 --- a/source/ubinstall-gtk-users.c +++ b/source/ubinstall-gtk-users.c @@ -101,12 +101,13 @@ int yon_user_save(yon_user_struct *user){ return 1; } -void on_user_autoloin_switch(GtkWidget *, int status, main_window *){ +gboolean on_user_autoloin_switch(GtkWidget *, int status, main_window *){ if (status){ yon_config_register(autologin_parameter,autologin_parameter_command,"yes"); } else { yon_config_register(autologin_parameter,autologin_parameter_command,"no"); } + return status; } void on_user_add(GtkWidget *,main_window *widgets){ diff --git a/source/ubinstall-gtk.h b/source/ubinstall-gtk.h index a6bac12..53748f3 100755 --- a/source/ubinstall-gtk.h +++ b/source/ubinstall-gtk.h @@ -1619,4 +1619,4 @@ void on_status_update(GtkWidget *,main_window *widgets); gboolean on_kernel_addon_menu_block(GObject *self, GdkEventButton *event); void on_os_components_uncheck_all(GtkWidget *,main_window *widgets); gboolean yon_os_components_load(main_window *widgets); -void on_user_autoloin_switch(GtkWidget *, int status, main_window *); \ No newline at end of file +gboolean on_user_autoloin_switch(GtkWidget *, int status, main_window *); \ No newline at end of file