Pike v8.1 release 6

Method GTK2.Gnome2Client()->request_save()


Method request_save

Gnome2.Client request_save(int save_style, int shutdown, int interact_style, int fast, int global)

Description

Request the session manager to save the session in some way. The arguments correspond with the arguments passed to the "save-yourself" signal handler.

The save_style (GNOME_SAVE_BOTH, GNOME_SAVE_GLOBAL and GNOME_SAVE_LOCAL) indicates whether the save should affect data accessible to other users (GTK2.GNOME_SAVE_GLOBAL) or only the state visible to the current user (GTK2.GNOME_SAVE_LOCAL), or both. Setting shutdown to true will initiate a logout. The interact_style (GNOME_INTERACT_ANY, GNOME_INTERACT_ERRORS and GNOME_INTERACT_NONE) specifies which kinds of interaction will be available. Setting fast to true will limit the save to setting the session manager properties plus any essential data. Setting the value of global to true will request that all the other apps in the session do a save as well. A global save is mandatory when doing a shutdown.