]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBaseDeprecated.h
Fix leaking pixmap icon.
[lyx.git] / src / frontends / xforms / FormBaseDeprecated.h
index 5a8d181a7e9dfb1dc5deabaf987d7cb1127471f8..65c2c7dfd2e239c397a10889b96de2ef28ebecdf 100644 (file)
 #pragma interface
 #endif
 
-#include "LString.h"
 #include "xformsBC.h"
 #include "FeedbackController.h"
-
 #include "forms_fwd.h"
 
+#include "LString.h"
 #include <boost/utility.hpp>
 #include <boost/signals/connection.hpp>
+#include <X11/Xlib.h> // for Pixmap
 
 class Buffer;
 class Dialogs;
@@ -131,6 +131,15 @@ protected: // methods
        string title_;
 
 private:
+       /** Called on the first show() request, initialising various bits and
+        *  pieces.
+        */
+       void prepare_to_show();
+
+       /// Passed to the window manager to give a pretty little symbol ;-)
+       Pixmap icon_pixmap_;
+       ///
+       Pixmap icon_mask_;
        /// The dialog's minimum allowable dimensions.
        int minw_;
        ///