[ekiga] Made it possible to create new loudmouth accounts
- From: Julien Puydt <jpuydt src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga] Made it possible to create new loudmouth accounts
- Date: Thu, 11 Jun 2009 11:43:43 -0400 (EDT)
commit b18e448b0fad4caeba102911aad3cfd40b725dbd
Author: Julien Puydt <jpuydt gnome org>
Date: Thu Jun 11 16:16:46 2009 +0200
Made it possible to create new loudmouth accounts
.../components/loudmouth/loudmouth-account.cpp | 11 +++++------
lib/engine/components/loudmouth/loudmouth-bank.cpp | 7 +++++--
2 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/lib/engine/components/loudmouth/loudmouth-account.cpp b/lib/engine/components/loudmouth/loudmouth-account.cpp
index c7ded6c..dbf9661 100644
--- a/lib/engine/components/loudmouth/loudmouth-account.cpp
+++ b/lib/engine/components/loudmouth/loudmouth-account.cpp
@@ -79,16 +79,15 @@ LM::Account::Account (gmref_ptr<Ekiga::PersonalDetails> details_,
if (node == NULL) {
- // FIXME: change to saner defaults
node = xmlNewNode (NULL, BAD_CAST "entry");
- xmlSetProp (node, BAD_CAST "name", BAD_CAST "Premier");
- xmlSetProp (node, BAD_CAST "user", BAD_CAST "premier");
- xmlSetProp (node, BAD_CAST "password", BAD_CAST "premier");
+ /* FIXME: make translatable */
+ xmlSetProp (node, BAD_CAST "name", BAD_CAST "Jabber/XMPP account to configure");
+ xmlSetProp (node, BAD_CAST "user", BAD_CAST "username");
+ xmlSetProp (node, BAD_CAST "password", BAD_CAST "");
xmlSetProp (node, BAD_CAST "resource", BAD_CAST "ekiga");
xmlSetProp (node, BAD_CAST "server", BAD_CAST "localhost");
xmlSetProp (node, BAD_CAST "port", BAD_CAST "5222");
- xmlSetProp (node, BAD_CAST "startup", BAD_CAST "true");
- status = _("needs configuration");
+ xmlSetProp (node, BAD_CAST "startup", BAD_CAST "false");
}
xml_str = xmlGetProp (node, BAD_CAST "name");
diff --git a/lib/engine/components/loudmouth/loudmouth-bank.cpp b/lib/engine/components/loudmouth/loudmouth-bank.cpp
index 64c093a..520cc26 100644
--- a/lib/engine/components/loudmouth/loudmouth-bank.cpp
+++ b/lib/engine/components/loudmouth/loudmouth-bank.cpp
@@ -33,6 +33,8 @@
*
*/
+#include <glib/gi18n.h>
+
#include "gmconf.h"
#include "config.h"
@@ -73,7 +75,6 @@ LM::Bank::Bank (gmref_ptr<Ekiga::PersonalDetails> details_,
doc = xmlNewDoc (BAD_CAST "1.0");
xmlNodePtr root = xmlNewDocNode (doc, NULL, BAD_CAST "list", NULL);
xmlDocSetRootElement (doc, root);
- add (NULL);
}
}
@@ -114,5 +115,7 @@ LM::Bank::~Bank ()
bool
LM::Bank::populate_menu (Ekiga::MenuBuilder& builder)
{
- return false; // FIXME
+ builder.add_action ("add", _("_Add a jabber/XMPP account"),
+ sigc::bind (sigc::mem_fun (this, &LM::Bank::add), (xmlNodePtr)NULL));
+ return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]