summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-06-27 19:23:06 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-06-27 19:23:06 +0000
commit45f373f3319b598d8e0222fb48e9d3a4760b2044 (patch)
tree846a9ec382567267b09e63c3dde2e1f20cbbffb5 /src/desktop.cpp
parentMove constructor/destructor into private section, remove protected section. R... (diff)
downloadinkscape-45f373f3319b598d8e0222fb48e9d3a4760b2044.tar.gz
inkscape-45f373f3319b598d8e0222fb48e9d3a4760b2044.zip
5. Refactoring of Application class: make copy/assignment operators private, disallow pointers to Application
(bzr r13341.5.9)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp58
1 files changed, 26 insertions, 32 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 935567462..542f1618b 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -93,28 +93,28 @@ static void _reconstruction_finish(SPDesktop * desktop);
static void _namedview_modified (SPObject *obj, guint flags, SPDesktop *desktop);
SPDesktop::SPDesktop() :
- _dlg_mgr( 0 ),
- namedview( 0 ),
- canvas( 0 ),
- layers( 0 ),
- selection( 0 ),
- event_context( 0 ),
- layer_manager( 0 ),
- event_log( 0 ),
- temporary_item_list( 0 ),
- snapindicator( 0 ),
- acetate( 0 ),
- main( 0 ),
- gridgroup( 0 ),
- guides( 0 ),
- drawing( 0 ),
- sketch( 0 ),
- controls( 0 ),
- tempgroup ( 0 ),
- table( 0 ),
- page( 0 ),
- page_border( 0 ),
- current( 0 ),
+ _dlg_mgr( NULL ),
+ namedview( NULL ),
+ canvas( NULL ),
+ layers( NULL ),
+ selection( NULL ),
+ event_context( NULL ),
+ layer_manager( NULL ),
+ event_log( NULL ),
+ temporary_item_list( NULL ),
+ snapindicator( NULL ),
+ acetate( NULL ),
+ main( NULL ),
+ gridgroup( NULL ),
+ guides( NULL ),
+ drawing( NULL ),
+ sketch( NULL ),
+ controls( NULL ),
+ tempgroup ( NULL ),
+ table( NULL ),
+ page( NULL ),
+ page_border( NULL ),
+ current( NULL ),
_focusMode(false),
dkey( 0 ),
number( 0 ),
@@ -123,16 +123,15 @@ SPDesktop::SPDesktop() :
waiting_cursor( false ),
showing_dialogs ( false ),
guides_active( false ),
- gr_item( 0 ),
+ gr_item( NULL ),
gr_point_type( POINT_LG_BEGIN ),
gr_point_i( 0 ),
gr_fill_or_stroke( Inkscape::FOR_FILL ),
_reconstruction_old_layer_id(), // an id attribute is not allowed to be the empty string
_display_mode(Inkscape::RENDERMODE_NORMAL),
_display_color_mode(Inkscape::COLORMODE_NORMAL),
- _widget( 0 ),
- _inkscape( 0 ),
- _guides_message_context( 0 ),
+ _widget( NULL ),
+ _guides_message_context( NULL ),
_active( false ),
_w2d(),
_d2w(),
@@ -298,7 +297,6 @@ SPDesktop::init (SPNamedView *nv, SPCanvas *aCanvas, Inkscape::UI::View::EditWid
// ?
// sp_active_desktop_set (desktop);
- _inkscape = INKSCAPE;
_activate_connection = _activate_signal.connect(
sigc::bind(
@@ -384,10 +382,6 @@ void SPDesktop::destroy()
layer_manager = NULL;
}
- if (_inkscape) {
- _inkscape = NULL;
- }
-
if (drawing) {
doc()->getRoot()->invoke_hide(dkey);
g_object_unref(drawing);
@@ -1430,7 +1424,7 @@ void
SPDesktop::emitToolSubselectionChanged(gpointer data)
{
_tool_subselection_changed.emit(data);
- INKSCAPE->subselection_changed (this);
+ INKSCAPE.subselection_changed (this);
}
void SPDesktop::updateNow()