mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
Restored deleted code to initialise save-yourself-call-back pending discussion/decision on value of the code.
This commit is contained in:
@@ -407,6 +407,11 @@ void SaveWindowSize()
|
|||||||
// Most of this was taken from nsNativeAppSupportUnix.cpp from Mozilla.
|
// Most of this was taken from nsNativeAppSupportUnix.cpp from Mozilla.
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// TODO: May need updating. Is this code too obsolete (relying on Gnome2 so's) to be
|
||||||
|
// worth keeping anymore?
|
||||||
|
// CB suggests we use libSM directly ref:
|
||||||
|
// http://www.x.org/archive/X11R7.7/doc/libSM/SMlib.html#The_Save_Yourself_Callback
|
||||||
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
/* There is a conflict between the type names used in Glib >= 2.21 and those in
|
/* There is a conflict between the type names used in Glib >= 2.21 and those in
|
||||||
* wxGTK (http://trac.wxwidgets.org/ticket/10883)
|
* wxGTK (http://trac.wxwidgets.org/ticket/10883)
|
||||||
@@ -563,6 +568,10 @@ class GnomeShutdown
|
|||||||
GnomeClient *mClient;
|
GnomeClient *mClient;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// This variable exists to call the constructor and
|
||||||
|
// connect a signal for the 'save-yourself' message.
|
||||||
|
GnomeShutdown GnomeShutdownInstance;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__WXMSW__)
|
#if defined(__WXMSW__)
|
||||||
|
|||||||
Reference in New Issue
Block a user