From fe40049bb56bc511f63521bcf1cf3889755a11bf Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Mon, 6 May 2013 20:18:33 -0500 Subject: Cleanup output clutter. --- tdegtk/tdegtk-draw.cpp | 28 ++++++++++++++-------------- tdegtk/tdegtk-theme.cpp | 6 +++--- tdegtk/tqtcairopainter.cpp | 6 +++--- 3 files changed, 20 insertions(+), 20 deletions(-) (limited to 'tdegtk') diff --git a/tdegtk/tdegtk-draw.cpp b/tdegtk/tdegtk-draw.cpp index 74cc4af..33cd63b 100644 --- a/tdegtk/tdegtk-draw.cpp +++ b/tdegtk/tdegtk-draw.cpp @@ -1006,7 +1006,7 @@ tdegtk_draw_activity (DRAW_ARGS) else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,128,0,128); - printf("[WARNING] tdegtk_draw_activity() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_activity() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -1235,7 +1235,7 @@ tdegtk_draw_cell_background (DRAW_ARGS, else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,255,128,64); - printf("[WARNING] tdegtk_draw_cell_background() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_cell_background() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -1289,7 +1289,7 @@ tdegtk_draw_cell_frame (DRAW_ARGS, else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,255,64,64); - printf("[WARNING] tdegtk_draw_cell_background() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_cell_background() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -1322,7 +1322,7 @@ tdegtk_draw_common (DRAW_ARGS) TQPainter p(&pd); DEBUG_FILL_BACKGROUND_WITH_COLOR(p,0,255,255); - printf("[WARNING] tdegtk_draw_common() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_common() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); GtkStateFlags state; state = gtk_theming_engine_get_state(engine); @@ -1701,7 +1701,7 @@ tdegtk_draw_common_background (DRAW_ARGS) else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,0,0,255); - printf("[WARNING] tdegtk_draw_common_background() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_common_background() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -1955,7 +1955,7 @@ tdegtk_draw_common_frame (DRAW_ARGS) else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,128,64,255); - printf("[WARNING] tdegtk_draw_common_frame() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_common_frame() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } } @@ -1982,7 +1982,7 @@ tdegtk_draw_expander (DRAW_ARGS) widget = m_widgetLookup.find(cr, path); DEBUG_FILL_BACKGROUND_WITH_COLOR(p,255,255,0); - printf("[WARNING] tdegtk_draw_expander() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_expander() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); if (p.isActive()) p.end(); #else @@ -2148,7 +2148,7 @@ tdegtk_draw_extension (DRAW_ARGS, else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,255,255,0); - printf("[WARNING] tdegtk_draw_extension() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_extension() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -2243,7 +2243,7 @@ tdegtk_draw_focus (DRAW_ARGS) else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,128,255,64); - printf("[WARNING] tdegtk_draw_focus() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_focus() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -2321,7 +2321,7 @@ tdegtk_draw_frame_gap (DRAW_ARGS, else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,255,128,0); - printf("[WARNING] tdegtk_draw_frame_gap() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_frame_gap() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -2396,7 +2396,7 @@ tdegtk_draw_handle (DRAW_ARGS) else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,0,128,255); - printf("[WARNING] tdegtk_draw_handle() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_handle() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -2466,7 +2466,7 @@ tdegtk_draw_notebook (DRAW_ARGS, else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,0,255,0); - printf("[WARNING] tdegtk_draw_notebook() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_notebook() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -2601,7 +2601,7 @@ tdegtk_draw_separator (DRAW_ARGS) else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,128,128,255); - printf("[WARNING] tdegtk_draw_separator() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_separator() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); @@ -2683,7 +2683,7 @@ tdegtk_draw_slider (DRAW_ARGS, else { DEBUG_FILL_BACKGROUND_WITH_COLOR(p,255,0,255); - printf("[WARNING] tdegtk_draw_slider() nonfunctional for widget with path '%s'\n\r", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); + printf("[WARNING] tdegtk_draw_slider() nonfunctional for widget with path '%s'\n", gtk_widget_path_to_string (gtk_theming_engine_get_path(engine))); fflush(stdout); } if (p.isActive()) p.end(); diff --git a/tdegtk/tdegtk-theme.cpp b/tdegtk/tdegtk-theme.cpp index b16aba4..5637649 100644 --- a/tdegtk/tdegtk-theme.cpp +++ b/tdegtk/tdegtk-theme.cpp @@ -31,8 +31,8 @@ #define TDEGTK_THEME_THEME_DIRECTORY_NAME "tdegtk" #define TDEGTK_THEME_CONTROL_FILE_NAME "tdegtk.css" #define RC_CACHE_VERSION TQString("1") -#define DEBUG_PRINT(x) if (gtk3TQtDebug) printf(x"\n\r"); -#define DEBUG_PRINT_ARGS(x,y) if (gtk3TQtDebug) printf(x"\n\r",y); +#define DEBUG_PRINT(x) if (gtk3TQtDebug) printf(x"\n"); +#define DEBUG_PRINT_ARGS(x,y) if (gtk3TQtDebug) printf(x"\n",y); bool gtk3TQtEnable = false; int gtk3TQtDebug = false; @@ -290,7 +290,7 @@ void gtk3_tqt_reload_theme_definition_file(const char* filename) { g_clear_error(&error); } else { - g_printerr("[ERROR] %s: unknown failure parsing %s\n\r", G_STRFUNC, filename); fflush(stdout); + g_printerr("[ERROR] %s: unknown failure parsing %s\n", G_STRFUNC, filename); fflush(stdout); } } diff --git a/tdegtk/tqtcairopainter.cpp b/tdegtk/tqtcairopainter.cpp index 8666b8b..dac2c72 100644 --- a/tdegtk/tqtcairopainter.cpp +++ b/tdegtk/tqtcairopainter.cpp @@ -145,7 +145,7 @@ TQImage CairoSurfaceToTQImage(cairo_surface_t* surface) { else { // FIXME // Force Cairo to convert the surface to a format that TQImage can read! - printf("[WARNING] Tried to convert a Cairo surface of format %d to a TQImage (NULL image returned!)\n\r", cairo_format); fflush(stdout); + printf("[WARNING] Tried to convert a Cairo surface of format %d to a TQImage (NULL image returned!)\n", cairo_format); fflush(stdout); return TQImage(); } @@ -320,7 +320,7 @@ void TQt3CairoPaintDevice::transferIntermediateSurface() { combinedPixel_b = ~(devicePixel_b | intermediatePixel_b); } else { - tqWarning("TQt3CairoPaintDevice::cmd: Unhandled raster operation [Was attempting to use raster operation %d\n\r", m_rop); + tqWarning("TQt3CairoPaintDevice::cmd: Unhandled raster operation [Was attempting to use raster operation %d\n", m_rop); combinedPixel_a = devicePixel_a; combinedPixel_r = devicePixel_r; combinedPixel_g = devicePixel_g; @@ -1297,7 +1297,7 @@ void TQt3CairoPaintDevice::updateSurfaceDimensions() const { m_height = cairo_image_surface_get_height(m_surface); } if ((m_width < 1) || (m_height < 1)) { - printf("[WARNING] Cairo surface height or width less than 0; drawing will not be possible!\n\r"); fflush(stdout); + printf("[WARNING] Cairo surface height or width less than 0; drawing will not be possible!\n"); fflush(stdout); } } -- cgit v1.2.3