jldupont
jldupont

Reputation: 96716

gtk+ signal emitted when window/dialog is "presented"

Is there a signal that is emitted when a window/dialog is presented in GTK+?

Example: when issuing this command to the GTK widget dialog:

dialog.present()

is there a resulting signal? Or is there any signal that denotes the "showing" of a window/dialog?

Upvotes: 0

Views: 451

Answers (2)

ptomato
ptomato

Reputation: 57870

The notify::visible signal will be emitted whenever the visibility state changes, i.e. the window is shown or hidden. The show signal isn't documented but from the source it appears that it is an action signal; you can call it yourself using

dialog.emit('show')

and the widget will show itself, apparently without triggering the notify::visible signal.

Upvotes: 1

ergosys
ergosys

Reputation: 49019

I believe the "show" signal (inherited from Widget) will do this.

Upvotes: 1

Related Questions