[metacity/cowbell] fix width calculation
- From: Thomas James Alexander Thurman <tthurman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [metacity/cowbell] fix width calculation
- Date: Wed, 28 Oct 2009 23:12:00 +0000 (UTC)
commit 2718da7bb89e3bfa5945c72c65091841c30c7a78
Author: Thomas Thurman <tthurman gnome org>
Date: Wed Oct 28 19:11:49 2009 -0400
fix width calculation
src/ui/theme.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 50e6aef..3570571 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -853,7 +853,7 @@ cowbell_get_button_width (MetaTheme *theme,
aspect_ratio = width/height;
}
- result = width / aspect_ratio;
+ result = button_height * aspect_ratio;
if (min_width!=0 && result<min_width) result = min_width;
if (max_width!=0 && result>max_width) result = max_width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]