diff options
author | B. Stack <bgstack15@gmail.com> | 2023-04-03 09:56:38 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-04-03 09:56:38 -0400 |
commit | 765e1bb3bdeb5c49f08543c20206e55c772e6b80 (patch) | |
tree | 920f288910890016e540213fe65f2d6f38aa82be /wx+ | |
parent | add upstream 12.1 (diff) | |
download | FreeFileSync-765e1bb3bdeb5c49f08543c20206e55c772e6b80.tar.gz FreeFileSync-765e1bb3bdeb5c49f08543c20206e55c772e6b80.tar.bz2 FreeFileSync-765e1bb3bdeb5c49f08543c20206e55c772e6b80.zip |
add upstream 12.212.2
Diffstat (limited to 'wx+')
-rw-r--r-- | wx+/tooltip.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/wx+/tooltip.cpp b/wx+/tooltip.cpp index 5ad5da31..f8d23c5d 100644 --- a/wx+/tooltip.cpp +++ b/wx+/tooltip.cpp @@ -13,6 +13,7 @@ #include "image_tools.h" #include "bitmap_button.h" #include "dc.h" +#include <gtk/gtk.h> using namespace zen; @@ -27,7 +28,8 @@ class Tooltip::TooltipDlgGenerated : public wxDialog { public: TooltipDlgGenerated(wxWindow* parent) : //Suse Linux/X11: needs parent window, else there are z-order issues - wxDialog(parent, wxID_ANY, L"" /*title*/, wxDefaultPosition, wxDefaultSize, 0 /*style*/) + wxDialog(parent, wxID_ANY, L"" /*title*/, wxDefaultPosition, wxDefaultSize, wxSIMPLE_BORDER /*style*/) + //wxSIMPLE_BORDER side effect: removes title bar on KDE { SetSizeHints(wxDefaultSize, wxDefaultSize); SetExtraStyle(this->GetExtraStyle() | wxWS_EX_TRANSIENT); @@ -101,13 +103,16 @@ void Tooltip::hide() { if (tipWindow_) { -#ifdef __WXGTK2__ //the tooltip sometimes turns blank or is not shown again after it was hidden: e.g. drag-selection on middle grid +#if GTK_MAJOR_VERSION == 2 //the tooltip sometimes turns blank or is not shown again after it was hidden: e.g. drag-selection on middle grid //=> no such issues on GTK3! tipWindow_->Destroy(); //apply brute force: tipWindow_ = nullptr; // lastUsedImg_ = wxNullImage; -#else + +#elif GTK_MAJOR_VERSION == 3 tipWindow_->Hide(); +#else +#error unknown GTK version! #endif } } |