[gtk+/wip/baedert/gtkimageview: 119/160] Remove debug anchor drawing



commit 85fb6ce9203cce93e1a629f53d13d34fe0ccbace
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]