summaryrefslogtreecommitdiff
path: root/src/gpm-upower.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-07-09 18:41:58 +0200
committerraveit65 <[email protected]>2016-07-25 16:13:40 +0200
commitbfc5fb932891932b3e5f46e8067a5593d461ab96 (patch)
tree561cda2ff6db0a2dbbdf8e8bcacfb4cc5857adcf /src/gpm-upower.c
parente2d30b28338f4d2947117bd98b9555915fd55fe0 (diff)
downloadmate-power-manager-bfc5fb932891932b3e5f46e8067a5593d461ab96.tar.bz2
mate-power-manager-bfc5fb932891932b3e5f46e8067a5593d461ab96.tar.xz
rename a function to match upstream
taken from: https://git.gnome.org/browse/gnome-power-manager/commit/?id=f2c0409
Diffstat (limited to 'src/gpm-upower.c')
-rw-r--r--src/gpm-upower.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpm-upower.c b/src/gpm-upower.c
index 82d12e9..43f0568 100644
--- a/src/gpm-upower.c
+++ b/src/gpm-upower.c
@@ -206,7 +206,7 @@ gpm_upower_get_device_summary (UpDevice *device)
if (!is_present)
return NULL;
- kind_desc = gpm_device_kind_to_localised_text (kind, 1);
+ kind_desc = gpm_device_kind_to_localised_string (kind, 1);
/* don't display all the extra stuff for keyboards and mice */
if (kind == UP_DEVICE_KIND_MOUSE ||
@@ -352,7 +352,7 @@ gpm_upower_get_device_description (UpDevice *device)
NULL);
details = g_string_new ("");
- text = gpm_device_kind_to_localised_text (kind, 1);
+ text = gpm_device_kind_to_localised_string (kind, 1);
/* TRANSLATORS: the type of data, e.g. Laptop battery */
g_string_append_printf (details, "<b>%s</b> %s\n", _("Product:"), text);
@@ -466,10 +466,10 @@ gpm_upower_get_device_description (UpDevice *device)
}
/**
- * gpm_device_kind_to_localised_text:
+ * gpm_device_kind_to_localised_string:
**/
const gchar *
-gpm_device_kind_to_localised_text (UpDeviceKind kind, guint number)
+gpm_device_kind_to_localised_string (UpDeviceKind kind, guint number)
{
const gchar *text = NULL;
switch (kind) {