summaryrefslogtreecommitdiffstats
path: root/src/event-log.cpp
diff options
context:
space:
mode:
authorgustav_b <gustav_b@users.sourceforge.net>2006-10-01 18:57:05 +0000
committergustav_b <gustav_b@users.sourceforge.net>2006-10-01 18:57:05 +0000
commita8c615d56eda3f3e6ee05e9b133151daaeafae72 (patch)
treec32b5f6a6661b332058a1fad5e23d7238188dcf4 /src/event-log.cpp
parentOther tools now also retain there specific statusbar text when pressing alt/s... (diff)
downloadinkscape-a8c615d56eda3f3e6ee05e9b133151daaeafae72.tar.gz
inkscape-a8c615d56eda3f3e6ee05e9b133151daaeafae72.zip
Moved EventLog from SPDocument to SPDesktop to prevent it from being
created when Inkscape is started in non-gui mode. Fixes a critical assertion caused by creation of a Gtk::TreeStore. (bzr r1749)
Diffstat (limited to 'src/event-log.cpp')
-rw-r--r--src/event-log.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/event-log.cpp b/src/event-log.cpp
index 496094318..751616d30 100644
--- a/src/event-log.cpp
+++ b/src/event-log.cpp
@@ -16,10 +16,10 @@
namespace Inkscape {
-EventLog::EventLog() :
+EventLog::EventLog(SPDocument* document) :
UndoStackObserver(),
_connected (false),
- _document (NULL),
+ _document (document),
_event_list_store (Gtk::TreeStore::create(_columns)),
_event_list_selection (NULL),
_event_list_view (NULL),
@@ -228,15 +228,6 @@ EventLog::notifyUndoCommitEvent(Event* log)
updateUndoVerbs();
}
-
-void
-EventLog::setDocument(SPDocument *document)
-{
- _document = document;
- updateUndoVerbs();
-}
-
-
void
EventLog::connectWithDialog(Gtk::TreeView *event_list_view, CallbackMap *callback_connections)
{