From a676b4724c692a602a777b24f4b0761d4e8e8f86 Mon Sep 17 00:00:00 2001 From: pierre-luc <pierre-luc.bacon@savoirfairelinux.com> Date: Mon, 10 Aug 2009 20:31:26 -0400 Subject: [PATCH] [#811] Gtk ui was not presenting the right information about zrtp for registered types of accounts. ZRTP key exchange number was not in accordance with the index from the daemon. --- sflphone-client-gnome/src/config/accountwindow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sflphone-client-gnome/src/config/accountwindow.c b/sflphone-client-gnome/src/config/accountwindow.c index 2811a046b2..d12f0f60aa 100644 --- a/sflphone-client-gnome/src/config/accountwindow.c +++ b/sflphone-client-gnome/src/config/accountwindow.c @@ -570,13 +570,13 @@ GtkWidget * create_advanced_tab(account_t **a) advancedZrtpButton = gtk_button_new_with_label(_("Advanced options")); g_signal_connect(G_OBJECT(advancedZrtpButton), "clicked", G_CALLBACK(show_advanced_zrtp_options_cb), currentAccount->properties); - - if (g_strcasecmp(curSRTPEnabled, "FALSE") == 0) + + if (g_strcmp0(curSRTPEnabled, "FALSE") == 0) { gtk_combo_box_set_active(GTK_COMBO_BOX(keyExchangeCombo), 1); gtk_widget_set_sensitive(GTK_WIDGET(advancedZrtpButton), FALSE); } else { - if (strcmp(curKeyExchange, "0") == 0) { + if (strcmp(curKeyExchange, "1") == 0) { gtk_combo_box_set_active(GTK_COMBO_BOX(keyExchangeCombo),0); } else { gtk_combo_box_set_active(GTK_COMBO_BOX(keyExchangeCombo), 1); -- GitLab