Signal
GtkApplication::restore-state
unstable since: 4.24
Declaration
gboolean
restore_state (
GtkApplication* self,
GtkRestoreReason reason,
GVariant* state,
gpointer user_data
)
Description [src]
Emitted when application global state is restored.
The handler for this signal should do the opposite of what the
corresponding handler for GtkApplication::save-state does.
You must be careful to be robust in the face of app upgrades and downgrades:
the state might have been created by a previous or occasionally even a future
version of your app. Do not assume that a given key exists in the state.
Apps must try to restore state saved by a previous version, but are free to
discard state if it was written by a future version.
| Default handler: The default handler is called after the handlers added via |
| Available since: 4.24 |
Parameters
reason-
Type:
GtkRestoreReasonThe reason for restoring state.
state-
Type:
GVariantAn
a{sv}dictionary containing the state to restore, as saved by aGtkApplication::save-statehandler.The data is owned by the caller of the function.