[gcalctool] Add placeholder code for temperature conversion
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcalctool] Add placeholder code for temperature conversion
- Date: Thu, 27 Jan 2011 02:06:21 +0000 (UTC)
commit 57b587e60b2ab4cdd3ca81658c79aaee70675932
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Jan 27 11:15:19 2011 +1000
Add placeholder code for temperature conversion
src/unit-manager.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/unit-manager.c b/src/unit-manager.c
index 84dc5a2..b77c99b 100644
--- a/src/unit-manager.c
+++ b/src/unit-manager.c
@@ -98,6 +98,12 @@ unit_manager_get_default(void)
unit_category_add_unit(category, unit_new("millisecond", _("Milliseconds"), "%s milliseconds", get_value("0.001", &t), "milliseconds", "millisecond", "ms", NULL));
unit_category_add_unit(category, unit_new("microsecond", _("Microseconds"), "%s microseconds", get_value("0.000001", &t), "microseconds", "microsecond", "us", NULL));
+ // FIXME: Need offset
+ //category = unit_manager_add_category(default_unit_manager, "temperature", _("Temperature"));
+ //unit_category_add_unit(category, unit_new("celcius", _("Celcius"), "%sË?C", get_value("1", &t), "Ë?C", NULL));
+ //unit_category_add_unit(category, unit_new("farenheit", _("Farenheit"), "%sË?F", get_value("", &t), "Ë?F", NULL));
+ //unit_category_add_unit(category, unit_new("kelvin", _("Kelvin"), "%s days", get_value("86400", &t), "days", "day", NULL));
+
category = unit_manager_add_category(default_unit_manager, "currency", _("Currency"));
for (i = 0; currency_info[i].short_name != NULL; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]