mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
gdbusobjectmanagerclient: always connect to proxy's 'g-signal'
If we don't connect to the control proxy's 'g-signal' signal, we won't have 'object-added' or 'object-removed' signals. So, connect to the 'g-signal' not only when there already is a name-owner, but always. https://bugzilla.gnome.org/show_bug.cgi?id=693285
This commit is contained in:
parent
f9d6dcac0b
commit
27ecab7553
@ -1352,6 +1352,11 @@ initable_init (GInitable *initable,
|
||||
G_CALLBACK (on_notify_g_name_owner),
|
||||
manager);
|
||||
|
||||
g_signal_connect (manager->priv->control_proxy,
|
||||
"g-signal",
|
||||
G_CALLBACK (on_control_proxy_g_signal),
|
||||
manager);
|
||||
|
||||
manager->priv->name_owner = g_dbus_proxy_get_name_owner (manager->priv->control_proxy);
|
||||
if (manager->priv->name_owner == NULL && manager->priv->name != NULL)
|
||||
{
|
||||
@ -1362,10 +1367,6 @@ initable_init (GInitable *initable,
|
||||
else
|
||||
{
|
||||
/* yay, we can get the objects */
|
||||
g_signal_connect (manager->priv->control_proxy,
|
||||
"g-signal",
|
||||
G_CALLBACK (on_control_proxy_g_signal),
|
||||
manager);
|
||||
subscribe_signals (manager,
|
||||
manager->priv->name_owner);
|
||||
value = g_dbus_proxy_call_sync (manager->priv->control_proxy,
|
||||
|
Loading…
Reference in New Issue
Block a user