From 7e5f2a4e2954f31c732936b29ffbaa7d9994878c Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Mon, 20 Feb 2023 12:19:28 +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=B4=D0=B8=D0=B7=D0=B0=D0=B9=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 8 ++++++-- source/ubl-settings-datetime.h | 1 + ubl-settings-datetime.glade | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 264f9a4..8a05a04 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -75,10 +75,12 @@ void MainWindow::settings(){ numTimeMin->set_increments(1.0,1.0); this->get_config(); this->flag_block_gui(); + btnBoxAboutDialog->set_visible(false); this->event(); this->parse_text_date(); btnSaveGlobl->set_sensitive(false); this->download_local_cfg(); + } else{ btnSaveLocal->set_sensitive(false); @@ -102,6 +104,7 @@ void MainWindow::settings(){ txtNtpServer->set_sensitive(false); lblZone1Glob->set_sensitive(false); lblDateTimeSetting->set_sensitive(false); + btnBoxAboutDialog->set_visible(false); this->event(); } @@ -117,6 +120,8 @@ int MainWindow::check_root(){ } void MainWindow::lacalization(){ + //aboutWindows->set_title(_("")); + aboutWindows->set_comments(_("Settings the date and time")); lblSave->set_label(_("Save")); lblDownload->set_label(_("Download")); btnDownloadGlobal->set_label(_("Download global")); @@ -242,9 +247,8 @@ void MainWindow::get_builder(){ builder->get_widget("btnDownloadlocal", btnDownloadlocal); builder->get_widget("btnSettings", btnSettings); builder->get_widget("aboutWindows", aboutWindows); - + builder->get_widget("btnBoxAboutDialog", btnBoxAboutDialog); //builder->get_widget("cbxSynchronizeNtp",cbxSynchronizeNtp); - this->add_CSS(); } void MainWindow::gui_exit(){ diff --git a/source/ubl-settings-datetime.h b/source/ubl-settings-datetime.h index f6af689..fea3c82 100644 --- a/source/ubl-settings-datetime.h +++ b/source/ubl-settings-datetime.h @@ -92,6 +92,7 @@ class MainWindow : public Gtk::ApplicationWindow { Gtk::MenuItem *btnDownloadGlobal; Gtk::MenuItem *btnDownloadlocal; Gtk::AboutDialog *aboutWindows; + Gtk::ButtonBox *btnBoxAboutDialog; //Gtk::MenuButton *btnSave; //Gtk::MenuButton *btnDownload; Gtk::Button *btnSettings; diff --git a/ubl-settings-datetime.glade b/ubl-settings-datetime.glade index d3f96dd..39e93de 100644 --- a/ubl-settings-datetime.glade +++ b/ubl-settings-datetime.glade @@ -23,7 +23,8 @@ vertical 2 - + + btnBoxAboutDialog False end @@ -743,7 +744,7 @@ Format: DD.MM.YYYY - False + True True 1