From 4ca73b623b80d62d626b139ecfb12316f7b1d7d6 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Tue, 21 Mar 2023 14:56:44 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D1=84?= =?UTF-8?q?=D0=BE=D0=BA=D1=83=D1=81=D0=B0=20=D0=BF=D0=BE=D0=BB=D1=8F=20ntp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 9 +++------ style.css | 7 +++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index b76716f..150d7d1 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -246,6 +246,7 @@ void MainWindow::info_status_app(string stule) { boxInfo->add_class(stule); } + void MainWindow::get_builder() { builder->set_translation_domain(path_app); builder->get_widget("boxColor", boxColor); @@ -381,7 +382,6 @@ void MainWindow::event_zone() { void MainWindow::synopsis_show() { int start_error = error_info; - //su -l superadmin -c " DISPLAY=$DISPLAY string cmd = "xdg-open " + string(_("https://wiki.ublinux.com/ru/Программное_обеспечение/Программы_и_утилиты/Все/")) + app_name; if (geteuid() == 0) { string response_user = this->call("who"); @@ -389,7 +389,6 @@ void MainWindow::synopsis_show() { if (index != std::string::npos){ response_user = response_user.substr(0, index); cmd = "su -l " + response_user + " -c \" DISPLAY=$DISPLAY " + cmd + " \""; - cout << "" << cmd << endl; } } wrapper_system(cmd, "&"); @@ -929,6 +928,8 @@ void MainWindow::event_entry_cbDhcp() { else if (activ_index == 2) { txtNtpServer->set_text(""); if (flag_ntp_edit == false) { + txtNtpServer->set_sensitive(true); + txtNtpServer->grab_focus(); string cmd = ""; if (flag_load == false) { cmd = "ubconfig --default --source system get network NTPSERVERS"; @@ -939,12 +940,8 @@ void MainWindow::event_entry_cbDhcp() { string response = this->get_ubconfig_value(cmd); if (response != "dhcp" && response != "default") { txtNtpServer->set_text(response); - txtNtpServer->grab_focus(); - txtNtpServer->unset_cursor(); - cout << 222 << endl; } this->write_config(response, "dhcp"); - txtNtpServer->set_sensitive(true); } else { this->write_config("", "dhcp"); diff --git a/style.css b/style.css index d8c59cf..e323d55 100644 --- a/style.css +++ b/style.css @@ -86,4 +86,11 @@ border-radius:2px; .bkim_no_plug{ background-color: transparent; opacity:0.99; +} + +.entry { + +} +.entry:focus { + } \ No newline at end of file