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:
Alexander Larsson 2009-06-15 15:43:39 +02:00
parent a640695f16
commit 31cb0bdcb0

View File

@ -241,6 +241,10 @@ g_socket_listener_add_socket (GSocketListener *listener,
g_object_set_qdata_full (G_OBJECT (socket), source_quark,
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;
}
@ -334,9 +338,6 @@ g_socket_listener_add_address (GSocketListener *listener,
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;
}