From 51c2905fd3e99955db2d823b79abb763d8097028 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Thu, 6 Aug 2009 14:17:17 +0000 Subject: Revert recent refactoring changes by johnce because they break the build, which cannot be fixed easily. (bzr r8422) --- src/ui/widget/entity-entry.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui/widget/entity-entry.cpp') diff --git a/src/ui/widget/entity-entry.cpp b/src/ui/widget/entity-entry.cpp index f42b29760..e9f09f574 100644 --- a/src/ui/widget/entity-entry.cpp +++ b/src/ui/widget/entity-entry.cpp @@ -81,7 +81,7 @@ EntityLineEntry::~EntityLineEntry() } void -EntityLineEntry::update (Document *doc) +EntityLineEntry::update (SPDocument *doc) { const char *text = rdf_get_work_entity (doc, _entity); static_cast(_packable)->set_text (text ? text : ""); @@ -93,7 +93,7 @@ EntityLineEntry::on_changed() if (_wr->isUpdating()) return; _wr->setUpdating (true); - Document *doc = SP_ACTIVE_DOCUMENT; + SPDocument *doc = SP_ACTIVE_DOCUMENT; Glib::ustring text = static_cast(_packable)->get_text(); if (rdf_set_work_entity (doc, _entity, text.c_str())) sp_document_done (doc, SP_VERB_NONE, @@ -122,7 +122,7 @@ EntityMultiLineEntry::~EntityMultiLineEntry() } void -EntityMultiLineEntry::update (Document *doc) +EntityMultiLineEntry::update (SPDocument *doc) { const char *text = rdf_get_work_entity (doc, _entity); Gtk::ScrolledWindow *s = static_cast(_packable); @@ -136,7 +136,7 @@ EntityMultiLineEntry::on_changed() if (_wr->isUpdating()) return; _wr->setUpdating (true); - Document *doc = SP_ACTIVE_DOCUMENT; + SPDocument *doc = SP_ACTIVE_DOCUMENT; Gtk::ScrolledWindow *s = static_cast(_packable); Gtk::TextView *tv = static_cast(s->get_child()); Glib::ustring text = tv->get_buffer()->get_text(); -- cgit v1.2.3