|
|
|
|
@ -472,10 +472,14 @@ vector<string> MainWindow::get_setting_entry_all(string key, std::map <string, s
|
|
|
|
|
bool MainWindow::focus_out_txt_password(GdkEventFocus*) {
|
|
|
|
|
if (entryPasswordProtecc->get_text().length() == 0) {
|
|
|
|
|
info_status_app("boxInfoMessError");
|
|
|
|
|
imgInfo->set_from_icon_name("com.ublinux.ubl-settings-bootloader.warning", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
lblWarning->set_text(_("Enter your password"));
|
|
|
|
|
boxSave->set_sensitive(false);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
info_status_app("boxInfoMessOK");
|
|
|
|
|
imgInfo->set_from_icon_name("com.ublinux.ubl-settings-bootloader.checked", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
lblWarning->set_text("");
|
|
|
|
|
boxSave->set_sensitive(true);
|
|
|
|
|
string key = entryPasswordProtecc->get_text();
|
|
|
|
|
if (key != "************") {
|
|
|
|
|
@ -488,10 +492,14 @@ bool MainWindow::focus_out_txt_password(GdkEventFocus*) {
|
|
|
|
|
bool MainWindow::focus_out_txt_login(GdkEventFocus*) {
|
|
|
|
|
if (entrySecurityLogin->get_text().length() == 0) {
|
|
|
|
|
info_status_app("boxInfoMessError");
|
|
|
|
|
imgInfo->set_from_icon_name("com.ublinux.ubl-settings-bootloader.warning", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
lblWarning->set_text(_("Enter login"));
|
|
|
|
|
boxSave->set_sensitive(false);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
info_status_app("boxInfoMessOK");
|
|
|
|
|
imgInfo->set_from_icon_name("com.ublinux.ubl-settings-bootloader.checked", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
lblWarning->set_text("");
|
|
|
|
|
map_cmd_selection["GRUB_USER"] = entrySecurityLogin->get_text();
|
|
|
|
|
boxSave->set_sensitive(true);
|
|
|
|
|
}
|
|
|
|
|
@ -607,6 +615,9 @@ void MainWindow::change_security_login() {
|
|
|
|
|
entrySecurityLogin->set_sensitive(false);
|
|
|
|
|
entrySecurityLogin->set_text("");
|
|
|
|
|
boxSave->set_sensitive(true);
|
|
|
|
|
info_status_app("boxInfoMessOK");
|
|
|
|
|
imgInfo->set_from_icon_name("com.ublinux.ubl-settings-bootloader.checked", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
lblWarning->set_text("");
|
|
|
|
|
}
|
|
|
|
|
else if (index == 1) {
|
|
|
|
|
entrySecurityLogin->set_sensitive(true);
|
|
|
|
|
@ -643,6 +654,9 @@ void MainWindow::change_password_protecc() {
|
|
|
|
|
entryPasswordProtecc->set_sensitive(false);
|
|
|
|
|
entryPasswordProtecc->set_text("");
|
|
|
|
|
boxSave->set_sensitive(true);
|
|
|
|
|
info_status_app("boxInfoMessOK");
|
|
|
|
|
imgInfo->set_from_icon_name("com.ublinux.ubl-settings-bootloader.checked", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
lblWarning->set_text("");
|
|
|
|
|
}
|
|
|
|
|
else if (index == 1) {
|
|
|
|
|
entryPasswordProtecc->set_sensitive(true);
|
|
|
|
|
|