Larry, I was able to repro this today, so despite what I saw in the code, there is another hook that does call like you said, even in the latest version:
mfisch@caprica:/etc$ sudo system-config-samba
** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.
Larry, I was able to repro this today, so despite what I saw in the code, there is another hook that does call like you said, even in the latest version:
mfisch@ caprica: /etc$ sudo system-config-samba
** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.