From 4e7da9af8da61dd4e99ed847b326285d2e512636 Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Wed, 15 Apr 2009 12:08:35 +0200 Subject: BT: Fix a crash on certain theme changes in GNOME We did not update initGtkWidgets on theme changes which could lead to crashes as the contents of the widget hash depend on certain properties in the style. A simple way to reproduce this would be to change between the redmond gtk theme and cleanlooks. Task-number: 251115 Reviewed-by: paul (cherry picked from commit a55f477b2a40b89e690fe6b61509cf665e96243b) --- src/gui/styles/gtksymbols.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/styles/gtksymbols.cpp b/src/gui/styles/gtksymbols.cpp index 4210aaa..023dfbb 100644 --- a/src/gui/styles/gtksymbols.cpp +++ b/src/gui/styles/gtksymbols.cpp @@ -549,6 +549,7 @@ void QGtkStyleUpdateScheduler::updateTheme() QPalette newPalette = qApp->style()->standardPalette(); QApplicationPrivate::setSystemPalette(newPalette); QApplication::setPalette(newPalette); + QGtk::initGtkWidgets(); QGtk::applyCustomPaletteHash(); QList widgets = QApplication::allWidgets(); // Notify all widgets that size metrics might have changed -- cgit v0.12