[gtk+/wip/baedert/gtkimageview: 239/264] Remove debug anchor drawing
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 239/264] Remove debug anchor drawing
- Date: Fri, 26 Feb 2016 10:51:04 +0000 (UTC)
commit 36f0ac9ad78105e86e56a5a28ba8c80b1266c4ab
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]