Fix detecting if tab is a dialog
Use g_strsignal