From 0d80d9fedb774f6ae292aa1c27bba1694095326b Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Mon, 31 Jan 2005 12:13:19 +0000 Subject: INTEGRATION: CWS vcl35 (1.2.32); FILE MERGED 2005/01/20 11:09:57 obr 1.2.32.1: #i41020# check libORBit-2 version to avoid deadlocks during startup --- shell/source/backends/gconfbe/gconfbecdef.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'shell/source/backends/gconfbe') diff --git a/shell/source/backends/gconfbe/gconfbecdef.cxx b/shell/source/backends/gconfbe/gconfbecdef.cxx index a2a971ebca3e..400b5b135cf0 100644 --- a/shell/source/backends/gconfbe/gconfbecdef.cxx +++ b/shell/source/backends/gconfbe/gconfbecdef.cxx @@ -2,9 +2,9 @@ * * $RCSfile: gconfbecdef.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2004-09-17 13:01:02 $ + * last change: $Author: rt $ $Date: 2005-01-31 13:13:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -81,6 +81,7 @@ #include "uno/current_context.hxx" #include +#include namespace css = com::sun::star ; namespace uno = css::uno ; @@ -102,7 +103,11 @@ static uno::Reference SAL_CALL createGconfBackend(const uno::Re rtl::OUString aDesktopEnvironment; if ( (aValue >>= aDesktopEnvironment) && (aDesktopEnvironment.equalsAscii("GNOME")) ) { - return * GconfBackend::createInstance(xContext); + // ORBit-2 versions < 2.8 cause a deadlock with the gtk+ VCL plugin + if ( (orbit_major_version >= 2) && (orbit_minor_version >= 8) ) + { + return * GconfBackend::createInstance(xContext); + } } } -- cgit