[gimp] app: fix initial navigation popup position
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix initial navigation popup position
- Date: Sun, 3 Apr 2011 16:00:19 +0000 (UTC)
commit dea9176121b153641cb78ff7451d19dbac4f8611
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 3 17:59:35 2011 +0200
app: fix initial navigation popup position
so it doean't jump around on first mouse movement.
app/display/gimpnavigationeditor.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpnavigationeditor.c b/app/display/gimpnavigationeditor.c
index 8a642de..62382d7 100644
--- a/app/display/gimpnavigationeditor.c
+++ b/app/display/gimpnavigationeditor.c
@@ -282,10 +282,10 @@ gimp_navigation_editor_popup (GimpDisplayShell *shell,
screen_click_x = x_origin + click_x;
screen_click_y = y_origin + click_y;
- border_width = style->xthickness * 4;
- border_height = style->ythickness * 4;
- popup_width = GIMP_VIEW (view)->renderer->width - border_width;
- popup_height = GIMP_VIEW (view)->renderer->height - border_height;
+ border_width = 2 * style->xthickness;
+ border_height = 2 * style->ythickness;
+ popup_width = GIMP_VIEW (view)->renderer->width - 2 * border_width;
+ popup_height = GIMP_VIEW (view)->renderer->height - 2 * border_height;
x = screen_click_x -
border_width -
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]