mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-04 01:18:04 +02:00
fix the signals in DkpClient
This commit is contained in:
parent
c85710d905
commit
80c020e709
1 changed files with 3 additions and 3 deletions
|
|
@ -130,7 +130,7 @@ dkp_client_added_cb (DBusGProxy *proxy, const gchar *object_path, DkpClient *cli
|
|||
|
||||
/* create new device */
|
||||
device = dkp_client_add (client, object_path);
|
||||
g_signal_emit (device, signals [DKP_CLIENT_ADDED], 0, device);
|
||||
g_signal_emit (client, signals [DKP_CLIENT_ADDED], 0, device);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -142,7 +142,7 @@ dkp_client_changed_cb (DBusGProxy *proxy, const gchar *object_path, DkpClient *c
|
|||
DkpClientDevice *device;
|
||||
device = dkp_client_get_device (client, object_path);
|
||||
if (device != NULL)
|
||||
g_signal_emit (device, signals [DKP_CLIENT_CHANGED], 0, device);
|
||||
g_signal_emit (client, signals [DKP_CLIENT_CHANGED], 0, device);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -154,7 +154,7 @@ dkp_client_removed_cb (DBusGProxy *proxy, const gchar *object_path, DkpClient *c
|
|||
DkpClientDevice *device;
|
||||
device = dkp_client_get_device (client, object_path);
|
||||
if (device != NULL)
|
||||
g_signal_emit (device, signals [DKP_CLIENT_REMOVED], 0, device);
|
||||
g_signal_emit (client, signals [DKP_CLIENT_REMOVED], 0, device);
|
||||
dkp_client_remove (client, device);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue