[gtk+/wip/baedert/gtkimageview: 94/139] Remove debug anchor drawing



commit 2ffb3a4572f8883ee15644e2c7e6e973ee6467e5
Author: Timm Bäder <mail baedert org>
Date:   Sat Feb 6 10:23:37 2016 +0100

    Remove debug anchor drawing

 gtk/gtkimageview.c |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index 82c1837..fe69b33 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -23,6 +23,16 @@
 #define ANGLE_TRANSITION_MIN_DELTA (1.0)
 #define SCALE_TRANSITION_MIN_DELTA (0.01)
 
+
+/*
+ *  TODO:
+ *
+ *   - Angle transition from 395 to 5 does a -390deg rotation
+ *   - transition from !fit-allocation to fit-allocation and back
+ *
+ */
+
+
 typedef struct
 {
   double hupper;
@@ -1098,15 +1108,6 @@ gtk_image_view_draw (GtkWidget *widget, cairo_t *ct)
   cairo_fill (ct);
   cairo_restore (ct);
 
-
-  /* XXX @debug */
-  if (priv->anchor_x != -1 && priv->anchor_y != -1)
-    {
-      cairo_set_source_rgba (ct, 0, 1, 0, 1);
-      cairo_rectangle (ct, priv->anchor_x - 1, priv->anchor_y - 1, 2, 2);
-      cairo_fill (ct);
-    }
-
   return GDK_EVENT_PROPAGATE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]