diff --git a/src/ui/dialog/whiteboard-sharewithchat.cpp b/src/ui/dialog/whiteboard-sharewithchat.cpp
index 4c86b0dfac416dfac6e4af439e2eae254396ca20..8d33328bab90c510852869b809b063f02ae03144 100644 (file)
#include "inkscape.h"
#include "desktop.h"
+#include "prefs-utils.h"
+
#include "jabber_whiteboard/typedefs.h"
#include "jabber_whiteboard/session-manager.h"
#include "jabber_whiteboard/buddy-list-manager.h"
this->_labels[2].set_mnemonic_widget(this->_roompass);
this->_labels[3].set_mnemonic_widget(this->_handle);
+
+ this->_roomname.set_text(prefs_get_string_attribute("whiteboard.room", "name"));
+ this->_confserver.set_text(prefs_get_string_attribute("whiteboard.room", "server"));
+ this->_handle.set_text(prefs_get_string_attribute("whiteboard.server", "username"));
+
// Pack table
this->_layout.attach(this->_labels[0], 0, 1, 0, 1);
this->_layout.attach(this->_labels[1], 0, 1, 1, 2);
this->_buttonsbox.pack_start(this->_share);
// Set default values
- Glib::ustring jid = lm_connection_get_jid(this->_sm->session_data->connection);
+ Glib::ustring jid = this->_sm->session_data->jid;
Glib::ustring nick = jid.substr(0, jid.find_first_of('@'));
this->_handle.set_text(nick);
this->_roomname.set_text("inkboard");