summaryrefslogtreecommitdiffstats
path: root/vcl/unx/gtk
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-30 19:38:29 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-04-02 15:14:54 +0000
commit60212d610762c262782eaf79bfd1fa3798d8afa7 (patch)
tree82dcc17a801d4aec6cc8de9396274141fc647751 /vcl/unx/gtk
parentadd X-GIO-NoFuse so we get url:// instead of file://~.gvfs/ (diff)
downloadcore-60212d610762c262782eaf79bfd1fa3798d8afa7.tar.gz
core-60212d610762c262782eaf79bfd1fa3798d8afa7.zip
vcl: convert some fprintf to SAL_INFO
Change-Id: I4b9a20e62e8e137a1bfaa1c654307f15c33e3d3c Reviewed-on: https://gerrit.libreoffice.org/3143 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r--vcl/unx/gtk/app/gtkdata.cxx15
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx5
2 files changed, 6 insertions, 14 deletions
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx
index 36b0ec8cd019..af98ba210736 100644
--- a/vcl/unx/gtk/app/gtkdata.cxx
+++ b/vcl/unx/gtk/app/gtkdata.cxx
@@ -217,15 +217,12 @@ GtkSalDisplay::initScreen( SalX11Screen nXScreen ) const
{
pDefCol = gdk_x11_colormap_foreign_new( pVis, pSD->m_aColormap.GetXColormap() );
gdk_screen_set_default_colormap( pScreen, pDefCol );
- #if OSL_DEBUG_LEVEL > 1
- fprintf( stderr, "set new gdk color map for screen %d\n", nXScreen.getXScreen() );
- #endif
+ SAL_INFO( "vcl.gtk", "set new gdk color map for screen " << nXScreen.getXScreen() );
}
}
- #if OSL_DEBUG_LEVEL > 1
else
- fprintf( stderr, "not GdkVisual for visual id %d\n", (int)pSD->m_aVisual.visualid );
- #endif
+ SAL_INFO( "vcl.gtk", "not GdkVisual for visual id " << pSD->m_aVisual.visualid );
+
return pSD;
}
@@ -463,7 +460,7 @@ GdkCursor *GtkSalDisplay::getCursor( PointerStyle ePointerStyle )
MAKE_CURSOR( POINTER_PAINTBRUSH, paintbrush_ );
default:
- fprintf( stderr, "pointer %d not implemented", ePointerStyle );
+ SAL_WARN( "vcl.gtk", "pointer " << ePointerStyle << "not implemented" );
break;
}
if( !pCursor )
@@ -609,9 +606,7 @@ void GtkData::Yield( bool bWait, bool bHandleAllCurrentEvents )
void GtkData::Init()
{
int i;
-#if OSL_DEBUG_LEVEL > 1
- fprintf( stderr, "GtkMainloop::Init()\n" );
-#endif
+ SAL_INFO( "vcl.gtk", "GtkMainloop::Init()" );
XrmInitialize();
#if !GTK_CHECK_VERSION(3,0,0)
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index 3558993a3a3d..eebfe68c3b01 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -1820,10 +1820,7 @@ case_insensitive_filter (const GtkFileFilterInfo *filter_info, gpointer data)
if( !g_ascii_strcasecmp( pFilter, pExtn ) )
bRetval = sal_True;
-#if OSL_DEBUG_LEVEL > 1
- fprintf( stderr, "'%s' match extn '%s' vs '%s' yeilds %d\n",
- filter_info->uri, pExtn, pFilter, bRetval );
-#endif
+ SAL_INFO( "vcl.gtk", "'" << filter_info->uri << "' match extn '" << pExtn << "' vs '" << pFilter << "' yeilds " << bRetval );
return bRetval;
}