diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2010-12-10 08:57:42 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2010-12-10 08:57:42 +0100 |
commit | 37d898fb1a29f074747dbd9c81d6e2ad97d2e23e (patch) | |
tree | 1111ec9dccb2032df6bfc41b0985d606edd5ce70 /src/ld-window-main.c | |
parent | 3d3a71d5d2be1bb14a71d03a2117eb2b317ef061 (diff) | |
download | logdiag-37d898fb1a29f074747dbd9c81d6e2ad97d2e23e.tar.gz logdiag-37d898fb1a29f074747dbd9c81d6e2ad97d2e23e.tar.xz logdiag-37d898fb1a29f074747dbd9c81d6e2ad97d2e23e.zip |
Change LdSymbolArea members.
Now it contains coordinates of the top-left delimiting
point and computed dimensions (instead of coorinates of
both delimiting points).
Diffstat (limited to 'src/ld-window-main.c')
-rw-r--r-- | src/ld-window-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |