From c980a6bdb43af1e7a32c0979d1b0e8a78be74f26 Mon Sep 17 00:00:00 2001 From: "james.k.crook@gmail.com" Date: Fri, 27 Sep 2013 15:35:43 +0000 Subject: [PATCH] Restored deleted code to initialise save-yourself-call-back pending discussion/decision on value of the code. --- src/AudacityApp.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 8c372973c..a8e589877 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -407,6 +407,11 @@ void SaveWindowSize() // 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 /* There is a conflict between the type names used in Glib >= 2.21 and those in * wxGTK (http://trac.wxwidgets.org/ticket/10883) @@ -563,6 +568,10 @@ class GnomeShutdown GnomeClient *mClient; }; +// This variable exists to call the constructor and +// connect a signal for the 'save-yourself' message. +GnomeShutdown GnomeShutdownInstance; + #endif #if defined(__WXMSW__)