summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f70959)
raw | patch | inline | side by side (parent: 0f70959)
author | mjwybrow <mjwybrow@users.sourceforge.net> | |
Tue, 7 Feb 2006 00:37:46 +0000 (00:37 +0000) | ||
committer | mjwybrow <mjwybrow@users.sourceforge.net> | |
Tue, 7 Feb 2006 00:37:46 +0000 (00:37 +0000) |
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.
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.
diff --git a/ChangeLog b/ChangeLog
index c8a29d1e880457465d1d0bab8549c76d05e7ce61..95281eb66d795586e3ffc5987a558611c63b2bc2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2006-02-07 Michael Wybrow <mjwybrow@users.sourceforge.net>
+
+ * 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.
+
2006-02-05 Marco Scholten <mscholtn@xs4all.nl>
- * src/verbs.cpp: updated to make double clicking a tool button
+ * src/verbs.cpp: updated to make double clicking a tool button
open the new preferences dialog.
- * src/ui/dialog/inkscape-preferences.cpp: updated to enable opening
+ * src/ui/dialog/inkscape-preferences.cpp: updated to enable opening
the dialog on the correct page.
- * src/ui/dialog/dialog.cpp: added virtual void present() so that
+ * src/ui/dialog/dialog.cpp: added virtual void present() so that
InkscapePreferences::present() will be called from
DialogManager::showDialog()
2006-02-05 MenTaLguY <mental@rydia.net>
- * src/debug/event.h, src/debug/gc-heap.h, src/debug/heap.h,
+ * src/debug/event.h, src/debug/gc-heap.h, src/debug/heap.h,
src/debug/logger.cpp, src/debug/simple-event.h, src/debug/sysv-heap.h,
src/jabber_whiteboard/deserializer.cpp,
src/jabber_whiteboard/message-utilities.cpp,
index 8a6a464b4820350b72012c902fc45e8003b4684f..066557ad55b22f05fe73a95867da97650a6dfdcf 100644 (file)
// 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 8843b6f459a94574f8b7a9a2eae4437fdf274dbd..2812e303b8ef9cb97510357697bf5e93ae720597 100644 (file)
@@ -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>
index 5595f435c08a64455ba24eb105f47708578b0f4c..8fbefac181787815e3b4f5a0c0e7827386448d17 100644 (file)
namespace Util {
-class shared_ptr<char>;
+template <typename T>
+class shared_ptr;
}
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
index aae3e13787fbdaf087c387d515d8a85a15cd3404..eb52780472a5a92fb0f048ef6dacf93211cdc7b4 100644 (file)
@@ -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);
index 173e9a79417558148f2c579702b1046118e7b852..50f44e5f72306fbdbbde3fe5b7b3d9c9dd7a94af 100644 (file)
{
}
+void WhiteboardConnectDialogImpl::present()
+{
+ Dialog::present();
+}
+
void
WhiteboardConnectDialogImpl::setSessionManager()
{