ekiga r6563 - in trunk: . src/gui
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6563 - in trunk: . src/gui
- Date: Sun, 10 Aug 2008 19:38:06 +0000 (UTC)
Author: dsandras
Date: Sun Aug 10 19:38:06 2008
New Revision: 6563
URL: http://svn.gnome.org/viewvc/ekiga?rev=6563&view=rev
Log:
Fixed various problems described in bug #546901 thanks Eugen Dedu.
Modified:
trunk/ChangeLog
trunk/src/gui/assistant.cpp
Modified: trunk/src/gui/assistant.cpp
==============================================================================
--- trunk/src/gui/assistant.cpp (original)
+++ trunk/src/gui/assistant.cpp Sun Aug 10 19:38:06 2008
@@ -593,13 +593,15 @@
bool new_account = (account == NULL);
- if (new_account)
- opal_bank->new_account (Opal::Account::Ekiga,
- gtk_entry_get_text (GTK_ENTRY (assistant->priv->username)),
- gtk_entry_get_text (GTK_ENTRY (assistant->priv->password)));
- else
- account->set_authentication_settings (gtk_entry_get_text (GTK_ENTRY (assistant->priv->username)),
- gtk_entry_get_text (GTK_ENTRY (assistant->priv->password)));
+ if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (assistant->priv->skip_ekiga_net))) {
+ if (new_account)
+ opal_bank->new_account (Opal::Account::Ekiga,
+ gtk_entry_get_text (GTK_ENTRY (assistant->priv->username)),
+ gtk_entry_get_text (GTK_ENTRY (assistant->priv->password)));
+ else
+ account->set_authentication_settings (gtk_entry_get_text (GTK_ENTRY (assistant->priv->username)),
+ gtk_entry_get_text (GTK_ENTRY (assistant->priv->password)));
+ }
}
@@ -739,13 +741,15 @@
bool new_account = (account == NULL);
- if (new_account)
- opal_bank->new_account (Opal::Account::DiamondCard,
- gtk_entry_get_text (GTK_ENTRY (assistant->priv->dusername)),
- gtk_entry_get_text (GTK_ENTRY (assistant->priv->dpassword)));
- else
- account->set_authentication_settings (gtk_entry_get_text (GTK_ENTRY (assistant->priv->dusername)),
- gtk_entry_get_text (GTK_ENTRY (assistant->priv->dpassword)));
+ if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (assistant->priv->skip_ekiga_out))) {
+ if (new_account)
+ opal_bank->new_account (Opal::Account::DiamondCard,
+ gtk_entry_get_text (GTK_ENTRY (assistant->priv->dusername)),
+ gtk_entry_get_text (GTK_ENTRY (assistant->priv->dpassword)));
+ else
+ account->set_authentication_settings (gtk_entry_get_text (GTK_ENTRY (assistant->priv->dusername)),
+ gtk_entry_get_text (GTK_ENTRY (assistant->priv->dpassword)));
+ }
}
@@ -1309,28 +1313,28 @@
/* The ekiga.net account */
gtk_list_store_append (model, &iter);
- if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (assistant->priv->skip_ekiga_net))) {
+ if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (assistant->priv->skip_ekiga_net)))
value = g_strdup_printf ("sip:%s ekiga net",
gtk_entry_get_text (GTK_ENTRY (assistant->priv->username)));
- gtk_list_store_set (model, &iter,
- SUMMARY_KEY_COLUMN, _("SIP URI"),
- SUMMARY_VALUE_COLUMN, value,
- -1);
- g_free (value);
- }
- else {
- gtk_list_store_set (model, &iter,
- SUMMARY_KEY_COLUMN, _("SIP URI"),
- SUMMARY_VALUE_COLUMN, "None",
- -1);
- }
+ else
+ value = g_strdup ("None");
+ gtk_list_store_set (model, &iter,
+ SUMMARY_KEY_COLUMN, _("SIP URI"),
+ SUMMARY_VALUE_COLUMN, value,
+ -1);
+ g_free (value);
/* Ekiga Call Out */
gtk_list_store_append (model, &iter);
+ if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (assistant->priv->skip_ekiga_out)))
+ value = g_strdup (gtk_entry_get_text (GTK_ENTRY (assistant->priv->dusername)));
+ else
+ value = g_strdup ("None");
gtk_list_store_set (model, &iter,
SUMMARY_KEY_COLUMN, _("Ekiga Call Out"),
- SUMMARY_VALUE_COLUMN, gtk_entry_get_text (GTK_ENTRY (assistant->priv->dusername)),
+ SUMMARY_VALUE_COLUMN, value,
-1);
+ g_free (value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]