GtkWidget* QGtkStylePrivate::gtkWidget(const QHashableLatin1Literal &path)
{
GtkWidget *widget = gtkWidgetMap()->value(path);
if (!widget) {
// Theme might have rearranged widget internals
widget = gtkWidgetMap()->value(path);
}
if (!widget) {
const QString name = path.toString();
if (name == QLatin1String("GtkHScrollbar") || name == QLatin1String("GtkVScrollbar"))
widget = gtkWidgetMap()->value("OsScrollbar");
}
return widget;
}
Fixes the crashes for me, but it still means that the overlay-scrollbar code is being used (even the scrollbars look normal).
Andrea that is the one that did the code is back from holidays tomorrow, I'll try to have a talk with him on how to fix it in a way that's best for everyone.
Changing the qgtkstyle_p.cpp code to
GtkWidget* QGtkStylePrivat e::gtkWidget( const QHashableLatin1 Literal &path) )->value( path); )->value( path); "GtkHScrollbar" ) || name == QLatin1String( "GtkVScrollbar" )) )->value( "OsScrollbar" );
{
GtkWidget *widget = gtkWidgetMap(
if (!widget) {
// Theme might have rearranged widget internals
widget = gtkWidgetMap(
}
if (!widget) {
const QString name = path.toString();
if (name == QLatin1String(
widget = gtkWidgetMap(
}
return widget;
}
Fixes the crashes for me, but it still means that the overlay-scrollbar code is being used (even the scrollbars look normal).
Andrea that is the one that did the code is back from holidays tomorrow, I'll try to have a talk with him on how to fix it in a way that's best for everyone.