summaryrefslogtreecommitdiff
path: root/src/gpm-upower.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-14 07:54:19 +0100
committerraveit65 <[email protected]>2020-03-09 15:26:43 +0100
commit33e52564affb7fbc50ad68a08c43c9f70e7d1bb4 (patch)
tree9ac72ec71977ec83ab647b502dbf4bd4a9639a1f /src/gpm-upower.c
parent9f3d2d0986a6130b1cefc84caae161d75b4f56ba (diff)
downloadmate-power-manager-33e52564affb7fbc50ad68a08c43c9f70e7d1bb4.tar.bz2
mate-power-manager-33e52564affb7fbc50ad68a08c43c9f70e7d1bb4.tar.xz
Port from EggDebug to the built-in GLib logging framework
Diffstat (limited to 'src/gpm-upower.c')
-rw-r--r--src/gpm-upower.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gpm-upower.c b/src/gpm-upower.c
index 5b25e63..9048630 100644
--- a/src/gpm-upower.c
+++ b/src/gpm-upower.c
@@ -24,7 +24,6 @@
#include <glib/gi18n.h>
#include <libupower-glib/upower.h>
-#include "egg-debug.h"
#include "egg-precision.h"
#include "gpm-upower.h"
@@ -166,11 +165,11 @@ gpm_upower_get_device_icon (UpDevice *device)
/* nothing matched */
if (filename == NULL) {
- egg_warning ("nothing matched, falling back to default icon");
+ g_warning ("nothing matched, falling back to default icon");
filename = g_strdup ("dialog-warning");
}
- egg_debug ("got filename: %s", filename);
+ g_debug ("got filename: %s", filename);
return filename;
}
@@ -306,7 +305,7 @@ gpm_upower_get_device_summary (UpDevice *device)
description = g_strdup_printf (_("%s empty"), kind_desc);
} else {
- egg_warning ("in an undefined state we are not charging or "
+ g_warning ("in an undefined state we are not charging or "
"discharging and the batteries are also not charged");
description = g_strdup_printf ("%s (%.1f%%)", kind_desc, percentage);
}
@@ -527,7 +526,7 @@ gpm_device_kind_to_localised_string (UpDeviceKind kind, guint number)
text = ngettext ("Computer", "Computers", number);
break;
default:
- egg_warning ("enum unrecognised: %i", kind);
+ g_warning ("enum unrecognised: %i", kind);
text = up_device_kind_to_string (kind);
}
return text;
@@ -575,7 +574,7 @@ gpm_device_kind_to_icon (UpDeviceKind kind)
icon = "computer-apple-ipad";
break;
default:
- egg_warning ("enum unrecognised: %i", kind);
+ g_warning ("enum unrecognised: %i", kind);
icon = "gtk-help";
}
return icon;