[Bug 1005677] Re: Re-emergence of "Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)'" Makes vlc and other Qt apps crashing crashing

Albert Astals Cid albert.astals at canonical.com
Mon Sep 17 13:46:28 UTC 2012


Changing the qgtkstyle_p.cpp code to

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.

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qt4-x11 in Ubuntu.
https://bugs.launchpad.net/bugs/1005677

Title:
  Re-emergence of "Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion
  `GTK_IS_WIDGET   (widget)'" Makes vlc and other Qt apps crashing
  crashing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ayatana-scrollbar/+bug/1005677/+subscriptions




More information about the kubuntu-bugs mailing list