Signal

GtkApplicationWindow::save-state

unstable since: 4.22

Declaration

gboolean
save_state (
  GtkApplicationWindow* self,
  GVariantDict* dict,
  gpointer user_data
)

Description [src]

The handler for this signal should persist any application-specific state of window into dict.

Note that window management state such as maximized, fullscreen, or window size should not be saved as part of this, they are handled by GTK.

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.

See GtkApplication::restore-window.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Available since: 4.22

Parameters

dict

Type: GVariantDict

A dictionary of type a{sv}.

The data is owned by the caller of the function.

Return value

Type: gboolean

True to stop stop further handlers from running.