[gnome-photos/wip/baedert/gtkimageview: 5/11] Remove debugging output
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/baedert/gtkimageview: 5/11] Remove debugging output
- Date: Sun, 17 Apr 2016 10:09:42 +0000 (UTC)
commit 36ab3dc95ed9bd902d0733c733b2cdfe9e900d5d
Author: Timm Bäder <mail baedert org>
Date: Sat Apr 16 13:52:43 2016 +0200
Remove debugging output
src/photos-gegl-image.c | 11 +++++------
src/photos-image-view.c | 6 +++---
2 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/src/photos-gegl-image.c b/src/photos-gegl-image.c
index 9c6e07f..8c1c579 100644
--- a/src/photos-gegl-image.c
+++ b/src/photos-gegl-image.c
@@ -25,17 +25,17 @@ photos_gegl_image_get_scale_factor (GtkAbstractImage *_image)
static void
photos_gegl_image_update_bbox (PhotosGeglImage *image, gboolean scale_changed)
{
- GeglRectangle box = gegl_node_get_bounding_box (image->node);
- gboolean roi_changed = !gegl_rectangle_equal (&image->roi, &box);
+ GeglRectangle box = gegl_node_get_bounding_box (image->node);
+ gboolean roi_size_changed = (box.width != image->width || box.height != image->height);
- if (roi_changed || scale_changed)
+ image->roi = box;
+
+ if (roi_size_changed || scale_changed)
{
int stride;
image->width = box.width;
image->height = box.height;
- image->roi = box;
-
stride = cairo_format_stride_for_width (CAIRO_FORMAT_ARGB32,
box.width * image->view_scale);
@@ -149,7 +149,6 @@ photos_gegl_image_class_init (PhotosGeglImageClass *klass)
void
photos_gegl_image_set_view_scale (PhotosGeglImage *image, double view_scale)
{
- g_message ("New scale: %f, old scale: %f", view_scale, image->view_scale);
if (view_scale == image->view_scale)
return;
diff --git a/src/photos-image-view.c b/src/photos-image-view.c
index ec1e808..1ef0081 100644
--- a/src/photos-image-view.c
+++ b/src/photos-image-view.c
@@ -111,11 +111,11 @@ photos_image_view_get_property (GObject *object, guint prop_id, GValue *value, G
break;
case PROP_X:
- g_value_set_float (value, 0);
+ g_value_set_double (value, 0);
break;
case PROP_Y:
- g_value_set_float (value, 0);
+ g_value_set_double (value, 0);
break;
case PROP_ZOOM:
@@ -247,7 +247,7 @@ photos_image_view_new (void)
{
return g_object_new (PHOTOS_TYPE_IMAGE_VIEW,
"fit-allocation", TRUE,
- "zoomable", FALSE,
+ /*"zoomable", FALSE,*/
"rotatable", FALSE,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]