summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-06-27 01:40:01 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-06-27 01:40:01 +0000
commita65c95ff4739e2803e28d64b2a3b3774dd1f45aa (patch)
tree96ea7df357bc76c5e50dc89b416a73c0646c5c82 /src/inkscape.cpp
parentConvert accidental member accesses into static function accesses (diff)
downloadinkscape-a65c95ff4739e2803e28d64b2a3b3774dd1f45aa.tar.gz
inkscape-a65c95ff4739e2803e28d64b2a3b3774dd1f45aa.zip
Move constructor/destructor into private section, remove protected section. Rename init(). Add to-do list.
(bzr r13341.5.8)
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 60f950636..89501c646 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -9,7 +9,7 @@
*
* Copyright (C) 1999-2014 authors
* c++ port Copyright (C) 2003 Nathan Hurst
- * c++ification copyright (C) 2014 Liam P. White
+ * c++ification Copyright (C) 2014 Liam P. White
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
@@ -103,6 +103,19 @@ typedef int uid_t;
#define getuid() 0
#endif
+/** C++ification TODO list
+ * - _S_inst should NOT need to be assigned inside the constructor, but if it isn't the Filters+Extensions menus break.
+ * - Application::_deskops has to be a pointer because of a signal bug somewhere else. Basically, it will attempt to access a deleted object in sp_ui_close_all(),
+ * but if it's a pointer we can stop and return NULL in Application::active_desktop()
+ * - These functions are calling Application::create for no good reason I can determine:
+ *
+ * Inkscape::UI::Dialog::SVGPreview::SVGPreview()
+ * src/ui/dialog/filedialogimpl-gtkmm.cpp:542:9
+ * void Inkscape::UI::Widget::ImageIcon::init()
+ * src/ui/widget/imageicon.cpp:93:9
+ */
+
+
class InkErrorHandler : public Inkscape::ErrorReporter {
public:
InkErrorHandler(bool useGui) : Inkscape::ErrorReporter(),
@@ -157,7 +170,7 @@ int inkscape_autosave(gpointer) {
namespace Inkscape {
void
-Application::init (const char *argv0, bool use_gui)
+Application::create(const char *argv0, bool use_gui)
{
if (!Application::instance()) {
new Application(argv0, use_gui);