|
|
|
@ -43,13 +43,9 @@ void MainWindow::settings() {
|
|
|
|
|
obj_quotas_sys.set_map_gui(map_gui_cfg);
|
|
|
|
|
obj_quotas_ubconfig.set_map_gui(map_gui_cfg);
|
|
|
|
|
#ifdef WEBKIT_FOUND
|
|
|
|
|
void *handle=NULL;
|
|
|
|
|
handle = dlopen("libwebkit2gtk-4.0.so", RTLD_LAZY);
|
|
|
|
|
if (handle) {
|
|
|
|
|
one = WEBKIT_WEB_VIEW( webkit_web_view_new() );
|
|
|
|
|
three = Glib::wrap(GTK_WIDGET(one));
|
|
|
|
|
wndWeb->add(*three);
|
|
|
|
|
}
|
|
|
|
|
one = WEBKIT_WEB_VIEW( webkit_web_view_new() );
|
|
|
|
|
three = Glib::wrap(GTK_WIDGET(one));
|
|
|
|
|
wndWeb->add(*three);
|
|
|
|
|
#endif
|
|
|
|
|
if (geteuid() == 0) {
|
|
|
|
|
this->load_system_cfg();
|
|
|
|
@ -462,11 +458,7 @@ void MainWindow::get_builder() {
|
|
|
|
|
builder->get_widget("btnFilterUsers", btnFilterUsers);
|
|
|
|
|
builder->get_widget("btnFilterGroups", btnFilterGroups);
|
|
|
|
|
#ifdef WEBKIT_FOUND
|
|
|
|
|
void *handle=NULL;
|
|
|
|
|
handle = dlopen("libwebkit2gtk-4.0.so", RTLD_LAZY);
|
|
|
|
|
if (handle) {
|
|
|
|
|
builder->get_widget("wndWeb", wndWeb);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
builder->get_widget("lblHeadeWndWeb", lblHeadeWndWeb);
|
|
|
|
|
builder->get_widget("lblwebHeaderName", lblwebHeaderName);
|
|
|
|
@ -690,15 +682,8 @@ void MainWindow::synopsis_show() {
|
|
|
|
|
|
|
|
|
|
void MainWindow::open_browser() {
|
|
|
|
|
#ifdef WEBKIT_FOUND
|
|
|
|
|
void *handle=NULL;
|
|
|
|
|
handle = dlopen("libwebkit2gtk-4.0.so", RTLD_LAZY);
|
|
|
|
|
if (handle) {
|
|
|
|
|
webkit_web_view_load_uri(one, link_doc);
|
|
|
|
|
wndWeb->show_all();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
this->template_open_browser();
|
|
|
|
|
}
|
|
|
|
|
webkit_web_view_load_uri(one, link_doc);
|
|
|
|
|
wndWeb->show_all();
|
|
|
|
|
#else
|
|
|
|
|
this->template_open_browser();
|
|
|
|
|
#endif
|
|
|
|
@ -791,13 +776,6 @@ void MainWindow::info_warning_error(int mess) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MainWindow::~MainWindow() {
|
|
|
|
|
#ifdef WEBKIT_FOUND
|
|
|
|
|
void *handle=NULL;
|
|
|
|
|
handle = dlopen("libwebkit2gtk-4.0.so", RTLD_LAZY);
|
|
|
|
|
if (handle) {
|
|
|
|
|
free(one);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void help() {
|
|
|
|
|