From 1636711c5ac21100eacce672e04d9a96e09a64e1 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 25 Feb 2002 01:51:53 +0000 Subject: make the right auth page start up open. 2002-02-24 Chris Toshok * gui/component/addressbook-config.c (addressbook_source_dialog_set_source): make the right auth page start up open. * gui/component/addressbook-storage.c (addressbook_source_free): free the binddn. (addressbook_source_copy): copy the binddn; svn path=/trunk/; revision=15819 --- addressbook/ChangeLog | 10 ++++++++++ addressbook/gui/component/addressbook-config.c | 4 +++- addressbook/gui/component/addressbook-storage.c | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index e144519c4e..d3170c12cd 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,13 @@ +2002-02-24 Chris Toshok + + * gui/component/addressbook-config.c + (addressbook_source_dialog_set_source): make the right auth page + start up open. + + * gui/component/addressbook-storage.c (addressbook_source_free): + free the binddn. + (addressbook_source_copy): copy the binddn; + 2002-02-22 Chris Toshok [ Fixes bugs 20740, 16680, and god knows what else :) ] diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c index 5061e6368b..d575d33db6 100644 --- a/addressbook/gui/component/addressbook-config.c +++ b/addressbook/gui/component/addressbook-config.c @@ -157,8 +157,10 @@ addressbook_source_dialog_set_source (AddressbookSourceDialog *dialog, Addressbo g_free (string); dialog->auth = source ? source->auth : ADDRESSBOOK_LDAP_AUTH_NONE; - if (dialog->auth != ADDRESSBOOK_LDAP_AUTH_NONE) + if (dialog->auth != ADDRESSBOOK_LDAP_AUTH_NONE) { gtk_option_menu_set_history (GTK_OPTION_MENU(dialog->auth_optionmenu), dialog->auth - 1); + gtk_notebook_set_page (GTK_NOTEBOOK(dialog->auth_notebook), dialog->auth - 1); + } dialog->ldap_scope = source ? source->scope : ADDRESSBOOK_LDAP_SCOPE_ONELEVEL; gtk_option_menu_set_history (GTK_OPTION_MENU(dialog->scope_optionmenu), dialog->ldap_scope); diff --git a/addressbook/gui/component/addressbook-storage.c b/addressbook/gui/component/addressbook-storage.c index 34edcc046a..295a82210b 100644 --- a/addressbook/gui/component/addressbook-storage.c +++ b/addressbook/gui/component/addressbook-storage.c @@ -605,6 +605,7 @@ addressbook_source_free (AddressbookSource *source) g_free (source->port); g_free (source->rootdn); g_free (source->email_addr); + g_free (source->binddn); g_free (source); } @@ -653,6 +654,7 @@ addressbook_source_copy (const AddressbookSource *source) copy->scope = source->scope; copy->auth = source->auth; copy->email_addr = g_strdup (source->email_addr); + copy->binddn = g_strdup (source->binddn); copy->remember_passwd = source->remember_passwd; copy->limit = source->limit; -- cgit v1.2.3