diff dwt/widgets/ProgressBar.d @ 159:efba9cd3ee94

removed debugging outputs from progressbar
author Frank Benoit <benoit@tionex.de>
date Sun, 10 Feb 2008 04:37:30 +0100
parents de2578a843a7
children ce446666f5a2
line wrap: on
line diff
--- a/dwt/widgets/ProgressBar.d	Sun Feb 10 04:19:19 2008 +0100
+++ b/dwt/widgets/ProgressBar.d	Sun Feb 10 04:37:30 2008 +0100
@@ -25,10 +25,6 @@
 import Math = tango.math.Math;
 import tango.io.Stdout;
 
-void trc( int line ){
-    Stdout.formatln( "ProgressBar {}", line ).flush;
-}
-
 /**
  * Instances of the receiver represent an unselectable
  * user interface object that is used to display progress,
@@ -91,7 +87,6 @@
 }
 
 override void createHandle (int index) {
-trc( __LINE__ );
     state |= HANDLE;
     fixedHandle = cast(GtkWidget*)OS.g_object_new (display.gtk_fixed_get_type (), null);
     if (fixedHandle is null) error (DWT.ERROR_NO_HANDLES);
@@ -104,7 +99,6 @@
     if ((style & DWT.INDETERMINATE) !is 0) {
         timerId = display.doWindowTimerAdd( &callbackData, DELAY, handle );
     }
-trc( __LINE__ );
 }
 
 /**
@@ -118,7 +112,6 @@
  * </ul>
  */
 public int getMaximum () {
-trc( __LINE__ );
     checkWidget ();
     return maximum;
 }
@@ -134,8 +127,7 @@
  * </ul>
  */
 public int getMinimum () {
-    trc( __LINE__ );
-checkWidget ();
+    checkWidget ();
     return minimum;
 }
 
@@ -150,13 +142,11 @@
  * </ul>
  */
 public int getSelection () {
-trc( __LINE__ );
     checkWidget ();
     return selection;
 }
 
 override int gtk_realize (GtkWidget* widget) {
-trc( __LINE__ );
     int result = super.gtk_realize (widget);
     if (result !is 0) return result;
     /*
@@ -170,14 +160,12 @@
 }
 
 override void releaseWidget () {
-trc( __LINE__ );
     super.releaseWidget ();
     if (timerId !is 0) OS.gtk_timeout_remove (timerId);
     timerId = 0;
 }
 
 override void setParentBackground () {
-trc( __LINE__ );
     /*
     * Bug in GTK.  For some reason, some theme managers will crash
     * when the progress bar is inheriting the background from a parent.
@@ -200,7 +188,6 @@
  * </ul>
  */
 public void setMaximum (int value) {
-trc( __LINE__ );
     checkWidget ();
     if (value <= minimum) return;
     maximum = value;
@@ -222,7 +209,6 @@
  * </ul>
  */
 public void setMinimum (int value) {
-trc( __LINE__ );
     checkWidget ();
     if (value < 0 || value >= maximum) return;
     minimum = value;
@@ -243,22 +229,17 @@
  * </ul>
  */
 public void setSelection (int value) {
-trc( __LINE__ );
     checkWidget ();
     selection = Math.max (minimum, Math.min (maximum, value));
     updateBar (selection, minimum, maximum);
- trc( __LINE__ );
 }
 
 override int /*long*/ timerProc (GtkWidget* widget) {
-trc( __LINE__ );
     if (isVisible ()) OS.gtk_progress_bar_pulse (handle);
- trc( __LINE__ );
     return 1;
 }
 
 void updateBar (int selection, int minimum, int maximum) {
- trc( __LINE__ );
    /*
     * Bug in GTK.  When a progress bar has been unrealized after being
     * realized at least once, gtk_progress_bar_set_fraction() GP's.  The
@@ -279,6 +260,5 @@
     auto window = paintWindow ();
     OS.gdk_window_process_updates (window, false);
     OS.gdk_flush ();
- trc( __LINE__ );
 }
 }