From 1498cdf9e60030f4af8c1fbfd1624456176a4e8a Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Mon, 4 May 2009 20:00:43 +0200 Subject: [PATCH] Calculate max label size of HildonBanner using the actual screen width * hildon/hildon-banner.c: Calculate size of the banner label using the actual screen width rather than using a fixed value. Fixes: NB#114395 ('Disconnect charger...' info banner in portrait is truncated) --- ChangeLog | 9 +++++++++ hildon/hildon-banner.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5ea013b..795cbcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-05-04 Alberto Garcia + + * hildon/hildon-banner.c: + Calculate size of the banner label using the actual screen width + rather than using a fixed value. + + Fixes: NB#114395 ('Disconnect charger...' info banner in portrait + is truncated) + 2009-05-04 Alejandro G. Castro * hildon/hildon-pannable-area.c, diff --git a/hildon/hildon-banner.c b/hildon/hildon-banner.c index 0d65edc..7e9f417 100644 --- a/hildon/hildon-banner.c +++ b/hildon/hildon-banner.c @@ -76,7 +76,7 @@ #define HILDON_BANNER_PROGRESS_WIDTH 104 #define HILDON_BANNER_LABEL_MAX_TIMED \ - (800 - ((HILDON_MARGIN_TRIPLE) * 2)) + (gdk_screen_width() - ((HILDON_MARGIN_TRIPLE) * 2)) #define HILDON_BANNER_LABEL_MAX_PROGRESS 375 /*265*/ -- 1.7.9.5