From 65b0a3063037e84e3a83ed50ec20397f48baafda Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Fri, 12 May 2023 14:16:19 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B8=20=D0=B2=20=D0=BE=D0=BA?= =?UTF-8?q?=D0=BD=D0=B5=20"=D0=9E=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=BC=D0=B5"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ublexec.cc | 9 +++++++++ source/ublexec.h | 1 + 2 files changed, 10 insertions(+) diff --git a/source/ublexec.cc b/source/ublexec.cc index 3a663f2..64f0f4a 100644 --- a/source/ublexec.cc +++ b/source/ublexec.cc @@ -8,6 +8,12 @@ string version_application = "2.24"; int socket_ext_id_I = 0; int socket_trd_id_I = 0; +MainWindow* obj_main; +void wrapper_synopsis_show() { + obj_main->aboutWindows->hide(); + obj_main->synopsis_show(); +} + CmdArgParser::CmdArgParser(const std::string& p_name, const std::string& p_description, const std::string& p_help) : Glib::OptionGroup{p_name, p_description, p_help} { Glib::OptionEntry socketIDArg; @@ -217,6 +223,7 @@ void MainWindow::localization() { } void MainWindow::event() { + g_signal_connect(G_OBJECT(aboutWindows->gobj()), "activate-link", G_CALLBACK(wrapper_synopsis_show), this); btnCancelHelp->signal_clicked().connect([&]() {wndShowWeb->hide();}); chkAlwaysOpenHelp->signal_toggled().connect([&]() {flag_open_browser = true;}); btnReadHelp->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::open_browser)); @@ -363,6 +370,7 @@ void MainWindow::open_browser() { #else this->template_open_browser(); #endif + wndShowWeb->hide(); } void MainWindow::template_open_browser() { @@ -466,6 +474,7 @@ void MainWindow::unselect_icon(Gtk::IconView *icon_entry) { } void MainWindow::settings() { + obj_main = this; if (flag_prog_file == 1){ user_cmd = name_app_cmd; } diff --git a/source/ublexec.h b/source/ublexec.h index 2772443..fc312f8 100644 --- a/source/ublexec.h +++ b/source/ublexec.h @@ -335,5 +335,6 @@ private: Gtk::Widget *parent; }; void help(); +void wrapper_synopsis_show();