diff options
| author | mjwybrow <mjwybrow@users.sourceforge.net> | 2006-02-07 00:37:46 +0000 |
|---|---|---|
| committer | mjwybrow <mjwybrow@users.sourceforge.net> | 2006-02-07 00:37:46 +0000 |
| commit | c2b00b03083db05b0b1b00bd91ccff3c278dd800 (patch) | |
| tree | 3173999265b7107259f873477fd8c12f6bc63bf2 /src | |
| parent | crop an item's bbox by its clippath bbox, if any (diff) | |
| download | inkscape-c2b00b03083db05b0b1b00bd91ccff3c278dd800.tar.gz inkscape-c2b00b03083db05b0b1b00bd91ccff3c278dd800.zip | |
* src/jabber_whiteboard/message-utilities.h,
src/jabber_whiteboard/serializer.cpp,
src/jabber_whiteboard/deserializer.cpp,
src/jabber_whiteboard/message-utilities.cpp,
src/ui/dialog/whiteboard-connect.cpp:
Some fixes to allow the codebase to compile with Inkboard support
after the recent Util::shared_ptr<> and Dialog::present() changes.
(bzr r100)
Diffstat (limited to 'src')
| -rw-r--r-- | src/jabber_whiteboard/deserializer.cpp | 2 | ||||
| -rw-r--r-- | src/jabber_whiteboard/message-utilities.cpp | 4 | ||||
| -rw-r--r-- | src/jabber_whiteboard/message-utilities.h | 5 | ||||
| -rw-r--r-- | src/jabber_whiteboard/serializer.cpp | 24 | ||||
| -rw-r--r-- | src/ui/dialog/whiteboard-connect.cpp | 5 |
5 files changed, 23 insertions, 17 deletions
diff --git a/src/jabber_whiteboard/deserializer.cpp b/src/jabber_whiteboard/deserializer.cpp index 8a6a464b4..066557ad5 100644 --- a/src/jabber_whiteboard/deserializer.cpp +++ b/src/jabber_whiteboard/deserializer.cpp @@ -372,7 +372,7 @@ Deserializer::deserializeEventChgAttr(Glib::ustring const& msg) // 5. If this node is in the actions queue and is marked as "new", we need to apply // _all_ received attributes to it _before_ adding it to the document tree. if (this->_newnodes.find(id) != this->_newnodes.end()) { - node->setAttribute(key.c_str(), newval.cString()); + node->setAttribute(key.c_str(), newval.pointer()); } // 6. Deserialize the event. diff --git a/src/jabber_whiteboard/message-utilities.cpp b/src/jabber_whiteboard/message-utilities.cpp index 8843b6f45..2812e303b 100644 --- a/src/jabber_whiteboard/message-utilities.cpp +++ b/src/jabber_whiteboard/message-utilities.cpp @@ -310,12 +310,12 @@ MessageUtilities::contentChangeMessage(Glib::ustring& msgbuf, std::string const // <MESSAGE_OLDVAL>old_value</MESSAGE_OLDVAL> msgbuf = msgbuf + "<" + MESSAGE_OLDVAL + ">"; - msgbuf += old_value.cString(); + msgbuf += old_value.pointer(); msgbuf = msgbuf + "</" + MESSAGE_OLDVAL + ">"; // <MESSAGE_NEWVAL>new_value</MESSAGE_NEWVAL> msgbuf = msgbuf + "<" + MESSAGE_NEWVAL + ">"; - msgbuf += new_value.cString(); + msgbuf += new_value.pointer(); msgbuf = msgbuf + "</" + MESSAGE_NEWVAL + ">"; // </MESSAGE_NODECONTENT> diff --git a/src/jabber_whiteboard/message-utilities.h b/src/jabber_whiteboard/message-utilities.h index 5595f435c..8fbefac18 100644 --- a/src/jabber_whiteboard/message-utilities.h +++ b/src/jabber_whiteboard/message-utilities.h @@ -26,7 +26,8 @@ namespace Inkscape { namespace Util { -class shared_ptr<char>; +template <typename T> +class shared_ptr; } @@ -80,5 +81,5 @@ private: fill-column:99 End: */ -// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : #endif diff --git a/src/jabber_whiteboard/serializer.cpp b/src/jabber_whiteboard/serializer.cpp index aae3e1378..eb5278047 100644 --- a/src/jabber_whiteboard/serializer.cpp +++ b/src/jabber_whiteboard/serializer.cpp @@ -201,19 +201,19 @@ Serializer::notifyContentChanged(XML::Node& node, Util::shared_ptr<char> old_con return; } - if (old_content.cString() != NULL && new_content.cString() != NULL) { - if (strcmp(old_content.cString(), new_content.cString()) == 0) { + if (old_content.pointer() != NULL && new_content.pointer() != NULL) { + if (strcmp(old_content.pointer(), new_content.pointer()) == 0) { return; } } // 3. Serialize the event. - if (old_content.cString() != NULL) { - oldvalmsg = MessageUtilities::makeTagWithContent(MESSAGE_OLDVAL, old_content.cString()); + if (old_content.pointer() != NULL) { + oldvalmsg = MessageUtilities::makeTagWithContent(MESSAGE_OLDVAL, old_content.pointer()); } - if (new_content.cString() != NULL) { - newvalmsg = MessageUtilities::makeTagWithContent(MESSAGE_NEWVAL, new_content.cString()); + if (new_content.pointer() != NULL) { + newvalmsg = MessageUtilities::makeTagWithContent(MESSAGE_NEWVAL, new_content.pointer()); } Glib::ustring nodeidmsg = MessageUtilities::makeTagWithContent(MESSAGE_ID, nodeid); @@ -233,8 +233,8 @@ Serializer::notifyAttributeChanged(XML::Node& node, GQuark name, Util::shared_pt Glib::ustring key = g_quark_to_string(name); // 3. If oldval == newval, don't echo this change. - if (new_value.cString() != NULL && old_value.cString() != NULL) { - if (strcmp(new_value.cString(), old_value.cString()) == 0) { + if (new_value.pointer() != NULL && old_value.pointer() != NULL) { + if (strcmp(new_value.pointer(), old_value.pointer()) == 0) { return; } } @@ -243,12 +243,12 @@ Serializer::notifyAttributeChanged(XML::Node& node, GQuark name, Util::shared_pt Glib::ustring keymsg = MessageUtilities::makeTagWithContent(MESSAGE_KEY, key); Glib::ustring oldvalmsg, newvalmsg; - if (old_value.cString() != NULL) { - oldvalmsg = MessageUtilities::makeTagWithContent(MESSAGE_OLDVAL, old_value.cString()); + if (old_value.pointer() != NULL) { + oldvalmsg = MessageUtilities::makeTagWithContent(MESSAGE_OLDVAL, old_value.pointer()); } - if (new_value.cString() != NULL) { - newvalmsg = MessageUtilities::makeTagWithContent(MESSAGE_NEWVAL, new_value.cString()); + if (new_value.pointer() != NULL) { + newvalmsg = MessageUtilities::makeTagWithContent(MESSAGE_NEWVAL, new_value.pointer()); } Glib::ustring nodeidmsg = MessageUtilities::makeTagWithContent(MESSAGE_ID, nodeid); diff --git a/src/ui/dialog/whiteboard-connect.cpp b/src/ui/dialog/whiteboard-connect.cpp index 173e9a794..50f44e5f7 100644 --- a/src/ui/dialog/whiteboard-connect.cpp +++ b/src/ui/dialog/whiteboard-connect.cpp @@ -52,6 +52,11 @@ WhiteboardConnectDialogImpl::~WhiteboardConnectDialogImpl() { } +void WhiteboardConnectDialogImpl::present() +{ + Dialog::present(); +} + void WhiteboardConnectDialogImpl::setSessionManager() { |
