The problem here is: When application have a lot of labels there are separate threads which can change tooltips for any label. In UI for those unchanged Labels - tooltips are flickering or even disappeared
This topic continues Gtk4. Migration Label and tooltip from gtk3
Hi @gwillems , sorry for bothering you… did you have a time to check?
Last thing was:
#include <gtk/gtk.h>
#include <thread>
#include <iomanip>
#include <atomic>
//#include <spdlog/spdlog.h>
static GtkWidget *lLabel, *rLabel;
std::thread lT, rT;
std::atomic<bool> stop_thread = false;
void setTlpMarkup(GtkWidget *wg, const char* markUp) {
if (wg) {
auto t = std::time(nullptr);
auto tm = *std::localtime(&t);
std::ostringstream oss;
oss << std::put_time(&tm, "%d-%m-%Y %H-%M-%S");
auto str = std::string(markUp) + ' ' + oss.str();
gtk_widget_set_tooltip_markup(wg, str.c_str());
}
}
I have
terminated by signal SIGABRT (Abort)
in different distros