summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2006-12-04 15:37:03 +0000
committerRüdiger Timm <rt@openoffice.org>2006-12-04 15:37:03 +0000
commit451d48db13a6a45b9944e0258904f7406bcd2fda (patch)
tree2aa7f9856ed556988f642e0863b463a5d3cda9f0 /vcl/unx/gtk
parentd1632028d4f7f3c752feea39335d415b2274f84a (diff)
INTEGRATION: CWS vcl69 (1.34.32); FILE MERGED
2006/11/16 16:58:42 pl 1.34.32.1: #i48371# enable indirect paint via env variable for debugging
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 4db2bfa3ef5d..2ed07ee69ec8 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: salnativewidgets-gtk.cxx,v $
*
- * $Revision: 1.34 $
+ * $Revision: 1.35 $
*
- * last change: $Author: kz $ $Date: 2006-10-06 09:59:39 $
+ * last change: $Author: rt $ $Date: 2006-12-04 16:37:03 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -412,6 +412,10 @@ void GtkData::initNWF( void )
// that makes direct rendering impossible: they totally
// ignore the clip rectangle passed to the paint methods
GtkSalGraphics::bNeedPixmapPaint = GtkSalGraphics::bGlobalNeedPixmapPaint = true;
+ static const char* pEnv = getenv( "SAL_GTK_USE_PIXMAPPAINT" );
+ if( pEnv && *pEnv )
+ GtkSalGraphics::bNeedPixmapPaint = GtkSalGraphics::bGlobalNeedPixmapPaint = true;
+
int nScreens = GetX11SalData()->GetDisplay()->GetScreenCount();
gWidgetData = std::vector<NWFWidgetData>( nScreens );
for( int i = 0; i < nScreens; i++ )
@@ -3185,6 +3189,18 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
// finally update the collected settings
rSettings.SetStyleSettings( aStyleSet );
+ #if OSL_DEBUG_LEVEL > 1
+ {
+ GtkSettings* pGtkSettings = gtk_settings_get_default();
+ GValue aValue;
+ memset( &aValue, 0, sizeof(GValue) );
+ g_value_init( &aValue, G_TYPE_STRING );
+ g_object_get_property( G_OBJECT(pGtkSettings), "gtk-theme-name", &aValue );
+ const gchar* pThemeName = g_value_get_string( &aValue );
+ fprintf( stderr, "Theme name is \"%s\"\n", pThemeName );
+ g_value_unset( &aValue );
+ }
+ #endif
if( GetX11SalData()->GetDisplay()->GetServerVendor() == vendor_sun )
{
// #i52570#, #i61532# workaround a weird paint issue;