aboutsummaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-01 13:39:10 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-01 13:39:10 -0500
commit4c433bf6980f43c5fca5d7c86b167f50cc0295fd (patch)
tree163cc8098f1cd026f865b05d510ab6ca1e94cea6 /src/device.c
parent560aa0ec6f3b4f845e6cc0e6b3c25197d1905794 (diff)
downloadayatana-indicator-power-4c433bf6980f43c5fca5d7c86b167f50cc0295fd.tar.gz
ayatana-indicator-power-4c433bf6980f43c5fca5d7c86b167f50cc0295fd.tar.bz2
ayatana-indicator-power-4c433bf6980f43c5fca5d7c86b167f50cc0295fd.zip
In indicator_power_device_get_time_details(), use g_strdup(foo) instead of g_strdup_printf("%s",foo)
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index 8752cb1..ac03009 100644
--- a/src/device.c
+++ b/src/device.c
@@ -541,14 +541,14 @@ indicator_power_device_get_time_details (const IndicatorPowerDevice * device,
{
*accessible_name = g_strdup_printf (_("%s"), device_name);
*details = g_strdup_printf (_("%s"), device_name);
- *short_details = g_strdup_printf ("%s", short_timestring);
+ *short_details = g_strdup (short_timestring);
}
else
{
/* TRANSLATORS: %2 is a time string, e.g. "1 hour 5 minutes" */
*accessible_name = g_strdup_printf (_("%s (%s left (%.0lf%%))"), device_name, detailed_timestring, percentage);
*details = g_strdup_printf (_("%s (%s left)"), device_name, short_timestring);
- *short_details = g_strdup_printf ("%s", short_timestring);
+ *short_details = g_strdup (short_timestring);
}
g_free (short_timestring);