gtk: add certain callbacks only for dialogs and not windows