[gthumb] image-selector: changed the grow direction
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] image-selector: changed the grow direction
- Date: Wed, 6 Apr 2011 12:45:26 +0000 (UTC)
commit f6ce509b204cf5cda7296ba4929cbcffd4fd22bf
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Apr 6 12:17:38 2011 +0200
image-selector: changed the grow direction
if the selection has a fixed ratio grow rightward and
downward instead of leftward or upward because it seemes
more natural.
gthumb/gth-image-selector.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gthumb/gth-image-selector.c b/gthumb/gth-image-selector.c
index 8c74a6b..e340ebe 100644
--- a/gthumb/gth-image-selector.c
+++ b/gthumb/gth-image-selector.c
@@ -1053,10 +1053,10 @@ update_mouse_selection (GthImageSelector *self)
case C_BOTTOM_AREA:
grow_downward (&self->priv->pixbuf_area, &new_selection, dy, check);
if (self->priv->use_ratio)
- grow_leftward (&self->priv->pixbuf_area,
- &new_selection,
- IROUND (-dy * self->priv->ratio),
- check);
+ grow_rightward (&self->priv->pixbuf_area,
+ &new_selection,
+ IROUND (dy * self->priv->ratio),
+ check);
break;
case C_LEFT_AREA:
@@ -1071,10 +1071,10 @@ update_mouse_selection (GthImageSelector *self)
case C_RIGHT_AREA:
grow_rightward (&self->priv->pixbuf_area, &new_selection, dx, check);
if (self->priv->use_ratio)
- grow_upward (&self->priv->pixbuf_area,
- &new_selection,
- IROUND (-dx / self->priv->ratio),
- check);
+ grow_downward (&self->priv->pixbuf_area,
+ &new_selection,
+ IROUND (dx / self->priv->ratio),
+ check);
break;
case C_TOP_LEFT_AREA:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]