From 8622c86df63af9b7d81dd1ea26e26f61a33f6c69 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Tue, 14 Mar 2023 16:28:09 +0600 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8=D1=80=D0=BE=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20gui,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D1=83=D1=89=D0=B5=D0=BD=D0=BD=D0=BE=20=D0=BD=D0=B5=20=D0=BE?= =?UTF-8?q?=D1=82=20root?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-bootloader.cc | 6 +++++- source/ubl-settings-bootloader.h | 1 + ubl-settings-bootloader.glade | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/source/ubl-settings-bootloader.cc b/source/ubl-settings-bootloader.cc index b3d315f..0578099 100644 --- a/source/ubl-settings-bootloader.cc +++ b/source/ubl-settings-bootloader.cc @@ -76,6 +76,9 @@ void MainWindow::settings(){ } else{ + boxWidgetAll->set_sensitive(false); + btnDownload->set_sensitive(false); + boxSave->set_sensitive(false); imgInfo->set("/usr/share/icons/hicolor/scalable/status/warning.svg"); info_status_app("boxInfoMessError"); lblWarning->set_text(_("The program must be run with superuser privileges!")); @@ -145,8 +148,9 @@ void MainWindow::get_builder(){ builder->get_widget("boxKernel1", boxKernel1); builder->get_widget("boxKernel2", boxKernel2); builder->get_widget("boxColor", boxColor); + builder->get_widget("boxWidgetAll", boxWidgetAll); + builder->get_widget("aboutWindows", aboutWindows); - builder->get_widget("btnSynopsis", btnSynopsis); builder->get_widget("btnAbout", btnAbout); builder->get_widget("btnDonwlodLocal", btnDonwlodLocal); diff --git a/source/ubl-settings-bootloader.h b/source/ubl-settings-bootloader.h index 9b3e457..4d05652 100644 --- a/source/ubl-settings-bootloader.h +++ b/source/ubl-settings-bootloader.h @@ -95,6 +95,7 @@ class MainWindow : public Gtk::ApplicationWindow { Gtk::Widget *boxButton; Gtk::Widget *boxSave; Gtk::Box *boxInfoError; + Gtk::Box *boxWidgetAll; Gtk::Label *lblWarning; Gtk::Image *imgInfo; Gtk::ButtonBox *btnBoxAboutDialog; diff --git a/ubl-settings-bootloader.glade b/ubl-settings-bootloader.glade index a61efd5..e3d5b33 100644 --- a/ubl-settings-bootloader.glade +++ b/ubl-settings-bootloader.glade @@ -352,7 +352,7 @@ specified priority True False - + True False vertical