struct Adw::TabView::PageDetachedSignal

Overview

Emitted when a page has been removed or transferred to another view.

A typical reason to connect to this signal would be to disconnect signal handlers connected in the [signal@TabView::page-attached] handler.

It is important not to try and destroy the page child in the handler of this function as the child might merely be moved to another window; use child dispose handler for that or do it in sync with your TabView#close_page_finish calls.

Defined in:

lib/gi-crystal/src/auto/adw-1/tab_view.cr

Instance Method Summary

Instance methods inherited from struct GObject::Signal

[](detail : String) : self [], name : String name

Constructor methods inherited from struct GObject::Signal

new(source, detail = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(Adw::TabPage, Int32, Nil)) : GObject::SignalConnection #

def connect(handler : Proc(Adw::TabPage, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection #

def connect(handler : Proc(Adw::TabView, Adw::TabPage, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection #

def emit(page : Adw::TabPage, position : Int32) : Nil #

def name : String #
Description copied from struct GObject::Signal

The signal name