From 39e0f2c9eb461f971efb1850578ee6f16bc72d36 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 8 Jun 2009 14:33:23 +0300 Subject: Correct errors in hildon_format_file-size_for_display * debian/changelog: * debian/control: * hildon/hildon-helper.c (hildon_format_file_size_for_display): Correct errors in hildon_format_file-size_for_display and use translations from the hildon-fm package instead of osso-filemanager. Signed-off-by: Claudio Saavedra --- ChangeLog | 8 ++++++++ debian/changelog | 1 + debian/control | 2 +- hildon/hildon-helper.c | 8 ++++---- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 15cb40a..200a3fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-06-08 Christian Dywan + + * debian/changelog: + * debian/control: + * hildon/hildon-helper.c (hildon_format_file_size_for_display): + Correct errors in hildon_format_file-size_for_display and use + translations from the hildon-fm package instead of osso-filemanager. + 2009-06-08 Alejandro G. Castro * hildon/hildon-pannable-area.c, diff --git a/debian/changelog b/debian/changelog index 41b1135..b4dd1f3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ libhildon (2.1.79-1) unstable; urgency=low * unreleased + * Improve hildon_format_file-size_for_display and use hildon-fm package. -- Claudio Saavedra Fri, 29 May 2009 17:41:27 +0200 diff --git a/debian/control b/debian/control index ba382da..8191644 100644 --- a/debian/control +++ b/debian/control @@ -14,7 +14,7 @@ Description: Hildon libraries development files Package: libhildon1 Section: libs Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, osso-sounds-ui, hildon-libs-l10n-mr | hildon-libs-l10n-mr0, osso-system-lock-l10n-mr | osso-system-lock-l10n-mr0, osso-filemanager-l10n-mr | osso-filemanager-l10n-mr0 +Depends: ${shlibs:Depends}, ${misc:Depends}, osso-sounds-ui, hildon-libs-l10n-mr | hildon-libs-l10n-mr0, osso-system-lock-l10n-mr | osso-system-lock-l10n-mr0, hildon-fm-l10n-mr | hildon-fm-l10n-mr0 Description: Hildon libraries Package: libhildon1-dbg diff --git a/hildon/hildon-helper.c b/hildon/hildon-helper.c index 509bf7b..86ae3f6 100644 --- a/hildon/hildon-helper.c +++ b/hildon/hildon-helper.c @@ -517,17 +517,17 @@ hildon_helper_set_thumb_scrollbar (GtkScrolledWindow *win, gchar * hildon_format_file_size_for_display (goffset size) { - #define _HFM(string) g_dgettext ("osso-filemanager", string) + #define _HFM(string) g_dgettext ("hildon-fm", string) if (size < 1024) return g_strdup_printf (_HFM ("ckdg_va_properties_size_kb"), 1); else if (size < 100 * 1024) - return g_strdup_printf (_HFM ("ckdg_va_properties_size_1kb_99k"), - size / 1024); + return g_strdup_printf (_HFM ("ckdg_va_properties_size_1kb_99kb"), + (int)size / 1024); else if (size < 1024 * 1024) return g_strdup_printf (_HFM ("ckdg_va_properties_size_100kb_1mb"), - size / 1024); + (int)size / 1024); else if (size < 10 * 1024 * 1024) return g_strdup_printf (_HFM ("ckdg_va_properties_size_1mb_10mb"), size / (1024.0f * 1024.0f)); -- cgit v1.2.3-18-g5258