diff doodle/gtk/canvas.d @ 40:1f97022e5c6d

Checkpoint. Development continues...
author daveb
date Mon, 12 Apr 2010 14:01:54 +0930
parents 3f6bb0bb22dc
children f2e4e1d29b98
line wrap: on
line diff
--- a/doodle/gtk/canvas.d	Fri Apr 09 15:19:14 2010 +0930
+++ b/doodle/gtk/canvas.d	Mon Apr 12 14:01:54 2010 +0930
@@ -6,6 +6,7 @@
 }
 
 private {
+    import doodle.core.logging;
     import doodle.gtk.conversions;
     import doodle.tk.misc;
     import doodle.cairo.routines;
@@ -52,6 +53,7 @@
 
         // Create our child widgets and register callbacks
 
+        info("B1");
         mHRuler = new HRuler;
         attach(mHRuler,
                1, 2,
@@ -60,13 +62,16 @@
                0, 0);
         mHRuler.setMetric(MetricType.PIXELS);
 
+        info("B2");
         mVRuler = new VRuler;
         attach(mVRuler,
                0, 1,
                1, 2,
                AttachOptions.SHRINK, AttachOptions.FILL | AttachOptions.EXPAND,
                0, 0);
+        info("B3");
         mVRuler.setMetric(MetricType.PIXELS);
+        info("J");
 
         mDrawingArea = new DrawingArea;
         mDrawingArea.addOnRealize(&on_realize);
@@ -92,6 +97,7 @@
                                EventMask.LEAVE_NOTIFY_MASK |
                                EventMask.FOCUS_CHANGE_MASK |
                                EventMask.SCROLL_MASK);
+        info("M");
 
         attach(mDrawingArea,
                1, 2,
@@ -110,6 +116,7 @@
                2, 3,
                AttachOptions.FILL | AttachOptions.EXPAND, AttachOptions.SHRINK,
                0, 0);
+        info("Q");
 
         mVAdjustment = new Adjustment(0.0, 0.0, 1.0, 0.2, 0.5, 0.5);
         mVAdjustment.addOnValueChanged(&onValueChanged);
@@ -160,6 +167,8 @@
         case Cursor.CROSSHAIR:
             cursor_type = CursorType.CROSSHAIR;
             break;
+        default:
+            assert(0);
         }
 
         mDrawingArea.setCursor(new gdk.Cursor.Cursor(cursor_type));