diff --git a/gb.qt4/src/webkit/control/webview.png b/gb.qt4/src/webkit/control/webview.png index 9c8dbf466..7b9ef3e26 100644 Binary files a/gb.qt4/src/webkit/control/webview.png and b/gb.qt4/src/webkit/control/webview.png differ diff --git a/gb.qt4/src/webkit/cwebview.cpp b/gb.qt4/src/webkit/cwebview.cpp index e41efc2bb..d1cc84694 100644 --- a/gb.qt4/src/webkit/cwebview.cpp +++ b/gb.qt4/src/webkit/cwebview.cpp @@ -64,6 +64,7 @@ DECLARE_EVENT(EVENT_DOWNLOAD); static QNetworkAccessManager *_network_access_manager = 0; static CWEBVIEW *_network_access_manager_view = 0; static QT_COLOR_FUNC _old_after_set_color; +static bool _ignore_png_warnings = false; /* static WEBVIEW_ACTION _actions[] = @@ -203,7 +204,24 @@ static void stop_view(void *_object) BEGIN_METHOD(WebView_new, GB_OBJECT parent) + int fd_save = -1; + + if (!_ignore_png_warnings) + { + int fd = ::open("/dev/null", O_RDWR); + fd_save = ::dup(2); + ::dup2(fd, 2); + ::close(fd); + } + MyWebView *wid = new MyWebView(QT.GetContainer(VARG(parent))); + + if (!_ignore_png_warnings) + { + ::dup2(fd_save, 2); + ::close(fd_save); + _ignore_png_warnings = true; + } QT.InitWidget(wid, _object, false);