summaryrefslogtreecommitdiff
path: root/src/gpm-networkmanager.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-networkmanager.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-networkmanager.c')
-rw-r--r--src/gpm-networkmanager.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpm-networkmanager.c b/src/gpm-networkmanager.c
index add8fc0..e882b54 100644
--- a/src/gpm-networkmanager.c
+++ b/src/gpm-networkmanager.c
@@ -27,7 +27,6 @@
#include <dbus/dbus-glib.h>
#include "gpm-networkmanager.h"
-#include "egg-debug.h"
#define NM_LISTENER_SERVICE "org.freedesktop.NetworkManager"
#define NM_LISTENER_PATH "/org/freedesktop/NetworkManager"
@@ -49,7 +48,7 @@ gpm_networkmanager_sleep (void)
connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
if (error) {
- egg_warning ("%s", error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
return FALSE;
}
@@ -59,7 +58,7 @@ gpm_networkmanager_sleep (void)
NM_LISTENER_PATH,
NM_LISTENER_INTERFACE);
if (!nm_proxy) {
- egg_warning ("Failed to get name owner");
+ g_warning ("Failed to get name owner");
return FALSE;
}
dbus_g_proxy_call_no_reply (nm_proxy, "sleep", G_TYPE_INVALID);
@@ -83,7 +82,7 @@ gpm_networkmanager_wake (void)
connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
if (error) {
- egg_warning ("%s", error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
return FALSE;
}
@@ -93,7 +92,7 @@ gpm_networkmanager_wake (void)
NM_LISTENER_PATH,
NM_LISTENER_INTERFACE);
if (!nm_proxy) {
- egg_warning ("Failed to get name owner");
+ g_warning ("Failed to get name owner");
return FALSE;
}
dbus_g_proxy_call_no_reply (nm_proxy, "wake", G_TYPE_INVALID);