mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Emit changed in g_socket_listener_add_socket, not in add_address
This way we emit this signal when add_socket is called from another place than add_address too.
This commit is contained in:
parent
a640695f16
commit
31cb0bdcb0
@ -241,6 +241,10 @@ g_socket_listener_add_socket (GSocketListener *listener,
|
|||||||
g_object_set_qdata_full (G_OBJECT (socket), source_quark,
|
g_object_set_qdata_full (G_OBJECT (socket), source_quark,
|
||||||
g_object_ref (source_object), g_object_unref);
|
g_object_ref (source_object), g_object_unref);
|
||||||
|
|
||||||
|
|
||||||
|
if (G_SOCKET_LISTENER_GET_CLASS (listener)->changed)
|
||||||
|
G_SOCKET_LISTENER_GET_CLASS (listener)->changed (listener);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -334,9 +338,6 @@ g_socket_listener_add_address (GSocketListener *listener,
|
|||||||
|
|
||||||
g_object_unref (socket); /* add_socket refs this */
|
g_object_unref (socket); /* add_socket refs this */
|
||||||
|
|
||||||
if (G_SOCKET_LISTENER_GET_CLASS (listener)->changed)
|
|
||||||
G_SOCKET_LISTENER_GET_CLASS (listener)->changed (listener);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user