ekiga r6465 - in trunk: . src/endpoints
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6465 - in trunk: . src/endpoints
- Date: Wed, 16 Jul 2008 18:21:58 +0000 (UTC)
Author: dsandras
Date: Wed Jul 16 18:21:58 2008
New Revision: 6465
URL: http://svn.gnome.org/viewvc/ekiga?rev=6465&view=rev
Log:
Added default value for the timeout and make sure the value is not
inferior to 10 seconds.
Modified:
trunk/ChangeLog
trunk/src/endpoints/opal-account.cpp
trunk/src/endpoints/opal-bank.cpp
Modified: trunk/src/endpoints/opal-account.cpp
==============================================================================
--- trunk/src/endpoints/opal-account.cpp (original)
+++ trunk/src/endpoints/opal-account.cpp Wed Jul 16 18:21:58 2008
@@ -328,6 +328,8 @@
error = _("You did not supply a host to register to.");
else if (new_user.empty ())
error = _("You did not supply a user name for that account.");
+ else if (new_timeout < 10)
+ error = _("The timeout should have a bigger value.");
if (!error.empty ()) {
request.error (error);
Modified: trunk/src/endpoints/opal-bank.cpp
==============================================================================
--- trunk/src/endpoints/opal-bank.cpp (original)
+++ trunk/src/endpoints/opal-bank.cpp Wed Jul 16 18:21:58 2008
@@ -72,7 +72,7 @@
request.text ("user", _("User:"), std::string ());
request.text ("authentication_user", _("Authentication User:"), std::string ());
request.private_text ("password", _("Password:"), std::string ());
- request.text ("timeout", _("Timeout:"), std::string ());
+ request.text ("timeout", _("Timeout:"), "3600");
request.boolean ("enabled", _("Enable Account"), true);
request.submitted.connect (sigc::mem_fun (this, &Opal::Bank::on_new_account_form_submitted));
@@ -111,6 +111,8 @@
error = _("You did not supply a host to register to.");
else if (new_user.empty ())
error = _("You did not supply a user name for that account.");
+ else if (new_timeout < 10)
+ error = _("The timeout should have a bigger value.");
if (!error.empty ()) {
request.error (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]