Исправлено окно о программе

pull/11/head
Igor Belitskiy 3 years ago
parent 3fdad1e551
commit aab87e7a9c

@ -70,6 +70,7 @@ void MainWindow::settings(){
this->localization(); this->localization();
this->add_CSS(); this->add_CSS();
this->event(); this->event();
btnBoxAboutDialog->set_visible(false);
ubl_make_plugs(boxSave,boxButton, socket_ext_id_I, socket_trd_id_I); ubl_make_plugs(boxSave,boxButton, socket_ext_id_I, socket_trd_id_I);
if (this->check_root() == 0) { if (this->check_root() == 0) {
@ -161,6 +162,7 @@ void MainWindow::get_builder(){
builder->get_widget("boxInfoError", boxInfoError); builder->get_widget("boxInfoError", boxInfoError);
builder->get_widget("lblWarning", lblWarning); builder->get_widget("lblWarning", lblWarning);
builder->get_widget("imgInfo", imgInfo); builder->get_widget("imgInfo", imgInfo);
builder->get_widget("btnBoxAboutDialog", btnBoxAboutDialog);
} }
void MainWindow::localization(){ void MainWindow::localization(){
@ -174,7 +176,7 @@ void MainWindow::localization(){
aboutWindows->set_version(_(version_application.c_str())); aboutWindows->set_version(_(version_application.c_str()));
aboutWindows->set_website_label(_("Project Home Page")); aboutWindows->set_website_label(_("Project Home Page"));
lblInfoHead->set_text(_("Configuring system boot parameters")); lblInfoHead->set_text(_("Configuring system boot parameters"));
lblHeaderName->set_text(_("UBConfig - Loading")); lblHeaderName->set_text(_("ubl-settings-bootloader"));
aboutWindows->set_comments(_("Setting bootloader")); aboutWindows->set_comments(_("Setting bootloader"));
aboutWindows->set_website_label(_("Project Home Page")); aboutWindows->set_website_label(_("Project Home Page"));
lblInfoCommand->set_text(_("Command line parameters:")); lblInfoCommand->set_text(_("Command line parameters:"));

@ -97,6 +97,7 @@ class MainWindow : public Gtk::ApplicationWindow {
Gtk::Box *boxInfoError; Gtk::Box *boxInfoError;
Gtk::Label *lblWarning; Gtk::Label *lblWarning;
Gtk::Image *imgInfo; Gtk::Image *imgInfo;
Gtk::ButtonBox *btnBoxAboutDialog;
private: private:
int width; int width;

@ -30,7 +30,7 @@
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">2</property> <property name="spacing">2</property>
<child internal-child="action_area"> <child internal-child="action_area">
<object class="GtkButtonBox"> <object class="GtkButtonBox" id="btnBoxAboutDialog">
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="layout-style">end</property> <property name="layout-style">end</property>
<child> <child>

Loading…
Cancel
Save