From 30876e0d14b1ac0bb110dc8a1635eb434205f5fb Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 9 Aug 2001 17:21:46 +0000 Subject: [ Fixes ximian bugs #5080, #6021, #6704, #6705 ] 2001-08-09 Chris Toshok [ Fixes ximian bugs #5080, #6021, #6704, #6705 ] * gui/component/addressbook.c (book_open_cb): create our own dialog that prompts for both the email address and the password. the email address is stored in the source and filled in for the user after the first time they enter one and press OK. * gui/component/addressbook-storage.c (create_ldap_folder): has a return value, not a int* parameter. (create_ldap_folder): new function, we can create ldap servers from the File->New->Folder menu item now. (register_storage): hook up the "create_folder" signal. (addressbook_storage_init_source_uri): remove the file case, we only build ldap uris here. (load_source_data): remove the file source stuff, and handle "emailaddr". (save_source_data): call ldap_source_foreach directly. (addressbook_source_free): remove file source stuff. (addressbook_source_copy): same. * gui/component/addressbook-storage.h: get rid of all the file source stuff from AddressbookSource, since this is only being used for ldap servers. * backend/pas/pas-backend-ldap.c (pas_backend_ldap_process_authenticate_user): look up the ldap entry based on the provided email address and use the resulting DN/passwd to authenticate. * gui/component/addressbook-config.c: pretty much gutted to make it work with the new UI. * gui/component/addressbook-config.glade: new version from anna. svn path=/trunk/; revision=11834 --- addressbook/gui/component/addressbook-config.glade | 830 +++++++++++++++++++-- 1 file changed, 764 insertions(+), 66 deletions(-) (limited to 'addressbook/gui/component/addressbook-config.glade') diff --git a/addressbook/gui/component/addressbook-config.glade b/addressbook/gui/component/addressbook-config.glade index c327cc04cc..5962fe4193 100644 --- a/addressbook/gui/component/addressbook-config.glade +++ b/addressbook/gui/component/addressbook-config.glade @@ -11,44 +11,725 @@ - GnomePropertyBox - dialog - 460 - 360 + GnomeDialog + add_addressbook + False + Add Addressbook + GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False + 417 + 332 False - False + True False + False + False - GtkNotebook - GnomePropertyBox:notebook - notebook1 - True - True - True - GTK_POS_TOP - False - 2 - 2 - False + GtkVBox + GnomeDialog:vbox + dialog-vbox1 + False + 8 - 0 + 4 True True + + GtkHButtonBox + GnomeDialog:action_area + dialog-action_area1 + GTK_BUTTONBOX_END + 8 + 85 + 27 + 7 + 0 + + 0 + False + True + GTK_PACK_END + + + + GtkButton + button1 + True + True + GNOME_STOCK_BUTTON_OK + + + + GtkButton + button3 + True + True + GNOME_STOCK_BUTTON_CANCEL + + + + + GtkNotebook + notebook2 + True + True + True + GTK_POS_TOP + False + 2 + 2 + False + + 0 + True + True + + + + GtkVBox + vbox1 + 3 + False + 6 + + + GtkLabel + label29 + + GTK_JUSTIFY_CENTER + True + 0.5 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkTable + table1 + 3 + 3 + 2 + False + 3 + 3 + + 0 + False + True + + + + GtkLabel + label15 + + GTK_JUSTIFY_CENTER + False + 0 + 0.5 + 0 + 0 + account-name-entry + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + account-name-entry + True + True + True + 0 + + + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + GtkLabel + label16 + + GTK_JUSTIFY_CENTER + False + 0 + 0.5 + 0 + 0 + server-name-entry + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + server-name-entry + True + True + True + 0 + + + 1 + 2 + 1 + 2 + 0 + 0 + True + False + False + False + True + False + + + + + GtkCheckButton + auth-checkbutton + True + + False + True + + 0 + 2 + 2 + 3 + 0 + 0 + False + False + False + False + True + False + + + + + + GtkNotebook + basic-notebook + False + False + GTK_POS_TOP + False + 2 + 2 + False + + 0 + True + True + + + + GtkLabel + label28 + + GTK_JUSTIFY_CENTER + True + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + Notebook:tab + label18 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + label31 + + GTK_JUSTIFY_CENTER + True + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + Notebook:tab + label19 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + + GtkLabel + Notebook:tab + label12 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox2 + 3 + False + 3 + + + GtkLabel + label30 + + GTK_JUSTIFY_CENTER + True + 0.5 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkTable + table2 + 3 + 3 + 2 + False + 3 + 3 + + 0 + False + False + + + + GtkLabel + label22 + + GTK_JUSTIFY_CENTER + False + 0 + 0.5 + 0 + 0 + port-entry + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + port-entry + True + True + True + 0 + 389 + + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + GtkLabel + label23 + + GTK_JUSTIFY_CENTER + False + 0 + 0.5 + 0 + 0 + rootdn-entry + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + rootdn-entry + True + True + True + 0 + + + 1 + 2 + 1 + 2 + 0 + 0 + True + False + False + False + True + False + + + + + GtkLabel + label24 + + GTK_JUSTIFY_CENTER + False + 0 + 0.5 + 0 + 0 + + 0 + 1 + 2 + 3 + 0 + 0 + False + False + False + False + True + False + + + + + GtkAlignment + alignment1 + 7.45058e-09 + 7.45058e-09 + 0 + 1 + + 1 + 2 + 2 + 3 + 0 + 0 + True + False + False + False + True + False + + + + GtkOptionMenu + scope-optionmenu + True + One +Base +Sub + + 0 + + + + + + GtkNotebook + advanced-notebook + False + False + GTK_POS_TOP + False + 2 + 2 + False + + 0 + True + True + + + + GtkLabel + label35 + + GTK_JUSTIFY_CENTER + True + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + Notebook:tab + label25 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + label36 + + GTK_JUSTIFY_CENTER + True + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + Notebook:tab + label26 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + label37 + + GTK_JUSTIFY_CENTER + True + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + Notebook:tab + label27 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + + GtkLabel + Notebook:tab + label13 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + + + GnomeDialog + addressbook_sources + False + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + 355 + 285 + True + True + False + False + False + + + GtkVBox + GnomeDialog:vbox + dialog-vbox2 + False + 8 + + 4 + True + True + + + + GtkHButtonBox + GnomeDialog:action_area + dialog-action_area2 + GTK_BUTTONBOX_END + 8 + 85 + 27 + 7 + 0 + + 0 + False + True + GTK_PACK_END + + + + GtkButton + button7 + True + True + GNOME_STOCK_BUTTON_OK + + + + GtkButton + button8 + True + True + GNOME_STOCK_BUTTON_APPLY + + + + GtkButton + button9 + True + True + GNOME_STOCK_BUTTON_CLOSE + + + GtkHBox - hbox2 + hbox3 False 0 + + 0 + True + True + GtkScrolledWindow - scrolledwindow1 - GTK_POLICY_NEVER + scrolledwindow2 + GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_UPDATE_CONTINUOUS GTK_UPDATE_CONTINUOUS @@ -63,7 +744,7 @@ clistSources True 2 - 80,80 + 100,80 GTK_SELECTION_SINGLE True GTK_SHADOW_IN @@ -71,8 +752,8 @@ GtkLabel CList:title - label10 - + label43 + GTK_JUSTIFY_CENTER False 0.5 @@ -84,8 +765,8 @@ GtkLabel CList:title - label11 - + label44 + GTK_JUSTIFY_CENTER False 0.5 @@ -97,14 +778,10 @@ - GtkVButtonBox - vbuttonbox2 - GTK_BUTTONBOX_START - 10 - 85 - 27 - 7 - 0 + GtkVBox + vbox4 + False + 0 0 False @@ -112,46 +789,67 @@ - GtkButton - addSource - True - True - - GTK_RELIEF_NORMAL + GtkLabel + label45 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 0 + False + False + - GtkButton - editSource - True - True - - GTK_RELIEF_NORMAL - + GtkVButtonBox + vbuttonbox3 + GTK_BUTTONBOX_START + 0 + 85 + 27 + 7 + 0 + + 0 + True + True + - - GtkButton - deleteSource - True - True - - GTK_RELIEF_NORMAL + + GtkButton + addSource + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + editSource + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + deleteSource + True + True + + GTK_RELIEF_NORMAL + - - - GtkLabel - Notebook:tab - label8 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - -- cgit v1.2.3