|
|
|
|
@ -123,7 +123,7 @@ void MainWindow::settings() {
|
|
|
|
|
lblDateTimeSetting->set_sensitive(false);
|
|
|
|
|
btnBoxAboutDialog->set_visible(false);
|
|
|
|
|
this->event();
|
|
|
|
|
imgInfo->set_from_icon_name("ubl-datetime-warning", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
imgInfo->set_from_icon_name("ru.ublinux.ubl-settings-datetime.warning", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
info_status_app("boxInfoMessError");
|
|
|
|
|
lblWarning->set_text(_("The program must be run as root"));
|
|
|
|
|
}
|
|
|
|
|
@ -414,7 +414,7 @@ void MainWindow::save_global_local_cfg() {
|
|
|
|
|
void MainWindow::info_warning_error(int mess) {
|
|
|
|
|
if (error_info > 0 || warning_info > 0) {
|
|
|
|
|
info_status_app("boxInfoMessError");
|
|
|
|
|
imgInfo->set_from_icon_name("ubl-datetime-warning", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
imgInfo->set_from_icon_name("ru.ublinux.ubl-settings-datetime.warning", Gtk::ICON_SIZE_MENU);
|
|
|
|
|
error_info = 0;
|
|
|
|
|
warning_info = 0;
|
|
|
|
|
string mess_error = "";
|
|
|
|
|
@ -442,7 +442,7 @@ void MainWindow::info_warning_error(int mess) {
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
info_status_app("boxInfoMessOK");
|
|
|
|
|
imgInfo->set_from_icon_name("ubl-datetime-checked", Gtk::ICON_SIZE_MENU);//Gtk::IconSize::INHERIT);
|
|
|
|
|
imgInfo->set_from_icon_name("ru.ublinux.ubl-datetime-checked", Gtk::ICON_SIZE_MENU);//Gtk::IconSize::INHERIT);
|
|
|
|
|
if (mess == 0) {
|
|
|
|
|
lblWarning->set_text(_("Local configuration downloaded successfully"));
|
|
|
|
|
}
|
|
|
|
|
|