From 37d898fb1a29f074747dbd9c81d6e2ad97d2e23e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Fri, 10 Dec 2010 08:57:42 +0100
Subject: Change LdSymbolArea members.
Now it contains coordinates of the top-left delimiting
point and computed dimensions (instead of coorinates of
both delimiting points).
---
src/ld-window-main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'src/ld-window-main.c')
diff --git a/src/ld-window-main.c b/src/ld-window-main.c
index 0597d33..bcacf3f 100644
--- a/src/ld-window-main.c
+++ b/src/ld-window-main.c
@@ -509,9 +509,9 @@ on_category_toggle (GtkToggleButton *toggle_button, gpointer user_data)
* in the center of it's symbol menu item.
*/
item->scale = data->menu_height * 0.5
- / MAX (ABS (area.y1), ABS (area.y2)) / 2;
+ / MAX (ABS (area.y), ABS (area.y + area.height)) / 2;
/* FIXME: The width is probably wrong (related to the center). */
- item->width = item->scale * ABS (area.x2 - area.x1)
+ item->width = item->scale * area.width
+ data->menu_height * 0.5;
menu_width += item++->width;
--
cgit v1.2.3