aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor
Commit message (Collapse)AuthorAgeFilesLines
* ** Fix for bug #426829.simon.zheng2007-04-091-2/+2
| | | | | | | | | | | | | | 2007-04-09 simon.zheng <simon.zheng@sun.com> ** Fix for bug #426829. * gui/contact-editor/eab-editor.c: (eab_editor_confirm_delete): * gui/widgets/eab-contact-display.c: (render_contact): To avoid printing a NULL char point, add statements to check the return result of et_email_location() and e_contact_get(). svn path=/trunk/; revision=33398
* Don't mix declarations and code (#405495).Matthew Barnes2007-03-272-15/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-03-27 Matthew Barnes <mbarnes@redhat.com> * a11y/e-table/gal-a11y-e-cell-text.c: * a11y/e-table/gal-a11y-e-cell-vbox.c: * addressbook/gui/component/addressbook-component.c: * addressbook/gui/component/addressbook-view.c: * addressbook/gui/contact-editor/e-contact-editor.c: * addressbook/gui/contact-editor/e-contact-quick-add.c: * addressbook/gui/widgets/e-addressbook-view.c: * addressbook/gui/widgets/eab-contact-display.c: * addressbook/gui/widgets/gal-view-minicard.c: * calendar/gui/alarm-notify/alarm-queue.c: * calendar/gui/dialogs/comp-editor.c: * calendar/gui/dialogs/event-page.c: * calendar/gui/dialogs/memo-page.c: * calendar/gui/dialogs/task-page.c: * calendar/gui/e-cal-popup.c: * calendar/gui/e-meeting-list-view.c: * calendar/gui/e-tasks.c: * calendar/gui/gnome-cal.c: * composer/e-msg-composer.c: * mail/em-folder-browser.c: * mail/em-format.c: * mail/em-popup.c: * plugins/exchange-operations/exchange-account-setup.c: * plugins/exchange-operations/exchange-calendar.c: * plugins/exchange-operations/exchange-config-listener.c: * plugins/exchange-operations/exchange-contacts.c: * plugins/import-ics-attachments/icsimporter.c: * widgets/misc/e-filter-bar.c: * widgets/misc/e-multi-config-dialog.c: * widgets/table/e-cell-checkbox.c: * widgets/table/e-table-header-item.c: Don't mix declarations and code (#405495). svn path=/trunk/; revision=33324
* ** Fixes bug #419524Matthew Barnes2007-03-216-6/+6
| | | | | | | | | | | | | | | | | | | | | | | 2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
* Fix critical warnings from typos in the glade file. Closes bug #397893.Kjartan Maraas2007-02-121-3/+3
| | | | | | | | | | 2007-02-12 Kjartan Maraas <kmaraas@gnome.org> * gui/contact-editor/contact-editor.glade: Fix critical warnings from typos in the glade file. Closes bug #397893. Patch from Wang Xin. svn path=/trunk/; revision=33207
* ** Fix for bug #332908Srinivasa Ragavan2007-02-091-19/+23
| | | | svn path=/trunk/; revision=33188
* Fixes bug #357970Matthew Barnes2006-12-041-1/+1
| | | | | | | | | | | | | 2006-12-04 Matthew Barnes <mbarnes@redhat.com> Fixes bug #357970 * gui/contact-editor/e-contact-editor.c: * gui/widgets/e-minicard.c: * gui/widgets/eab-contact-display.c: Don't call deprecated GLib / GDK functions. svn path=/trunk/; revision=33044
* ** Fixes bug#332908Ushveen Kaur2006-10-161-7/+9
| | | | | | | | | | | | 2006-10-16 Ushveen Kaur <kushveen@novell.com> ** Fixes bug#332908 * addressbook.error.xml : * gui/contact-editor/e-contact-editor.c : Prompt-resize dialog options changed. Three options given now, "Resize", "Use as it is" and "Do not save". svn path=/trunk/; revision=32889
* Remove duplicate include. Fix some compiler warnings. Cast away a compilerKjartan Maraas2006-10-012-3/+3
| | | | | | | | | | | | | | | | | | | | | 2006-10-01 Kjartan Maraas <kmaraas@gnome.org> * gui/component/addressbook-component.c: Remove duplicate include. * gui/contact-editor/e-contact-editor.c: (extract_simple_field): Fix some compiler warnings. * gui/contact-editor/e-contact-quick-add.c: (build_quick_add_dialog): Cast away a compiler warning. * gui/widgets/e-addressbook-view.c: (generate_viewoption_menu): #if 0 out an unused array, fix 0 vs NULL initialization in some other arrays and remove an unused GSList. * gui/widgets/e-minicard.c: (add_email_field): Make a var const. * gui/widgets/eab-gui-util.c: (eab_contact_save), (eab_contact_list_save): Add some casts to fix compiler warnings and #if 0 out an unused function. * util/eab-book-util.c: (escape), (eab_contact_list_from_string): Some GString fixes. All of this from bug #332101. svn path=/trunk/; revision=32841
* Fixes bug #261239Srinivasa Ragavan2006-08-171-924/+1631
| | | | svn path=/trunk/; revision=32561
* Added support for gadu gadu im in contact entry.Devashish Sharma2006-07-242-0/+4
| | | | svn path=/trunk/; revision=32407
* ** Fixes bug #347381Boby Wang2006-07-221-0/+1
| | | | | | | | | | | | 2006-07-20 Boby Wang <boby.wang@sun.com> ** Fixes bug #347381 * gui/contact-editor/e-contact-editor.c: (image_clicked): Set the image chooser dialog to modal dialog, then we can focus back to the chooser dialog by <ALT + TAB> svn path=/trunk/; revision=32376
* [addressbook]Ross Burton2006-07-191-8/+9
| | | | | | | | | | | | | | | | | | | 2006-07-18 Ross Burton <ross@openedhand.com> * addressbook/gui/contact-editor/e-contact-editor.c: * addressbook/gui/contact-list-editor/e-contact-list-editor.c: * addressbook/gui/widgets/eab-contact-display.c: Fix for EContactPhoto changes. Partially fixed by Hiroyuki Ikezoe <poincare@ikezoe.net>, finished by myself. (#347870). [plugins/bbdb] 2006-07-18 Ross Burton <ross@openedhand.com> * gaimbuddies.c: Fix for EContactPhoto change. Partially fixed by Hiroyuki Ikezoe <poincare@ikezoe.net>, rest by me. (#347870) svn path=/trunk/; revision=32343
* remove "*" from translation. Fixes bug #331147.Andre Klapper2006-07-194-56/+56
| | | | | | | | | | | | | | | | | | | | | | | | | 2006-07-18 Andre Klapper <a9016009@gmx.de> * addressbook/gui/contact-editor/contact-editor.glade: * addressbook/gui/contact-editor/fullname.glade: * addressbook/gui/contact-editor/fulladdr.glade: * addressbook/gui/contact-editor/im.glade: * addressbook/gui/contact-list-editor/contact-list-editor.glade: * calendar/gui/dialogs/calendar-setup.glade: * calendar/gui/dialogs/new-calendar.glade: * calendar/gui/dialogs/new-task-list.glade: * calendar/gui/dialogs/url-editor-dialog.glade: * mail/message-tags.glade: * plugins/exchange-operations/exchange-change-password.glade: * plugins/groupwise-features/properties.glade: * widgets/e-timezone-dialog/e-timezone-dialog.glade: * widgets/menus/gal-view-instance-save-as-dialog.glade: * widgets/menus/gal-view-new-dialog.glade: * widgets/misc/e-attachment.glade: * widgets/misc/gal-categories.glade: remove "*" from translation. Fixes bug #331147. svn path=/trunk/; revision=32340
* Fix for bug 332909Srinivasa Ragavan2006-07-142-48/+59
| | | | svn path=/trunk/; revision=32308
* Fix for #332963 Set the mnemonic character for "No image"Aishwarya K2006-07-081-1/+1
| | | | | | | | | 2006-07-08 Aishwarya K <aishkalyan@gmail.com> Fix for #332963 * e-contact-editor.c: Set the mnemonic character for "No image" svn path=/trunk/; revision=32262
* created patch to make _F,_m,_S mnemonics in contact-quick add dialog work.Oswald Rodrigues2006-06-141-0/+3
| | | | | | | | | | 2006-06-13 Oswald Rodrigues <ozzy_rodrigues@yahoo.com> * gui/contact-editor/e-contact-quick-add.c (build_quick_add_dialog): created patch to make _F,_m,_S mnemonics in contact-quick add dialog work. Fixes bug #332347. svn path=/trunk/; revision=32128
* Fix for Bug #342903 and 206320Devashish Sharma2006-06-121-2/+28
| | | | svn path=/trunk/; revision=32112
* Fix for Bug #341465Devashish Sharma2006-06-121-1/+1
| | | | svn path=/trunk/; revision=32107
* Fix memory leak. Fixes bug #335423.Chris Heath2006-06-091-1/+0
| | | | | | | | | | | | | 2006-06-09 Chris Heath <chris@heathens.co.nz> * addressbook/gui/widgets/eab-popup-control.c (eab_popup_control_set_free_form): * addressbook/gui/contact-editor/e-contact-quick-add.c (quick_add_merge_contact): * e-util/e-plugin.c (ep_construct): * mail/message-list.c (message_list_finalise): * plugins/itip-view.c (itip_view_destroy): Fix memory leak. Fixes bug #335423. svn path=/trunk/; revision=32101
* gui/contact-editor/e-contact-quick-add.c : Right click add toDevashish Sharma2006-05-251-2/+2
| | | | | | contacts doesnt work on email addresses in received mails. svn path=/trunk/; revision=32029
* Fix for gnome bug #341931, farsiweb #562 Mark a few messages forRoozbeh Pournader2006-05-171-4/+4
| | | | | | | | | | 2006-05-17 Roozbeh Pournader <roozbeh@farsiweb.info> Fix for gnome bug #341931, farsiweb #562 * gui/contact-editor/e-contact-editor.c: Mark a few messages for translation. svn path=/trunk/; revision=31993
* Fix for Bug 341521 Change the label name of categories button.simon.zheng2006-05-121-1/+1
| | | | | | | | | | 2006-05-12 simon.zheng <simon.zheng@sun.com> Fix for Bug 341521 * gui/contact-editor/contact-editor.glade: Change the label name of categories button. svn path=/trunk/; revision=31978
* ** Fix for bug # 336470Boby Wang2006-04-271-0/+6
| | | | | | | | | | | 2006-04-27 Boby Wang <boby.wang@sun.com> ** Fix for bug # 336470 * gui/contact-editor/fullname.glade: Add labelled-by relationship to gtkcombo. svn path=/trunk/; revision=31910
* Fix for Bug 331023Devashish Sharma2006-03-101-2/+2
| | | | svn path=/trunk/; revision=31680
* Fix for Bug #333855Devashish Sharma2006-03-101-47/+49
| | | | svn path=/trunk/; revision=31678
* Fix for Bug 332915.Devashish Sharma2006-03-061-1/+1
| | | | svn path=/trunk/; revision=31666
* Static image preview in contact-editor image selector.Devashish Sharma2006-03-051-6/+7
| | | | svn path=/trunk/; revision=31646
* Fix for Bug 332811Devashish Sharma2006-02-281-1/+1
| | | | svn path=/trunk/; revision=31605
* Fix for Bug #332498: Orphaned category editor crashes evo.Devashish Sharma2006-02-281-3/+16
| | | | svn path=/trunk/; revision=31600
* Fix for Bug #332123.Devashish Sharma2006-02-231-0/+2
| | | | svn path=/trunk/; revision=31567
* File selector shows preview of the image when choosing picture of aDevashish Sharma2006-02-011-0/+27
| | | | | | | | | 2006-02-01 Devashish Sharma <sdevashish@novell.com> * gui/contact-editor/e-contact-editor.c: File selector shows preview of the image when choosing picture of a contact. svn path=/trunk/; revision=31395
* removes an unused variable.Devashish Sharma2006-01-301-1/+0
| | | | svn path=/trunk/; revision=31346
* reviewed by: Harish Krishnaswamy <kharish@novell.com>Kjartan Maraas2006-01-272-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-27 Kjartan Maraas <kmaraas@gnome.org> reviewed by: Harish Krishnaswamy <kharish@novell.com> * gui/component/addressbook-component.c: (impl_requestCreateItem): Remove unused bits. * gui/component/addressbook-config.c: (eabc_general_type), (eabc_general_offline): Same here. * gui/component/addressbook-migrate.c: Remove unused static function. * gui/component/addressbook-view.c: (selector_tree_drag_motion): Remove unused static function and init uninitialized var. * gui/contact-editor/e-contact-editor-address.c: (fill_in_countries): Return early if setlocale() fails. * gui/contact-editor/e-contact-editor.c: (file_as_get_style), (extract_email), (extract_phone), (sensitize_phone_types), (extract_im), (sensitize_im_types), (init_simple): Mark some arrays static, remove unused variables, fix gcc warnings * gui/contact-list-editor/e-contact-list-editor.c: (fill_in_info): Remove unused var. * gui/merging/eab-contact-compare.c: (eab_contact_compare_name): Remove unused static function and unused vars. * gui/search/e-addressbook-search-dialog.c: (eab_search_dialog_dispose): Remove unused vars. * gui/widgets/e-addressbook-model.c: (get_view): Add comment. * gui/widgets/e-addressbook-view.c: (eab_view_class_init), (eab_view_delete_selection): Remove unused var * gui/widgets/e-addressbook-view.h: Remove extra semi-colon. * gui/widgets/e-minicard-label.c: (e_minicard_label_unrealize): Remove unused var. * gui/widgets/e-minicard.c: (e_minicard_unrealize), (e_minicard_event), (add_field), (remodel), (e_minicard_reflow): Remove unused vars. s/if/ifdef in some places, use passed in parameter instead of redeclaring the thing locally. * gui/widgets/eab-contact-display.c: (accum_address), (eab_contact_display_render_compact): s/if/ifdef. * gui/widgets/eab-gui-util.c: (eab_select_source): Comment out unused var. * gui/widgets/eab-popup-control.c: (eab_popup_control_cleanup): s/if/ifdef * printing/e-contact-print-style-editor.c: (e_contact_print_style_editor_class_init), (e_contact_print_style_editor_set_arg), (e_contact_print_style_editor_get_arg): Remove unused vars. * util/eab-book-util.c: s/if/ifdef svn path=/trunk/; revision=31327
* Fix for bug #237297.Devashish Sharma2006-01-251-9/+35
| | | | svn path=/trunk/; revision=31310
* ** Fixes #327203Simon Zheng2006-01-252-4/+0
| | | | | | | | | | | | | | | | 2006-01-25 Simon Zheng <simon.zheng@sun.com> ** Fixes #327203 * gui/contact-editor/e-contact-editor.c (app_delete_event_cb): Checking the validity of contact editor should be done after extracting all fields. This's done in save_contact(). * gui/contact-editor/eab-editor.c (eab_editor_prompt_to_save_changes): To avoid repeating free memory, delete eab_editor_close(). In fact, eab_editor_save_contact() has done it before. svn path=/trunk/; revision=31299
* Added source selector to contact quick-add dialog.Devashish Sharma2006-01-231-6/+47
| | | | svn path=/trunk/; revision=31278
* *** empty log message ***Devashish Sharma2006-01-161-3/+29
| | | | svn path=/trunk/; revision=31195
* Not inserting new line at the end and also placing the cursor at theSushma Rai2005-12-101-4/+10
| | | | | | beginning of the widget. Fixes #300300. svn path=/trunk/; revision=30745
* gui/contact-editor/e-contact-editor.cTor Lillqvist2005-11-264-4/+32
| | | | | | | | | | | | | | | | | | | | | 2005-11-26 Tor Lillqvist <tml@novell.com> * gui/contact-editor/e-contact-editor.c * gui/contact-editor/e-contact-editor-address.c * gui/contact-editor/e-contact-editor-fullname.c * gui/contact-editor/e-contact-editor-im.c * gui/contact-list-editor/e-contact-list-editor.c * gui/merging/eab-contact-merging.c * gui/widgets/e-addressbook-view.c * printing/e-contact-print.c * printing/e-contact-print-style-editor.c: Include e-util-private.h to get redefinition of compile-time pathnames as calls to functions on Windows. Construct the pathnames of files and directories under the installation prefix at run-time to enable install-anywhere on Windows. No effect on functionality on Unix. svn path=/trunk/; revision=30678
* Setting the focus to the corresponding entry field after changing dropdownSushma Rai2005-10-261-11/+30
| | | | | | menus for phone, email and im in contact editor. Fixes #229972. svn path=/trunk/; revision=30566
* de-constify uri, and fix its creation logic. (load_source_cb): cast forNot Zed2005-08-241-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * gui/component/addressbook.c (addressbook_authenticate): de-constify uri, and fix its creation logic. (load_source_cb): cast for warning. * gui/widgets/e-addressbook-view.c: more missing a11y include. * gui/widgets/e-minicard-view.c: another missing a11y include. * gui/widgets/e-minicard.c: include missing a11y include. (e_minicard_activate_editor): fix cast. * gui/widgets/eab-popup-control.c (eab_popup_control_display_contact): remove unused. * gui/widgets/eab-gui-util.c (eab_contact_save): fix conditional build. (eab_send_to_contact_and_email_num_list): fix boolean conversion. * gui/widgets/eab-contact-display.c (eab_contact_display_init): cast. * gui/contact-list-editor/e-contact-list-editor.c (fill_in_info): constify file_as. * gui/contact-editor/e-contact-editor.c (init_im_record_location): fix warnings for conditional building. (fill_in_simple_field): do proper boolean conversion. (extract_simple_field): do proper boolean conversion. (response): constify categories, and dont bother initialising it. (image_clicked): remove warnings for conditional build. (e_contact_editor_is_valid): constify text. (e_contact_editor_create_web): cast. svn path=/trunk/; revision=30216
* Commiting Devashish patch for #241219. 2005-08-19 Devashish SharmaSrinivasa Ragavan2005-08-221-10/+19
| | | | | | | | | 2005-08-22 Srinivasa Ragavan <sragavan@novell.com> * Commiting Devashish patch for #241219. 2005-08-19 Devashish Sharma <sdevashish@novell.com> svn path=/trunk/; revision=30195
* defined prototype for sensitize_ok(), fixes the compile time warnings.Sushma Rai2005-08-101-0/+1
| | | | svn path=/trunk/; revision=30078
* Fix for #258257, got missed while I committed the changelog for it.Sushma Rai2005-08-101-0/+10
| | | | svn path=/trunk/; revision=30072
* Fixes the bug #309416Srinivasa Ragavan2005-07-291-1/+1
| | | | | | | | | 2005-07-29 Srinivasa Ragavan <sragavan@novell.com> * gui/contact-editor/eab-editor.c: (eab_editor_prompt_to_save_changes) (eab_editor_request_close_all) Fixes the bug #309416 svn path=/trunk/; revision=29932
* Fixed in a genereic way, the resizing of contact photosSrinivasa Ragavan2005-07-291-32/+42
| | | | | | | | | 2005-07-29 Srinivasa Ragavan <sragavan@novell.com> * gui/contact-editor/e-contact-editor.c: (extract_simple_field) (image_selected) Fixed in a genereic way, the resizing of contact photos svn path=/trunk/; revision=29922
* Added a string for resize popup Added code to check the size of image andSrinivasa Ragavan2005-07-251-1/+32
| | | | | | | | | | 2005-07-25 Srinivasa Ragavan <sragavam@novell.com> * addressbook.error.xml: Added a string for resize popup * gui/contact-editor/e-contact-editor.c: (image_selected) Added code to check the size of image and prompt for resize. svn path=/trunk/; revision=29885
* Patch by "Arunprakash <arunp@novell.com>" to change the string marked forSushma Rai2005-07-251-8/+7
| | | | | | translation. Related to his previous patch for #235830. svn path=/trunk/; revision=29877
* Showing the file_as name in the contact editor dialog title. Patch bySushma Rai2005-07-221-6/+27
| | | | | | "Arunprakash <arunp@novell.com>". Fixes #235830. svn path=/trunk/; revision=29848
* Added widgets in INCLUDES.Kaushal Kumar2005-06-232-5/+5
| | | | | | | | | | | | 2005-06-23 Kaushal Kumar <kakumar@novell.com> * e-util/Makefile.am, widgets/e-timezone-dialog/Makefile.am, addressbook/gui/search/Makefile.am, plugins/groupwise-features/Makefile.am: Added widgets in INCLUDES. Updated the include paths to use misc instead of widgets/misc. svn path=/trunk/; revision=29574
* gui/component/Makefile.am gui/contact-editor/Makefile.amTor Lillqvist2005-06-191-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-18 Tor Lillqvist <tml@novell.com> * gui/component/Makefile.am * gui/contact-editor/Makefile.am * gui/contact-list-editor/Makefile.am * gui/merging/Makefile.am * gui/search/Makefile.am * gui/widgets/Makefile.am: Prune unnecessary and nonexistent directories from the -I options. Prune pathname macros not used in the sources in that directory from the -D options. * gui/component/Makefile.am * gui/contact-editor/Makefile.am * gui/contact-list-editor/Makefile.am * util/Makefile.am: Use NO_UNDEFINED. Link with all necessary libraries. * gui/component/Makefile.am: Use Win32-specific hack to work around MSYS feature in the gconftool invocation. * gui/contact-editor/Makefile.am * gui/contact-list-editor/Makefile.am: Use bootstrap library libevolution-addressbook on Win32. * gui/contact-editor/Makefile.am * gui/contact-list-editor/Makefile.am * util/Makefile.am: Use privsolib_LTLIBRARIES instead of privlib_LTLIBRARIES (see ../ChangeLog). svn path=/trunk/; revision=29546
* Retired GAL from Head. The relevant files have moved inside evolution.Kaushal Kumar2005-06-173-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-17 Kaushal Kumar <kakumar@novell.com> * Retired GAL from Head. The relevant files have moved inside evolution. Thanks to JP Rosevear for performing the cvs surgery. The files have been moved in the following order. evolution/e-util <- gal/gal/util evolution/a11y <- gal/gal/a11y evolution/a11y/e-table <- gal/gal/a11y/e-table evolution/a11y/e-text <- gal/gal/a11y/e-text evolution/widgets/table <- gal/gal/e-table evolution/widgets/text <- gal/gal/e-text evolution/widgets/misc <- gal/gal/widgets evolution/widgets/misc/pixmaps <- gal/gal/widgets/pixmaps evolution/widgets/menus <- gal/gal/menus Following is the summary of changes done to fix the build:- - New files added to cvs repository, - a11y/e-table/Makefile.am - a11y/e-text/Makefile.am - widgets/table/Makefile.am - widgets/text/Makefile.am - widgets/misc/pixmaps/Makefile.am - iconv-detect.h - iconv-detect.c - Updated configure.in. - Updated all the relevant Makefile.am files. - Updated the include paths to replace all gal references. - Updated the marshal list to suit gal files requirements. svn path=/trunk/; revision=29522
* moved e-error to e-utilNot Zed2005-05-161-1/+1
| | | | | | | | | | 2005-05-16 Not Zed <NotZed@Ximian.com> * moved e-error to e-util * Makefile.am: renamed error xml file & u18n stuff. svn path=/trunk/; revision=29361
* Fixed wrong xalign of Zip/Postal Code. This was very ugly in languagesUlrich Neumann2005-05-121-3/+3
| | | | | | | | | | 2005-05-04 Ulrich Neumann <uli@myuli.com> * gui/contact-editor/contact-editor.glade: Fixed wrong xalign of Zip/Postal Code. This was very ugly in languages like german, dutch etc. svn path=/trunk/; revision=29326
* Misses header file with previous commit.Sushma Rai2005-05-091-1/+1
| | | | svn path=/trunk/; revision=29319
* Forming contact deletion confirmation message based on contact(s) orSushma Rai2005-05-091-9/+21
| | | | | | contact list(s) being deleted. Fixes #222599 svn path=/trunk/; revision=29317
* Just close the editor when user presees cancel or closes the editor whenSivaiah Nallagatla2005-02-261-1/+3
| | | | | | | | | | | | | | 2005-02-25 Sivaiah Nallagatla <snallagatla@novell.com> * gui/conact-editor/eab-editor.c (eab_editor_prompt_to_save_changes) : Just close the editor when user presees cancel or closes the editor when there are no changes. Seems to be broken by earlier Change for #70371 Fixes #73005 svn path=/trunk/; revision=28892
* close the editor here in case of save and discard so that callers need notSivaiah Nallagatla2005-02-221-2/+7
| | | | | | | | | | | | | | | | | | | 2005-02-19 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/eab-editor.c (eab_editor_prompt_to_save_changes) : close the editor here in case of save and discard so that callers need not worry about closing * gui/contact-list-editor/e-contact-list-editor.c (closed_cb) (app_delete_event_cb) : don't close the editor here as that is handled by _save_changes call. Also no need to check for return value of that function as it does not matter here. Fixes #70371 svn path=/trunk/; revision=28839
* Install shared libraries to privlibdir.Hans Petter Jansson2005-02-101-1/+1
| | | | | | | | | | | | | | | | 2005-02-09 Hans Petter Jansson <hpj@novell.com> * addressbook/gui/contact-editor/Makefile.am: * addressbook/gui/contact-list-editor/Makefile.am: * addressbook/util/Makefile.am: * filter/Makefile.am: * widgets/e-timezone-dialog/Makefile.am: * widgets/menus/Makefile.am: * widgets/misc/Makefile.am: * smime/lib/Makefile.am: * smime/gui/Makefile.am: Install shared libraries to privlibdir. svn path=/trunk/; revision=28762
* new function to sensitize im types based on supported fieldsSivaiah Nallagatla2005-01-291-5/+39
| | | | | | | | | | | | | | | | 2005-01-29 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (sensitize_im_types) : new function to sensitize im types based on supported fields (sensitize_im_record) : call sensitize_im_types for each record (sensitize_im) : if none of the im types are supported disable the im entries Fixes #68799 svn path=/trunk/; revision=28603
* use the new ECategoriesDialog widget.Rodrigo Moya2005-01-251-16/+4
| | | | | | | | | 2005-01-25 Rodrigo Moya <rodrigo@novell.com> * gui/contact-editor/e-contact-editor.c (categories_clicked): use the new ECategoriesDialog widget. svn path=/trunk/; revision=28538
* Change the xpad and ypad to 0 here, we don't need the extra padding AddRodney Dawes2005-01-221-14/+28
| | | | | | | | | | | | | | | | | | | | | | | | 2005-01-21 Rodney Dawes <dobey@novell.com> * gui/contact-editor/e-contact-quick-add.c (build_quick_add_dialog): Change the xpad and ypad to 0 here, we don't need the extra padding Add the GTK_DIALOG_NO_SEPARATOR flag for creating the dialog Set proper border widths on some dialog containers for the HIG Set the row/column spacings for the table widget Create the labels outside of the table packing calls and set the proper alignment for them to be HIG compliant Set the border width of the table widget to 12 for HIG compliance * gui/widgets/eab-popup-control.c (edit_contact_info_cb): Removed (eab_popup_control_display_contact): Just go ahead and open the editor, no need to have an intermittent window with a button for it (add_contacts_cb): Remove this as we don't need it any more (eab_popup_control_no_matches): Just go straight to the quick-add dialog, and don't pop up an intermittent window with a button Fixes #41210 #60852 svn path=/trunk/; revision=28499
* Call gtk_widget_ensure_style to ensure that we set the border widths ofRodney Dawes2005-01-221-0/+1
| | | | | | | | | | 2005-01-21 Rodney Dawes <dobey@novell.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Call gtk_widget_ensure_style to ensure that we set the border widths of some dialog containers properly for HIG compliance svn path=/trunk/; revision=28498
* Don't set properties on the contact immediately. (clicked_cb): Set theHans Petter Jansson2005-01-211-7/+3
| | | | | | | | | | | | 2005-01-21 Hans Petter Jansson <hpj@novell.com> * gui/contact-editor/e-contact-quick-add.c (quick_add_set_name) (quick_add_set_email): Don't set properties on the contact immediately. (clicked_cb): Set the properties on the contact immediately before passing it on. This way, the FULL_NAME will only be set once, and so the FILE_AS field will be updated here. svn path=/trunk/; revision=28479
* add accessable key to the contact editor UI. add accessable key to theHao Sheng2005-01-201-69/+103
| | | | | | | | | | | 2005-01-19 Hao Sheng <hao.sheng@sun.com> * gui/contact-editor/contact-editor.glade: add accessable key to the contact editor UI. * gui/contact-list-editor/contact-list-editor.glade: add accessable key to the contact list editor UI. svn path=/trunk/; revision=28455
* add a11y names for widgets named "Image","Anniversary" and "Birthday". addHao Sheng2005-01-182-0/+13
| | | | | | | | | | | 2005-01-18 Hao Sheng <hao.sheng@sun.com> * gui/contact-editor/contact-editor.glade: add a11y names for widgets named "Image","Anniversary" and "Birthday". * gui/contact-editor/e-contact-editor.c: (e_contact_editor_create_date): add string1 as entry's a11y name. svn path=/trunk/; revision=28429
* show "other" when email does not carry "TYPE" (fill_in_email) : passSivaiah Nallagatla2005-01-181-2/+2
| | | | | | | | | | | | | | 2005-01-17 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (fill_in_email_record) : show "other" when email does not carry "TYPE" (fill_in_email) : pass deafult email types instead of -1 when clearing fields Fixes #70922 svn path=/trunk/; revision=28427
* add the a11y name for arrow-button named "Telephone".Hao Sheng2005-01-171-0/+3
| | | | | | | | | 2005-01-17 Hao Sheng <hao.sheng@sun.com> * gui/contact-editor/contact-editor.glade: add the a11y name for arrow-button named "Telephone". svn path=/trunk/; revision=28414
* some strcasecmp() calls changed with g_ascii_strcasecmp() for TurkishS.Çaglar Onur2004-12-091-2/+2
| | | | | | | | | | | | 2004-12-08 S.Çaglar Onur <caglar@uludag.org.tr> * evolution-2.0.2/addressbook/gui/contact-editor/e-contact-editor.c (get_ui_slot_param) (get_attributes_named): some strcasecmp() calls changed with g_ascii_strcasecmp() for Turkish character conversiton problems [ http://www.i18nguy.com/unicode/turkish-i18n.html ] svn path=/trunk/; revision=28092
* save the uid and set it again in the contact. Otherwise, there isSivaiah Nallagatla2004-12-021-1/+8
| | | | | | | | | | | 2004-12-01 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (save_contact) : save the uid and set it again in the contact. Otherwise, there is possibility we trying to save the contact wiht out UID, as we destory the contact and create new one when data is wrong svn path=/trunk/; revision=28033
* Define new list for storing required fieldsSivaiah Nallagatla2004-11-292-13/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-28 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.h : Define new list for storing required fields * gui/contact-editor/e-contact-editor.c (e_contact_editor_class_init) : install new REQUIRED_FIELDS property (e_contact_editor_set_property) (e_contact_editor_get_property) : added handling for new RQUIRED_FIELDS_PROPERTY (e_contact_editor_dispose) : unref the new required_fields member (required_fields_cb) : call back to set required fields into contact editor (is_non_string_field) : new method to detect whether a particular field in contact is a string or not (e_contact_editor_is_valid) : check for presence of all required fields (save_contact) : extract all the data before calling e_contact_editor_is_valid so that it can check for required fields. Clean up the contact if there is an error svn path=/trunk/; revision=28007
* get image directly from icon factoryJP Rosevear2004-11-261-10/+1
| | | | | | | | | | | | 2004-11-26 JP Rosevear <jpr@novell.com> * gui/component/select-names/e-select-names-popup.c (populate_popup_contact): get image directly from icon factory * gui/contact-editor/e-contact-editor-im.c (setup_service_optmenu): ditto svn path=/trunk/; revision=28000
* add "labelled by" between entry and label, make accessbility work. addHao Sheng2004-11-252-0/+170
| | | | | | | | | | | | 2004-11-25 Hao Sheng <hao.sheng@sun.com> * gui/contact-editor/contact-editor.glade: add "labelled by" between entry and label, make accessbility work. * gui/contact-editor/e-contact-editor.c: (e_contact_editor_create_web): add accessible name to e_url_entry. svn path=/trunk/; revision=27986
* populate contact only afte we are sure that data is valid and we canSivaiah Nallagatla2004-11-081-2/+1
| | | | | | | | | | | 2004-11-04 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (save_contact) : populate contact only afte we are sure that data is valid and we can create that. Fixes #69079 svn path=/trunk/; revision=27858
* Translate the category pretty names that we pass for creation of new menuRodney Dawes2004-11-081-2/+2
| | | | | | | | | | | | | 2004-11-07 Rodney Dawes <dobey@novell.com> * gui/contact-editor/e-contact-editor.c (init_email_record_location, init_im_record_location): Translate the category pretty names that we pass for creation of new menu item entries for the E-Mail and IM dropdown selections Partially fixes bug #66854 svn path=/trunk/; revision=27856
* Fixes #61972.Andre Klapper2004-10-271-1/+1
| | | | | | | | | | | 2004-10-26 Andre Klapper <a9016009@gmx.de> Fixes #61972. * addressbook/gui/contact-editor/e-contact-editor-address.c: Typo in country name: was "Grena-dines", now "Grenadines". svn path=/trunk/; revision=27731
* find source selector and option menu in libedataserveruiJP Rosevear2004-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-13 JP Rosevear <jpr@novell.com> * importers/evolution-vcard-importer.c: find source selector and option menu in libedataserverui * importers/evolution-ldif-importer.c: ditto * gui/widgets/eab-popup.c: ditto * gui/widgets/eab-gui-util.c: ditto * gui/contact-list-editor/e-contact-list-editor.c: ditto * gui/contact-editor/e-contact-editor.c: ditto * gui/component/select-names/e-select-names.h: ditto * gui/component/autocompletion-config.c: ditto * gui/component/addressbook-view.c: ditto svn path=/trunk/; revision=27568
* fix for e-popup api changes. Moved all mask specifiers to visible ratherNot Zed2004-10-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-06 Not Zed <NotZed@Ximian.com> * gui/component/addressbook-view.c (popup_event_callback): * gui/component/select-names/e-select-names.c (section_right_click_cb): * gui/widgets/e-addressbook-view.c (do_popup_menu): fix for e-popup api changes. Moved all mask specifiers to visible rather than enable in the menu table. 2004-10-06 Not Zed <NotZed@Ximian.com> * gui/contact-editor/e-contact-editor.c: removed gnome-popup-menu.h (unused). * gui/widgets/e-addressbook-reflow-adapter.c: * gui/widgets/eab-popup-control.c: remove e-popup-menu.h (unused). * gui/component/select-names/e-select-names.c (section_right_click_cb): use e-popup. Somewhat overengineered for this use ... (remove_cb): api changes. * gui/widgets/eab-popup.c (eab_popup_target_new_select_names): added pretty useless wrapper for the select names popup. Added to hook maps. svn path=/trunk/; revision=27488
* Point at the correct XML file for documentationRodney Dawes2004-09-141-1/+1
| | | | | | | | | 2004-09-13 Rodney Dawes <dobey@novell.com> * gui/contact-editor/e-contact-editor.c (show_help_cb): Point at the correct XML file for documentation svn path=/trunk/; revision=27255
* check for _LABEL type address fields also in supported fileds whileSivaiah Nallagatla2004-09-131-1/+2
| | | | | | | | | | | 2004-09-13 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (sensitize_address) : check for _LABEL type address fields also in supported fileds while sensitizing the address fields svn path=/trunk/; revision=27242
* Fixes bug #62715.Hans Petter Jansson2004-08-211-10/+38
| | | | | | | | | | | | | 2004-08-20 Hans Petter Jansson <hpj@ximian.com> Fixes bug #62715. * gui/contact-editor/e-contact-editor.c (fill_in_address_label_textview): Implement. (fill_in_address_field): If structured address information is not available, try putting the "label" blob in the free-form field. svn path=/trunk/; revision=26980
* Makes the contact image selector use GtkFileChooser if available.Hans Petter Jansson2004-08-211-12/+50
| | | | | | | | | | | | | | | | | | | 2004-08-19 Hans Petter Jansson <hpj@ximian.com> Makes the contact image selector use GtkFileChooser if available. * gui/contact-editor/e-contact-editor.c (image_selected_cb): Take just the editor as an argument, so we can call from other places without having to supply dummy args. Rename to image_selected, since it's no longer strictly a callback. Include optional code to use the new GtkFileChooser. (image_cleared_cb): Ditto. Rename to image_cleared. (file_chooser_response): Optional response handling for GtkFileChooser. (image_clicked): Include optional code to use the new GtkFileChooser. Move common strings to variables. For GtkFileSelection, swap callback parameters for the modified image_selected () and image_cleared (). svn path=/trunk/; revision=26979
* Remove the custom prompt-to-save dialogs from here - useHans Petter Jansson2004-08-171-53/+15
| | | | | | | | | | | 2004-08-11 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (app_delete_event_cb): Remove the custom prompt-to-save dialogs from here - use eab_prompt_save_dialog (), and then only if the contact actually changed. svn path=/trunk/; revision=26950
* include config.h #61395.Not Zed2004-07-221-0/+4
| | | | | | | | | | 2004-07-20 Not Zed <NotZed@Ximian.com> * gui/widgets/eab-contact-display.c: * gui/contact-editor/eab-editor.c: * gui/component/addressbook-migrate.c: include config.h #61395. svn path=/trunk/; revision=26693
* Give a reasonable name to the widget for the _Where labelRodney Dawes2004-07-222-2/+4
| | | | | | | | | | | | | | 2004-07-21 Rodney Dawes <dobey@novell.com> * gui/contact-editor/contact-editor.glade: Give a reasonable name to the widget for the _Where label * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Set the mnemonic widget for the _Where label Fixes #61544 svn path=/trunk/; revision=26691
* Check source book writeability directly instead of relying on storedHans Petter Jansson2004-07-202-35/+44
| | | | | | | | | | | | | | | | | | | | | | | | 2004-07-16 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (contact_added_cb) (save_contact) (app_delete_event_cb): Check source book writeability directly instead of relying on stored state. (e_contact_editor_init): Don't init source_editable. (e_contact_editor_dispose): We don't listen for source writeability anymore. (writable_changed): Source writeability doesn't affect widget status; remove code to check for it. (e_contact_editor_set_property): Do nothing if book being set is the same as currently set book; previously we would end up unreffing then reffing it. Don't watch for source writeability, but do so for target; fixes a warning. Only call sensitize_all() if writeability on target changed. * gui/contact-editor/e-contact-editor.h (EContactEditor): We don't need the source_editable and source_editable_id vars anymore. svn path=/trunk/; revision=26674
* disconnect source/target_editable signal ids.Chris Toshok2004-06-302-3/+39
| | | | | | | | | | | | | | | | | | 2004-06-30 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_dispose): disconnect source/target_editable signal ids. (e_contact_editor_set_property): disconnect/connect editable signals. (writable_changed): new function - we need this since writable status is generally communicated asynchronously with the async interface. * gui/contact-editor/e-contact-editor.h (struct _EContactEditor): add source/target_editable_id slots. svn path=/trunk/; revision=26554
* Add a newline between street line and rest of extended address.Hans Petter Jansson2004-06-261-1/+4
| | | | | | | | | | 2004-06-25 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (fill_in_address_textview): Add a newline between street line and rest of extended address. (extract_address_textview): Omit the newline trailing the street line. svn path=/trunk/; revision=26526
* Add table. (append_to_address_label): Implement. (set_address_label):Hans Petter Jansson2004-06-251-2/+48
| | | | | | | | | | | 2004-06-24 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (address_labels): Add table. (append_to_address_label): Implement. (set_address_label): Implement. (extract_address_record): Set the address label fields. svn path=/trunk/; revision=26506
* Set window to be invisible initially.Hans Petter Jansson2004-06-242-1/+4
| | | | | | | | | | | | 2004-06-23 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Set window to be invisible initially. * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Set the type hint to "normal", and show the window after init. svn path=/trunk/; revision=26487
* Name the labels.Hans Petter Jansson2004-06-232-51/+74
| | | | | | | | | | | | | | | | | 2004-06-22 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Name the labels. * gui/contact-editor/e-contact-editor.c (sensitize_email_record) (sensitize_phone_record) (sensitize_im_record) (sensitize_address_textview) (sensitize_address_field) (simple_field_map) (sensitize_simple_field): Make entries uneditable and labels insensitive, if field is disabled or read-only. svn path=/trunk/; revision=26464
* Make the scrolled windows around text views use GTK_SHADOW_IN, forFederico Mena Quintero2004-06-221-4/+4
| | | | | | | | | | 2004-06-21 Federico Mena Quintero <federico@ximian.com> * gui/contact-editor/contact-editor.glade: Make the scrolled windows around text views use GTK_SHADOW_IN, for consistency with the GtkEntries. svn path=/trunk/; revision=26446
* EBookFieldsCallback -> EBookEListCallback.Chris Toshok2004-06-181-3/+3
| | | | | | | | | | 2004-06-17 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_new): EBookFieldsCallback -> EBookEListCallback. (e_contact_editor_set_property): same. svn path=/trunk/; revision=26403
* EBookContactsCallback -> EBookListCallback. (eab_nickname_query): same.Chris Toshok2004-06-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-17 Chris Toshok <toshok@ximian.com> * util/eab-book-util.c (eab_name_and_email_query): EBookContactsCallback -> EBookListCallback. (eab_nickname_query): same. * printing/e-contact-print.c: e-book-async.h -> e-book.h * gui/widgets/eab-vcard-control.c: e-book-async.h -> e-book.h. * gui/widgets/e-addressbook-model.h: e-book-async.h -> e-book.h. * gui/widgets/eab-popup-control.h: e-book-async.h -> e-book.h. * gui/widgets/eab-popup-control.c: remove e-book-async.h include. * gui/merging/eab-contact-merging.h: e-book-async.h -> e-book.h. * gui/contact-editor/e-contact-editor.h: e-book-async.h -> e-book.h. * gui/contact-editor/e-contact-editor.h: same. * gui/contact-list-editor/e-contact-list-editor.h: same. * gui/contact-list-editor/e-contact-list-model.h: remove include of e-book-async.h * gui/component/select-names/e-select-names-completion.h: include e-book.h, not e-book-async.h * gui/component/select-names/e-select-names-model.c: same. * gui/component/select-names/e-select-names.c: same. * gui/component/addressbook-migrate.c: include e-book.h, not e-book-async.h * gui/component/addressbook-view.c: same. * gui/component/addressbook.h: same. * gui/component/addressbook.c: remove include e-book-async.h. svn path=/trunk/; revision=26402
* compare old and new full names and if it is different set the new the nameSivaiah Nallagatla2004-06-161-1/+4
| | | | | | | | | | | | 2004-06-16 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (full_name_clicked) : compare old and new full names and if it is different set the new the name using gtk_entry_set_text instead of set_entry_text as this function blocks siganls hence preventing ok button being enabled svn path=/trunk/; revision=26359
* set things to HOME, since we don't offer TYPE=OTHER IM attributes throughChris Toshok2004-06-151-1/+1
| | | | | | | | | | | | | | | | | 2004-06-14 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (extract_im_record): set things to HOME, since we don't offer TYPE=OTHER IM attributes through the EContact api, and one choice is just as good as another if we aren't displaying it anyway. * gui/widgets/eab-contact-display.c (render_contact): move the IM stuff out of home/work, since we don't allow people to edit location for them anymore. Also, change the IM accounts we look up to "HOME", since that's what we hardcode them to in the contact editor. svn path=/trunk/; revision=26340
* Fixes #58921.Hans Petter Jansson2004-06-081-0/+1
| | | | | | | | | | | 2004-06-07 Hans Petter Jansson <hpj@ximian.com> Fixes #58921. * gui/contact-editor/e-contact-editor.c (extract_address_record): Also check if the po box field is non-empty. svn path=/trunk/; revision=26246
* Add back office, spouse, web log fields. Allow for 8 phone numbers, ofHans Petter Jansson2004-05-292-315/+616
| | | | | | | | | | | | | | | | | | | | | | 2004-05-28 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Add back office, spouse, web log fields. Allow for 8 phone numbers, of which 4 can be hidden. * gui/contact-editor/e-contact-editor.c (phones_default): Add more defaults. (im_service_default): Add more defaults. (expand_phone): Implement. (fill_in_phone_record): Expand if we have any records past 4. (init_im_record_location) (fill_in_im_record) (extract_im_record) (sensitize_im_record): Remove location. (simple_field_map): Add spouse, office, web log. (expand_phone_toggle): Implement. (e_contact_editor_init): Hook up expander button. svn path=/trunk/; revision=26128
* Generate the addressbook-errors.xml.h file and install the xml file andJeffrey Stedfast2004-05-251-40/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-25 Jeffrey Stedfast <fejj@novell.com> * Makefile.am: Generate the addressbook-errors.xml.h file and install the xml file and all that jazz. * addressbook-errors.xml: New error xml file. * gui/widgets/e-addressbook-view.c (backend_died): Use e_error_run(). * gui/widgets/eab-gui-util.c (eab_error_dialog): Use e_error_run(). (eab_load_error_dialog): Same. (eab_search_result_dialog): Same. (eab_prompt_save_dialog): Same. (save_it): Same. * gui/contact-editor/e-contact-editor.c (categories_clicked): Use e_error_run(). (e_contact_editor_is_valid): Same. (save_contact): Same. * gui/component/addressbook-view.c (delete_addressbook_cb): Use e_error_run(). * gui/component/addressbook-config.c (addressbook_ldap_init): Use e_error_run(). (addressbook_ldap_auth): Same. (addressbook_root_dse_query): Same. (do_ldap_root_dse_query): Same. (do_schema_query): Same. svn path=/trunk/; revision=26077
* Fixes #58516.H P Nadig2004-05-221-1/+1
| | | | | | | | | | | 2004-05-21 H P Nadig <hpnadig@pacific.net.in> Fixes #58516. * gui/contact-editor/contact-editor.glade: 'Job Title' is now called 'Title'. svn path=/trunk/; revision=26036
* use the new e_book_new and e_book_open apis.Chris Toshok2004-05-201-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-19 Chris Toshok <toshok@ximian.com> * importers/evolution-vcard-importer.c (load_file_fn): use the new e_book_new and e_book_open apis. * importers/evolution-ldif-importer.c (load_file_fn): use the new e_book_new and e_book_open apis. * gui/widgets/eab-gui-util.c (eab_transfer_contacts): use the new e_book_new and e_book_async_open apis. * gui/contact-editor/e-contact-editor.c (cancel_load): addressbook_load_source_cancel -> addressbook_load_cancel. (source_selected): use the new e_book_new and addressbook_load. * gui/component/select-names/e-select-names.c (addressbook_model_set_source): use the new e_book_new and addressbook_load. * gui/component/select-names/e-select-names-manager.c (update_completion_books): use the new e_book_new and addressbook_load. * gui/component/addressbook.h: rename addressbook_load_source{_cancel} to addressbook_load{_cancel}, and remove the source arg. * gui/component/addressbook.c (addressbook_load): rename since we aren't passing a source anymore. (addressbook_load_cancel): same. (addressbook_load_default_book): use the new e_book_new_* apis. * gui/component/addressbook-view.c (delete_addressbook_cb): just use e_book_new, not e_book_load_source. (selector_tree_drag_data_received): switch to new e_book_new_*/e_book_open apis. (activate_source): same, and addressbook_load_source -> addressbook_load. * gui/component/addressbook-migrate.c (migrate_contact_folder_to_source): switch to new e_book_new_*/e_book_open apis. (migrate_contact_lists_for_local_folders): same. (migrate_company_phone_for_local_folders): same. * conduit/address-conduit.c (pre_sync): switch to new e_book_new_*/e_book_open apis. svn path=/trunk/; revision=25999
* Check if individual email fields are supported.Hans Petter Jansson2004-05-201-0/+4
| | | | | | | | | 2004-05-19 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (sensitize_email): Check if individual email fields are supported. svn path=/trunk/; revision=25998
* Remove debug output. (real_save_contact): Separate out actual save logicHans Petter Jansson2004-05-202-14/+95
| | | | | | | | | | | | | | | | | | | | | | 2004-05-19 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (extract_simple_field): Remove debug output. (real_save_contact): Separate out actual save logic from save_contact (). (save_contact): If the user wants to move the contact from one address book to another, but the source is read-only, as to save a copy instead. (e_contact_editor_is_valid): The dialog should be an error dialog. (app_delete_event_cb): If the target book is read-only, prompt to discard. If the user wants to move but cannot, prompt to save a copy. Also validate. * gui/contact-editor/eab-editor.c (eab_editor_prompt_to_save_changes): Remove comment about invalid data dialog, it's not handled here anymore. svn path=/trunk/; revision=25996
* Fixes a number of bugs, adds some unimplemented functionality, and makesHans Petter Jansson2004-05-202-913/+927
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-19 Hans Petter Jansson <hpj@ximian.com> Fixes a number of bugs, adds some unimplemented functionality, and makes code more structured. * gui/contact-editor/e-contact-editor.h: Eliminate company, fullname_editable, address_editable fields from EContactEditor. * gui/contact-editor/e-contact-editor.c (enable_writable_fields): Removed. (set_editable): Removed. (fill_in_info): Removed. (extract_field): Removed. (extract_info): Removed. (set_fields): Removed. (command_state_changed): Removed. (widget_changed): Removed. (enable_widget): Removed. (nonempty): Invert and rename to STRING_IS_EMPTY(). (STRING_MAKE_NON_NULL): Impl. (is_field_supported): Implement. (file_as_get_style): Eliminate editor->company. (file_as_set_style): Ditto. Also don't set empty fields in combo. (update_file_as_combo): Implement. (sensitize_ok): Implement. (object_changed): Implement. (image_chooser_changed): Don't call widget_changed() from here. (set_option_menu_history): Implement. (init_email_record_location): Hook up signals after init. (init_phone_record_type): Ditto. (init_im_record_location): Ditto. (init_im_record_service): Ditto. (init_address_textview): widget_changed -> object_changed (init_address_field): Ditto. (fill_in_email_record): Use set_option_menu_history(), blocking signals. (fill_in_im_record): Ditto. (fill_in_address_field): Use set_entry_text(), blocking signals. (alloc_ui_slot): nonempty -> STRING_IS_EMPTY (extract_email): Ditto. (fill_in_phone_record): Ditto. (extract_im): Ditto. (extract_address_record): Ditto. (sensitize_email_record): Implement. (sensitize_email): Implement. (sensitize_phone_types): Implement. (sensitize_phone_record): Impleent. (sensitize_phone): Implement. (sensitize_im_record): Implement. (sensitize_im): Implement. (sensitize_address_textview): Implement. (sensitize_address_field): Implement. (sensitize_address_record): Implement. (sensitize_address): Implement. (simple_field_map): Add all simple fields/widgets to a table with attributes saying how to handle sensitivity and data transfer. (init_simple_field): Implement. (fill_in_simple_field): Implement. (extract_simple_field): Implement. (sensitize_simple_field): Implement. (init_simple): Implement. (fill_in_simple): Implement. (extract_simple): Implement. (sensitize_simple): Implement. (fill_in_all): Implement. (extract_all): Implement. (sensitize_all): Implement. (set_entry_changed_signal_field): Removed. (set_urlentry_changed_signal_field): Removed. (set_entry_activate_signal_field): Removed. (new_target_cb): Don't signal changes. (set_entry_activate_signals): Removed. (set_entry_changed_signals): Removed. (full_name_clicked): Honor field_supported and target_editable. Use set_entry_text() and block changed signals. (image_selected_cb): widget_changed -> object_changed. Don't clear pointer to file_selector. (image_cleared_cb): Ditto. (contact_moved_cb): command_state_chaned() -> sensitize_all(). (contact_added_cb): Ditto. (supported_fields_cb): Ditto. (contact_modified_cb): Ditto. (save_contact): extract_info() -> extract_all(). (e_contact_editor_is_valid): Be more verbose. Make sure File As is non-empty. (e_contact_editor_init): Call init_all() in place of lots of setup calls. Remove reference to editor->company. (e_contact_editor_dispose): Remove reference to editor->company. (command_state_changed): Removed. (e_contact_editor_set_property): Axe unneeded complexity, now that we have sensitize_all() and sensitize_ok(). (set_fields): Removed. (fill_in_field): Removed. (field_mapping): Removed. (disable_widget_foreach): Removed. (widget_field_mapping): Removed. (num_widget_field_mappings): Removed. (enable_widget): Removed. svn path=/trunk/; revision=25988
* Hook up image button. (e_contact_editor_dispose): Dispose of file selectorHans Petter Jansson2004-05-183-9/+109
| | | | | | | | | | | | | | | | | 2004-05-17 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Hook up image button. (e_contact_editor_dispose): Dispose of file selector if it's around. (image_clicked): Implement. (file_selector_deleted): Implement. (image_cleared_cb): Implement. (image_selected_cb): Implement. * gui/contact-editor/contact-editor.glade: Make the contact image be a button that lets you change or discard the image. svn path=/trunk/; revision=25943
* Use an E_ICON_SIZE enum value for the icon_size argument to get_icon.Jeffrey Stedfast2004-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-17 Jeffrey Stedfast <fejj@novell.com> * gui/widgets/e-minicard.c (e_minicard_init): Use an E_ICON_SIZE enum value for the icon_size argument to get_icon. * gui/widgets/eab-gui-util.c (eab_create_image_chooser_widget): Use E_ICON_SIZE_DIALOG as the icon_size argument to get_icon_filename. * gui/widgets/eab-contact-display.c (on_url_requested): Use an E_ICON_SIZE enum as the icon_size argument to get_icon_filename. * gui/contact-editor/e-contact-editor-im.c (setup_service_optmenu): Use E_ICON_SIZE_MENU here. * gui/component/select-names/e-select-names-popup.c (populate_popup_contact): Use E_ICON_SIZE_MENU here instead of 16. * gui/component/addressbook-view.c (set_status_message): Use the E_ICON_SIZE corresponding to 16x16 pixels. svn path=/trunk/; revision=25933
* Add PO box entries.Hans Petter Jansson2004-05-132-8/+146
| | | | | | | | | | | | | 2004-05-12 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Add PO box entries. * gui/contact-editor/e-contact-editor.c (init_address_record): Hook up PO box entry. (fill_in_address_record): Ditto. (extract_address_record): Ditto. svn path=/trunk/; revision=25884
* Fixes bug #55208.S N Tejasvi2004-05-131-2/+43
| | | | | | | | | | | | 2004-04-18 S N Tejasvi <tejasvi_sn@gawab.com> Fixes bug #55208. * gui/contact-editor/e-contact-editor.c (save_contact): Do e_contact_editor_is_valid check to check the birth date and anniversary date format when user wants to save and warn him. svn path=/trunk/; revision=25883
* Implement. (init_address_record): Init textview.Hans Petter Jansson2004-05-052-277/+257
| | | | | | | | | | | | | | | | | 2004-05-05 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (init_address_textview): Implement. (init_address_record): Init textview. (fill_in_address_textview): Implement. (fill_in_address_record): Fill in textview. (extract_address_textview): Implement. (extract_address_record): Extract from textview. * gui/contact-editor/contact-editor.glade: Combine address-[12] fields into one multiline text view, as per Anna's new design. svn path=/trunk/; revision=25800
* Use defaults from Anna. (im_service_default): Ditto. (email_default):Hans Petter Jansson2004-05-051-14/+20
| | | | | | | | | | | | | | | | | | | | | 2004-05-04 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (phones_default): Use defaults from Anna. (im_service_default): Ditto. (email_default): Ditto. (im_location): Renamed to common_location, as it's used by both IM and e-mail. (init_email_record_location): im_location -> common_location (init_im_record_location): Ditto. (email_index_to_location): Ditto. (im_index_to_location): Ditto. (get_email_location): Ditto. (get_im_location): Ditto. (fill_in_email_record): Consult defaults. (fill_in_im_record): Ditto. svn path=/trunk/; revision=25796
* Remove blog, add home page. (set_entry_changed_signals): Ditto.Hans Petter Jansson2004-05-052-9/+9
| | | | | | | | | | | | | | | | 2004-05-04 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (set_entry_activate_signals): Remove blog, add home page. (set_entry_changed_signals): Ditto. (setup_tab_order): Ditto. (field_mapping): Ditto. (widget_field_mappings): Ditto. * gui/contact-editor/contact-editor.glade: Replace blog with home page. svn path=/trunk/; revision=25795
* Establish defaults for the phone number option menus.Hans Petter Jansson2004-05-041-1/+5
| | | | | | | | | | 2004-05-03 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (phones_default): Establish defaults for the phone number option menus. (fill_in_phone_record): Fall back to defaults. svn path=/trunk/; revision=25774
* Implement. (e_contact_editor_init): Hook up the help button.Hans Petter Jansson2004-05-042-14/+18
| | | | | | | | | | | | 2004-05-03 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (show_help_cb): Implement. (e_contact_editor_init): Hook up the help button. * gui/contact-editor/contact-editor.glade: Give the help button a sensible name. svn path=/trunk/; revision=25772
* Update dialog vbox and action area border widths to be HIG compliantRodney Dawes2004-04-282-2/+15
| | | | | | | | | | | | | 2004-04-27 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/e-contact-editor-fullname.c: (e_contact_editor_fullname_init): * gui/contact-editor/fullname.glade: * gui/search/e-addressbook-search-dialog.c (eab_search_dialog_init): Update dialog vbox and action area border widths to be HIG compliant Update main child widget border widths to be HIG compliant svn path=/trunk/; revision=25635
* Set spacing around notebook widget and the dialog's action area and vboxRodney Dawes2004-04-272-1/+18
| | | | | | | | | | | 2004-04-26 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/contact-editor.glade: * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Set spacing around notebook widget and the dialog's action area and vbox widgets to be compliant with the HIG dialog specs svn path=/trunk/; revision=25618
* Correct the dialog's title.Hans Petter Jansson2004-04-232-56/+84
| | | | | | | | | | | | | | | | | | | | | 2004-04-22 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Correct the dialog's title. * gui/contact-editor/e-contact-editor.c (init_email_record_location): Connect to entry's activate signal. (init_phone_record_type): Ditto. (init_im_record_location): Ditto. (init_address_field): Ditto. (set_entry_changed_signal_field): Remove unnecessary checks. (set_urlentry_changed_signal_field): Ditto. (set_entry_changed_signals): Ditto. (set_entry_activate_signal_field): Implement. (set_urlentry_activate_signal_field): Implement. (set_entry_activate_signals): Implement. (e_contact_editor_init): Call set_entry_activate_signals (). svn path=/trunk/; revision=25590
* Override the save_contact function. (e_contact_editor_save_contact):Hans Petter Jansson2004-04-231-16/+12
| | | | | | | | | | | | | 2004-04-22 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_class_init): Override the save_contact function. (e_contact_editor_save_contact): Implement. (e_contact_editor_init): Remove some unnecessary checks - if something's the matter with the UI files, that needs to be warned about and fixed, not silently worked around. svn path=/trunk/; revision=25589
* Make the window be a GtkDialog.Hans Petter Jansson2004-04-231-2645/+2609
| | | | | | | | | 2004-04-22 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Make the window be a GtkDialog. svn path=/trunk/; revision=25587
* Implement. (extract_email): Preserve offscreen addresses. (extract_phone):Hans Petter Jansson2004-04-221-0/+71
| | | | | | | | | | | 2004-04-21 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (free_attr_list): Implement. (extract_email): Preserve offscreen addresses. (extract_phone): Preserve offscreen phone numbers. (extract_im): Preserve offscreen IM accounts. svn path=/trunk/; revision=25571
* Add defines for the slot counts for email, phone, im, address. (phones):Hans Petter Jansson2004-04-221-77/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-21 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c: Add defines for the slot counts for email, phone, im, address. (phones): Add E_CONTACT_PHONE_COMPANY back in, now that we can differentiate it. (init_email): Use EMAIL_SLOTS and a loop. (init_im): Ditto for IM_SLOTS. (init_phone): Ditto for PHONE_SLOTS. (fill_in_address) (extract_address) (init_address): Ditto for ADDRESS_SLOTS. (get_ui_slot_param): Implement. (get_ui_slot): Implement. (set_ui_slot): Implement. (alloc_ui_slot): Implement. (fill_in_email): Add code to preserve spatial organization. (extract_email): Ditto. (fill_in_phone): Ditto. (extract_phone): Ditto. (fill_in_im): Ditto. (exctract_im): Ditto. svn path=/trunk/; revision=25570
* Remove unused fields.Hans Petter Jansson2004-04-212-88/+2
| | | | | | | | | | | | | | | 2004-04-21 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.h (EContactEditor): Remove unused fields. * gui/contact-editor/e-contact-editor.c (emails): Remove. (e_contact_editor_init): Don't init unused fields. (e_contact_editor_dispose): Don't free/clear unused fields. (enable_writable_fields): Don't use email_choice anymore. Enable checkbutton-htmlmail only once. svn path=/trunk/; revision=25550
* Make the phone type selectors be option menus.Hans Petter Jansson2004-04-212-380/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-21 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Make the phone type selectors be option menus. * gui/contact-editor/e-contact-editor.c (phones): Store the phone param mappings locally. (set_entry_changed_signals): Don't special-case phone entries here. (enable_writable_fields): Don't mess with the phone widgets anymore. (set_fields): Use fill_in_phone (). (extract_info): Use extract_phone (). (phone_index_to_type): Implement. (get_phone_type): Implement. (get_attributes_named): Implement. (set_attributes_named): Implement. (fill_in_phone_record): Implement. (extract_phone_record): Implement. (fill_in_phone): Implement. (extract_phone): Implement. (init_phone_record_type): Implement. (init_phone): Implement. (connect_arrow_button_signal): Remove. (connect_arrow_button_signals): Remove. (phone_entry_changed): Remove. (set_entry_changed_signal_phone): Remove. (_arrow_pressed): Remove. (_phone_arrow_pressed): Remove. (e_contact_editor_build_ui_info): Remove. (e_contact_editor_build_phone_ui): Remove. (set_phone_field): Remove. svn path=/trunk/; revision=25549
* use cursor-mode="line" to get rid of the annoying cell cursor.Chris Toshok2004-04-211-1/+1
| | | | | | | | | | | | | | | | 2004-04-20 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.etspec: use cursor-mode="line" to get rid of the annoying cell cursor. * gui/widgets/eab-gui-util.c (eab_create_image_chooser_widget): create the image chooser even if we aren't given an initial filename. * gui/contact-editor/e-contact-editor.c (new_target_cb): addressbook_show_load_error_dialog -> eab_load_error_dialog. svn path=/trunk/; revision=25538
* Set the default image for the contact photo to be the stock_person imageRodney Dawes2004-04-194-29/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/contact-editor.glade: Set the default image for the contact photo to be the stock_person image in the icon theme 2004-04-19 Michael Terry <mike@mterry.name> * gui/component/GNOME_Evolution_Addressbook.server.in.in: * gui/component/addressbook-component.c: * gui/component/addressbook-view.c: * gui/component/select-names/e-select-names-popup.c: * gui/contact-editor/e-contact-editor-address.c: * gui/contact-editor/e-contact-editor-fullname.c: * gui/contact-editor/e-contact-editor-im.c: * gui/contact-list-editor/contact-list-editor.glade: * gui/contact-list-editor/e-contact-list-editor.c: * gui/merging/eab-contact-commit-duplicate-detected.glade: * gui/merging/eab-contact-duplicate-detected.glade: * gui/widgets/e-minicard.c: * gui/widgets/eab-contact-display.c: * gui/widgets/eab-gui-util.c: Update the addressbook to use the icon theme via the EIconFactory object in e-util svn path=/trunk/; revision=25514
* new macro. (extract_email): only create/add the attribute if the emailChris Toshok2004-04-181-16/+34
| | | | | | | | | | | | 2004-04-18 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (nonempty): new macro. (extract_email): only create/add the attribute if the email address is nonempty. (extract_im): same, but for im accounts. (extract_address_record): same, but for addresses. svn path=/trunk/; revision=25502
* Add "wants HTML" checkbox.Hans Petter Jansson2004-04-172-291/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-16 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Add "wants HTML" checkbox. * gui/contact-editor/contact-editor.c (email_location_to_index) (email_entry_changed) (set_entry_changed_signal_email) (file_save_cb) (file_close_cb) (file_save_as_cb) (file_send_as_cb) (file_send_to_cb) (contact_deleted_cb) (delete_cb) (print_cb) (print_envelope_cb) (tb_save_and_close_cb) (verbs) (pixmaps) (create_ui): Remove unused funcs. (command_state_changed): Remove bonobo calls. (e_contact_editor_init): Remove bonobo stuff. (fill_in_email) (fill_in_im): Remove unused vars. svn path=/trunk/; revision=25498
* Commit new contact editor UI by Anna.Hans Petter Jansson2004-04-162-3370/+3465
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-16 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Commit new contact editor UI by Anna. * gui/contact-editor/e-contact-editor.c: Comment out bonobo includes. (_email_arrow_pressed) (_address_arrow_pressed) (set_im_fields) (find_address_mailing) (set_address_field) (add_im_clicked) (edit_im_clicked) (remove_im_clicked) (im_button_press_cb) (im_selected_cb) (im_treeview_drag_data_get_cb) (im_treeview_drag_data_rcv_cb) (setup_im_treeview) (email_entry_changed) (address_to_text) (text_to_address) (address_text_changed) (address_mailing_changed) (full_addr_clicked) (e_contact_editor_build_email_ui) (e_contact_editor_build_address_ui) (_email_arrow_pressed) (_address_arrow_pressed) (find_address_mailing) (add_im_field) (set_im_fields) (set_address_field): Removed. (address_name) (im_service) (im_location): Add lookup structs. (init_email_record_location) (init_email) (fill_in_email_record) (extract_email_record) (email_location_to_index) (email_index_to_location) (im_index_to_location) (get_email_location) (get_im_location) (fill_in_email) (extract_email) (init_im_record_location) (init_im_record_service) (init_im) (fill_in_im_record) (fill_in_im) (extract_im_record) (extract_im) (init_address_field) (init_address_record) (init_address) (fill_in_address_field) (fill_in_address_record) (fill_in_address) (extract_address_field) (extract_address_record) (extract_address) (file_save_and_close_cb) (file_cancel_cb) (set_entry_text): Implemented. (connect_arrow_button_signals): Updated some widget names. (set_entry_changed_signals): Removed dead widgets, updated names for others. (print_cb) (tb_save_and_close_cb) (create_ui): Disabled Bonobo toolbar/menus. (e_contact_editor_init): Disabled Bonobo toolbar/menus. Init new UI elements. Remove init of old UI elements. (command_state_changed): Disabled Bonobo toolbar/menus. Act on new ok/cancel buttons. (_phone_arrow_pressed): Updated widget names. (set_phone_field): Use set_entry_text (). (set_fields): Update widget names, remove old address code, call new fill_in_* code. (field_mapping): Remove dead widgets. (widget_field_mapping): Ditto. (enable_writable_fields): Remove calls for old email/address UI. Update some names. (fill_in_info): Don't find_address_mailing() or set_im_fields(). (extract_info): Call new extraction funcs. svn path=/trunk/; revision=25492
* [ fixes bug #34777 ]Chris Toshok2004-03-311-2/+24
| | | | | | | | | | | | | | | | | | 2004-03-30 Chris Toshok <toshok@ximian.com> [ fixes bug #34777 ] * gui/contact-editor/e-contact-editor.c (file_as_entry_changed): set the window title to File As if the file as entry has something in it. "Contact Editor" otherwise. (set_entry_changed_signals): hook up the file-as-entry's "changed" signal. * gui/contact-list-editor/e-contact-list-editor.c (list_name_changed_cb): analogous fix, but "List Name" and "Contact List Editor". svn path=/trunk/; revision=25256
* do eab_editor_is_valid check only when user wants to save.Sivaiah Nallagatla2004-03-261-5/+4
| | | | | | | | | 2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/eab-editor.c (eab_editor_prompt_to_save_changes) : do eab_editor_is_valid check only when user wants to save. svn path=/trunk/; revision=25191
* parent_type == EAB_TYPE_EDITOR. (e_contact_list_editor_class_init): fillChris Toshok2004-03-252-270/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-24 Chris Toshok <toshok@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_get_type): parent_type == EAB_TYPE_EDITOR. (e_contact_list_editor_class_init): fill in editor_class virtual functions, and remove all the signals. (list_added_cb): call eab_editor_contact_* instead of emitting a signal here. also call eab_editor_close (list_modified_cb): same. (e_contact_list_editor_is_valid): new function. (e_contact_list_editor_is_changed): same. (e_contact_list_editor_get_window): same. (file_close_cb): call eab_editor_ functions. (list_deleted_cb): call eab_editor_contact_* instead of emitting a signal here. also call eab_editor_close (delete_cb): call eab_editor_* functions. (contact_list_editor_destroy_notify): call eab_editor_remove. (e_contact_list_editor_new): call eab_editor_add, and remove the g_object_ref/gtk_object_sink two-step. (e_contact_list_editor_show): make static, and make arg EABEditor. (e_contact_list_editor_raise): same. (e_contact_list_editor_close): same. (app_delete_event_cb): call eab_editor_ functions. (command_state_changed): use eab_editor_is_valid instead of is_named. (e_contact_list_editor_request_close_all): nuke. * gui/contact-list-editor/e-contact-list-editor.h: nuke a bunch of prototypes for functions that are now either virtual functions from EABEditor or eab_editor_* functions. (struct _EContactListEditor): we subclass from EABEditor. (struct _EContactListEditorClass): same, and nuke all the signals. * gui/contact-editor/e-contact-editor.c (e_contact_editor_get_type): parent_type == EAB_TYPE_EDITOR. (e_contact_editor_class_init): fill in editor_class virtual functions, and remove all the signals. (contact_moved_cb): call eab_editor_contact_* instead of emitting a signal here. also call eab_editor_close (contact_added_cb): same. (contact_modified_cb): same. (e_contact_editor_close): rename from close_dialog. (e_contact_editor_is_valid): new function. (e_contact_editor_is_changed): new function. (e_contact_editor_get_window): new function. (file_close_cb): use eab_editor_ calls here. (e_contact_editor_confirm_delete): nuke. (contact_deleted_cb): call eab_editor_contact_* instead of emitting a signal here. also call eab_editor_close (delete_cb): use eab_editor_ functions. (e_contact_editor_dispose): chain up to our parent's ::dispose. (contact_editor_destroy_notify): use eab_editor_remove. (e_contact_editor_new): use eab_editor_add, and remove the g_object_ref/gtk_object_sink two-step. (_popup_position): nuke dead function. (set_fields): i is an index, not a field_id. (e_contact_editor_raise): make this static, and it takes an EABEditor arg now, not a EContactEditor. (e_contact_editor_show): same. (e_contact_editor_request_close_all): nuke. * gui/contact-editor/e-contact-editor.h: nuke a bunch of prototypes for functions that are now either virtual functions from EABEditor or eab_editor_* functions. (struct _EContactEditor): we subclass from EABEditor. (struct _EContactEditorClass): same, and remove the signals. * gui/widgets/e-addressbook-view.c (delete): call eab_editor_confirm_delete. * gui/widgets/eab-popup-control.c (contact_editor_cb): don't bother calling e_contact_editor_raise since this is a new contact editor anyway. * gui/widgets/eab-gui-util.c (eab_show_contact_list_editor): use EABEditor signals, and eab_editor_show. * gui/widgets/e-minicard.h: "editor" is now of type EABEditor, not GObject. * gui/widgets/e-minicard.c (e_minicard_event): just use eab_editor_raise instead of e_contact_editor_raise/e_contact_list_editor_raise. * gui/component/addressbook-component.c (impl_requestQuit): implement this again, calling eab_editor_request_close_all. (addressbook_component_class_init): fill in epv->requestQuit. svn path=/trunk/; revision=25173
* superclass for both EContactEditor and EContactListEditor. A start towardChris Toshok2004-03-253-2/+502
| | | | | | | | | | | | | 2004-03-24 Chris Toshok <toshok@ximian.com> * gui/contact-editor/eab-editor.[ch]: superclass for both EContactEditor and EContactListEditor. A start toward simplifying the interface to both of them, and a place to abstract code. * gui/contact-editor/Makefile.am (libecontacteditor_la_SOURCES): add eab-editor.[ch] svn path=/trunk/; revision=25172
* loop only up to < G_N_ELEMENTS instead of <= G_N_ELEMENTS. Prevents out ofSivaiah Nallagatla2004-03-161-1/+1
| | | | | | | | | 2004-03-14 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (enable_writable_fields) : loop only up to < G_N_ELEMENTS instead of <= G_N_ELEMENTS. Prevents out of bound indexing of addresses array svn path=/trunk/; revision=25073
* phone_choice is an index into the phones array. (_phone_arrow_pressed):Chris Toshok2004-03-111-50/+59
| | | | | | | | | | | | | | | | | | | | | | | | 2004-03-10 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (phone_entry_changed): phone_choice is an index into the phones array. (_phone_arrow_pressed): same. (address_text_changed): address_choice is an index into the addresses array. (_address_arrow_pressed): same. (set_address_field): same. (_email_arrow_pressed): email_choice is an index into the emails array. (full_addr_clicked): same, and same with s/addresses/address_editable. (e_contact_editor_init): initialize the *_choice fields as indices into their respective *es arrays. (e_contact_editor_build_address_ui): initialize the labels from the addresses array. (set_fields): *_choice fields are indices into *es arrays. (enable_writable_fields): same. svn path=/trunk/; revision=25017
* Don't try to calculate the position of the popup menu for the dropdownsRodney Dawes2004-03-101-1/+1
| | | | | | | | | 2004-03-09 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/e-contact-editor.c (_arrow_pressed): Don't try to calculate the position of the popup menu for the dropdowns svn path=/trunk/; revision=25001
* Remove the dialog separator, and set appropriate border widths for theRodney Dawes2004-03-102-14/+20
| | | | | | | | | | | | 2004-03-09 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/e-contact-editor-im.c (e_contact_editor_im_edit): Remove the dialog separator, and set appropriate border widths for the button area box and the dialog's vbox * gui/contact-editor/im.glade: Apply patch from Christian Neumair to make the IM editor dialog HIG compliant svn path=/trunk/; revision=24999
* fixed type in contact editor code to make email ui building workSivaiah Nallagatla2004-03-091-1/+1
| | | | svn path=/trunk/; revision=24996
* Change the button relief back to normal for the drop-down buttons and moveRodney Dawes2004-02-281-500/+564
| | | | | | | | | | 2004-02-27 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/contact-editor.glade: Change the button relief back to normal for the drop-down buttons and move the text labels inside the buttons as well svn path=/trunk/; revision=24915
* Get rid of some extraneous event boxes that were not needed/used forRodney Dawes2004-02-281-254/+212
| | | | | | | | | | | | | | | 2004-02-27 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/contact-editor.glade: Get rid of some extraneous event boxes that were not needed/used for anything really Set the button relief for the pop-down buttons to NONE Set the shadow type for the arrows in the pop-down buttons to NONE, so that we look good with themes that actually handle shadow types on arrows, since most things just ignore the shadow type anyway Fixes #8516 svn path=/trunk/; revision=24910
* Move unused variable declaration inside notyet conditional.Hans Petter Jansson2004-02-272-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-26 Hans Petter Jansson <hpj@ximian.com> * util/eab-destination.c (name_and_email_cb): Move unused variable declaration inside notyet conditional. * printing/e-contact-print.c: Include gal/util/e-util.h * gui/merging/eab-contact-compare.c (eab_contact_locate_match): Cast callback to an EBookCallback. (eab_contact_locate_match_full): Ditto. * gui/contact-editor/e-contact-quick-add.c (quick_add_set_name): Remove unused variable and cast 3rd arg to e_contact_set () (perhaps this should take a gconstpointer?). * gui/contact-editor/e-contact-editor-im.c (setup_service_optmenu): Remove unused variable. * gui/component/select-names/e-select-names.c (e_select_names_init): Cast the vbox to a GtkBox. * gui/component/addressbook-config.c (dialog_to_source): Correctly cast the spin button to a GtkSpinButton, not a GtkEntry. * gui/component/addressbook-component.c (load_primary_selection): Remove unused variable. svn path=/trunk/; revision=24898
* fix checks for locations.Chris Toshok2004-02-271-5/+5
| | | | | | | | | 2004-02-26 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (edit_im_clicked): fix checks for locations. svn path=/trunk/; revision=24888
* set the location label/option menu to visible.Chris Toshok2004-02-273-98/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-26 Chris Toshok <toshok@ximian.com> * gui/contact-editor/im.glade: set the location label/option menu to visible. * gui/contact-editor/e-contact-editor.c (add_im_clicked): build up the vcard attributes manually so we can set the TYPE= parameter to the location the user specifies. (edit_im_clicked): same. Also, use COLUMN_IM_LOCATION_TYPE, which is not localized to pass the location to the editor. (remove_im_clicked): reindent. (im_treeview_drag_data_get_cb): same. (im_treeview_drag_data_rcv_cb): same. (setup_im_treeview): add another column for the (non-localized) location type, and reindent. (add_im_field): use the new attribute api for EContact so we can get the location of each account, and set things appropriately on the store. * gui/contact-editor/e-contact-editor-im.c (e_contact_editor_im_class_init): reindent. (e_contact_editor_im_new): same. (fill_in_info): same. svn path=/trunk/; revision=24886
* added groupwise im related label and icon image file nameSivaiah Nallagatla2004-02-252-1/+6
| | | | | | | | | | | | 2004-02-25 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor-im.c : added groupwise im related label and icon image file name * gui/contact-editor/e-contact-editor.c : (im_treeview_drag_data_get_cb), (im_treeview_drag_data_rcv_cb) : (set_im_fields) : added code to add Gw Im id to contact-editor svn path=/trunk/; revision=24864
* Port to new way of setting name in contact.Hans petter Jansson2004-02-251-10/+2
| | | | | | | | | 2004-02-24 Hans petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-quick-add.c (quick_add_set_name): Port to new way of setting name in contact. svn path=/trunk/; revision=24861
* remove some spew.Chris Toshok2004-02-211-1/+0
| | | | | | | | | 2004-02-20 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (phone_entry_changed): remove some spew. svn path=/trunk/; revision=24824
* provide ESC support for delete dialog of contact editor, fix bug 52765Leon Zhang2004-02-191-1/+1
| | | | | | patch by hao.sheng@sun.com svn path=/trunk/; revision=24793
* add image_set slot.Chris Toshok2004-02-182-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | 2004-02-17 Chris Toshok <toshok@ximian.com> * gui/contact-list-editor/e-contact-list-editor.h (struct _EContactListEditor): add image_set slot. * gui/contact-list-editor/e-contact-list-editor.c (list_image_changed_cb): set image_set = TRUE. (e_contact_list_editor_init): init image_set = FALSE (extract_info): only set the LOGO attribute if image_set = TRUE. * gui/contact-editor/e-contact-editor.h (struct _EContactEditor): add image_set slot. * gui/contact-editor/e-contact-editor.c (extract_info): only set the PHOTO attribute if image_set == TRUE. (image_chooser_changed): new function, set image_set = TRUE and call widget_changed. (e_contact_editor_init): init image_set to FALSE. (_address_arrow_pressed): quiet compiler. svn path=/trunk/; revision=24771
* enable d&d drop photos.Chris Toshok2004-01-312-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-30 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c: enable d&d drop photos. * gui/contact-editor/contact-editor.glade: use eab_create_image_chooser_widget for the d&d'able image. * gui/contact-list-editor/e-contact-list-editor.c: abstract out all the d&d image support (it's now in widgets/misc/e-image-chooser.[ch]). * gui/contact-list-editor/contact-list-editor.glade: use eab_create_image_chooser_widget for the d&d'able image. * gui/widgets/eab-gui-util.c (eab_create_image_chooser_widget): new function. * gui/widgets/eab-gui-util.h: add prototype for eab_create_image_chooser_widget. svn path=/trunk/; revision=24553
* Handle NULL name. Fixes #53071.Hans Petter Jansson2004-01-281-2/+9
| | | | | | | | | | 2004-01-27 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_set_property): Handle NULL name. Fixes #53071. svn path=/trunk/; revision=24479
* Added missing entry-blog widget.Nat Friedman2004-01-221-0/+18
| | | | | | | | | 2004-01-21 Nat Friedman <nat@novell.com> * gui/contact-editor/contact-editor.glade: Added missing entry-blog widget. svn path=/trunk/; revision=24360
* call widget_changed here too, since we're changing the destination.Chris Toshok2004-01-221-0/+1
| | | | | | | | | 2004-01-21 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (new_target_cb): call widget_changed here too, since we're changing the destination. svn path=/trunk/; revision=24353
* 2004 -01-20 Sivaiah Nallagatla <snallagatla@novell.com>Sivaiah Nallagatla2004-01-201-2/+4
| | | | | | | * gui/contact-editor/e-contact-editor.c (edit_im_clicked) : do not call gtk_tree_model_get when nothing in the list is selected svn path=/trunk/; revision=24325
* Don't run callback if the action was cancelled. (load_source_cb): Ditto.Hans Petter Jansson2004-01-172-4/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-16 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook.c (load_source_auth_cb): Don't run callback if the action was cancelled. (load_source_cb): Ditto. (addressbook_load_source): Return an ID for the load attempt. (addressbook_load_source_cancel): Implement, allows cancelling a load attempt. * gui/contact-editor/e-contact-editor.c (new_target_cb): Clear the values for in-progress load operation. Only unref new_book if it's non-NULL. (cancel_load): Implement. Cancels the load operation if one is in progress. (source_selected): Cancel any running load operation before starting a new one. Set up in-progress values. (e_contact_editor_init): Clear the in-progress values. (e_contact_editor_dispose): Cancel load operation. (e_contact_editor_set_property): If a new target book is set, cancel any conflicting load operation in progress. * gui/widgets/e-addressbook-view.c (set_paned_position): Remove debug output. (get_paned_position): Ditto. svn path=/trunk/; revision=24287
* de-bold ui elementsJP Rosevear2004-01-131-4/+2
| | | | | | | | 2004-01-12 JP Rosevear <jpr@ximian.com> * gui/contact-editor/contact-editor.glade: de-bold ui elements svn path=/trunk/; revision=24180
* Added a dialog for adding a new IM account. Added the previously mentionedChristian Hammond2004-01-127-42/+1570
| | | | | | | | | | | | | | | 2004-01-11 Christian Hammond <chipx86@gnupdate.org> * addressbook/gui/contact-editor/e-contact-editor-im.[ch], addressbook/gui/contact-editor/im.glade: Added a dialog for adding a new IM account. * addressbook/gui/contact-editor/Makefile.am: Added the previously mentioned files, and depend on camel for necessary MIME parsing. * addressbook/gui/contact-editor/contact-editor.[ch], addressbook/gui/contact-editor/contact-editor.glade: Add and implement svn path=/trunk/; revision=24162
* Add the video conferencing fieldRoss Burton2004-01-092-3/+131
| | | | svn path=/trunk/; revision=24117
* Apply patch from Roozbeh Pournader to update countries listRodney Dawes2004-01-071-4/+12
| | | | | | | | | | | 2004-01-06 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/e-contact-editor-address.c: Apply patch from Roozbeh Pournader to update countries list Fixes #48151 svn path=/trunk/; revision=24076
* editable -> target_editable (e_contact_editor_get_property): Same.Hans Petter Jansson2003-12-192-29/+73
| | | | | | | | | | | | | | | | | | | | | | | 2003-12-18 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (widget_changed): editable -> target_editable (e_contact_editor_get_property): Same. (_email_arrow_pressed): Same. (enable_writable_fields): Same. (set_editable): Same. (contact_added_cb): Make sure source book is editable before trying to remove contact from there. (e_contact_editor_init): Set up source/target editability. (command_state_changed): Allow save only if target editable. Allow delete only if source editable. (e_contact_editor_set_property): Set editability flags for source/target. * gui/contact-editor/e-contact-editor.h: Add source_editable, target_editable flags in place of old editable flag. svn path=/trunk/; revision=23986
* Update the contact's UID after normal add.Hans Petter Jansson2003-12-171-0/+2
| | | | | | | | | 2003-12-16 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (contact_added_cb): Update the contact's UID after normal add. svn path=/trunk/; revision=23959
* Make a public function that shows an error dialog, which can be used whenHans Petter Jansson2003-12-172-31/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-16 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook.c (addressbook_show_load_error_dialog): Make a public function that shows an error dialog, which can be used when a source fails to load. (book_open_cb): Call addressbook_show_load_error_dialog () on error. (set_prop): Don't reuse the book when loading a new source. This was confusing the contact-editor, which gets the book passed in. * gui/contact-editor/e-contact-editor.c (e_contact_editor_class_init): Make "source_book" and "target_book" distinct properties. (new_target_cb): Implement. (source_selected): Implement. (contact_moved_cb): Implement. (contact_added_cb): Handle the case where source_book != target_book as a move - if the add was successful, remove contact from source book. (save_contact): Handle case where source_book != target_book. (delete_cb): "book" renamed to "source_book". (e_contact_editor_init): Set up source_selected signal. (e_contact_editor_dispose): Dispose of both source and target books. (e_contact_editor_new): "book" renamed to "source_book". (e_contact_editor_set_property): If a source book is set, and we don't have a target book, make target_book == source_book. Allow setting target book, and base editability on that. If we're editing an existing contact, treat book change as a change, and update command state. (e_contact_editor_get_property): Allow getting target book. (set_source_field): Indicate the selected book. svn path=/trunk/; revision=23958
* Implement. Makes the source menu reflect the source for the current book.Hans Petter Jansson2003-12-171-0/+14
| | | | | | | | | 2003-12-16 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (set_source_field): Implement. Makes the source menu reflect the source for the current book. svn path=/trunk/; revision=23955
* Implement. Creates source selection option menu.Hans Petter Jansson2003-12-172-0/+66
| | | | | | | | | | | | | 2003-12-16 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_create_source_option_menu): Implement. Creates source selection option menu. * gui/contact-editor/contact-editor.glade: Add source selection custom widget. svn path=/trunk/; revision=23953
* Implement. (text_to_address): Implement, using EAddressWestern.Hans Petter Jansson2003-12-162-76/+173
| | | | | | | | | | | | | | | | | | | | | | 2003-12-15 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (address_to_text): Implement. (text_to_address): Implement, using EAddressWestern. (address_text_changed): Adapt to EContactAddress. (full_addr_clicked): Ditto. Fix field IDs. (e_contact_editor_init): Init address_choice. (_email_arrow_pressed): Fix field IDs. (_address_arrow_pressed): Adapt to EContactAddress and fix field IDs. (find_address_mailing): Leave out for now. Addresses don't have flags anymore... (set_fields): Adapt to EContactAddress and fix field IDs. Make sure changes to other widgets don't make us go back to the first listed address. (set_address_field): Adapt to EContactAddress and fix field IDs. (enable_writable_fields): Ditto. (fill_in_info): Disable find_address_mailing () for now. svn path=/trunk/; revision=23947
* Make "address" a boxed type. (e_contact_editor_address_init): Set addressHans Petter Jansson2003-12-112-49/+43
| | | | | | | | | | | | | | | | | | | | 2003-12-10 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_class_init): Make "address" a boxed type. (e_contact_editor_address_init): Set address to NULL. (e_contact_editor_address_dispose): Free address. (e_contact_editor_address_new): Take an EContactAddress. (e_contact_editor_address_set_property): Re-implement setting the address property. (e_contact_editor_address_get_property): Ditto for getting. (fill_in_info): Enable, use EContactAddress fields. (extract_info): Ditto. * gui/contact-editor/e-contact-editor-address.h: Re-enable the address field, as EContactAddress. svn path=/trunk/; revision=23923
* Remove hard coded disable deprecated flagsJP Rosevear2003-12-071-3/+0
| | | | | | | | 2003-12-06 JP Rosevear <jpr@ximian.com> * */Makefile.am: Remove hard coded disable deprecated flags svn path=/trunk/; revision=23658
* turn on deprecated gtk and libgnomeui stuffJP Rosevear2003-11-261-1/+0
| | | | | | | | | | | | | | 2003-11-26 JP Rosevear <jpr@ximian.com> * gui/widgets/Makefile.am: turn on deprecated gtk and libgnomeui stuff * gui/component/select-names/Makefile.am: turn on deprecated gtk stuff * gui/contact-editor/Makefile.am: ditto svn path=/trunk/; revision=23492
* don't include the c marshaller file twiceJP Rosevear2003-11-071-1/+0
| | | | | | | | | | | 2003-11-07 JP Rosevear <jpr@ximian.com> * gui/contact-editor/Makefile.am: don't include the c marshaller file twice * gui/widgets/Makefile.am: ditto svn path=/trunk/; revision=23221
* make sure the marshal header is in the source listJP Rosevear2003-11-071-0/+1
| | | | | | | | | | | | | | | 2003-11-07 JP Rosevear <jpr@ximian.com> * gui/widgets/Makefile.am: make sure the marshal header is in the source list * gui/component/select-names/Makefile.am: ditto * gui/contact-editor/Makefile.am: ditto * gui/contact-list-editor/Makefile.am: ditto svn path=/trunk/; revision=23219
* Various changes to merge in evolution-data-server reliance.JP Rosevear2003-11-075-7/+7
| | | | svn path=/trunk/; revision=23206
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-2212-794/+441
| | | | svn path=/trunk/; revision=22965
* Chain.Hans Petter Jansson2003-08-142-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-08-12 Hans Petter Jansson <hpj@ximian.com> * backend/ebook/e-destination.c (e_destination_dispose): Chain. * gui/component/e-address-widget.c (e_address_widget_destroy): Chain. Prevent double frees. Prevent double GSource removal. * gui/component/e-cardlist-model.c (e_cardlist_model_class_init): Store parent class. (e_cardlist_model_dispose): Chain. Prevent double frees and unrefs. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_dispose): Chain. * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_dispose): Chain. * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_dispose): Chain. * gui/contact-list-editor/e-contact-list-model.c (contact_list_model_destroy): Chain. Prevent double frees and unrefs. * gui/widgets/e-addressbook-reflow-adapter.c (addressbook_dispose): Chain. (addressbook_finalize): Chain. * gui/widgets/e-addressbook-table-adapter.c (addressbook_dispose): Chain. * gui/widgets/e-addressbook-treeview-adapter.c (addressbook_destroy): Chain. Prevent double free. * gui/widgets/gal-view-minicard.c (gal_view_minicard_dispose): Chain. Prevent double free and detach. * gui/widgts/gal-view-treeview.c (gal_view_treeview_dispose): Chain. Prevent double free and detach. * printins/e-contact-print-style-editor.c (e_contact_print_stule_editor_destroy): Chain. Prevent double unref. svn path=/trunk/; revision=22229
* use EVO_MARSHAL_RULE Likewise Likewise Likewise Likewise LikewiseDan Winship2003-07-242-16/+5
| | | | | | | | | | | | | | | | | | * backend/ebook/Makefile.am: use EVO_MARSHAL_RULE * backend/pas/Makefile.am: Likewise * gui/component/select-names/Makefile.am: Likewise * gui/contact-editor/Makefile.am: Likewise * gui/contact-list-editor/Makefile.am: Likewise * gui/widgets/Makefile.am: Likewise * gui/contact-editor/e-contact-editor.c (e_contact_editor_class_init): s/ece_marshal/e_contact_editor_marshal/ * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_class_init): Likewise for ecle_marshal svn path=/trunk/; revision=21913
* in the EUrlEntry case just reassign widget. it'll be handled by theChris Toshok2003-06-241-1/+2
| | | | | | | | | | 2003-06-18 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (fill_in_field): in the EUrlEntry case just reassign widget. it'll be handled by the GtkEditable code below. Fixes #43841. svn path=/trunk/; revision=21514
* Fix lots of leaks, update for correct use of g_object_get. Some miscLarry Ewing2003-06-142-3/+10
| | | | | | | | | | | | | | | | | | | 2003-06-13 Larry Ewing <lewing@ximian.com> * gui/component/addressbook.c: * gui/component/e-cardlist-model.c: * gui/component/select-names/e-select-names-text-model.c: * gui/contact-editor/e-contact-editor.c: * gui/contact-editor/e-contact-save-as.c: * gui/contact-list-editor/e-contact-list-editor.c: * gui/widgets/e-addressbook-table-adapter.c: * gui/widgets/e-addressbook-util.c: * gui/widgets/e-addressbook-view.c: * gui/widgets/e-minicard-view.c: * gui/widgets/e-minicard.c: Fix lots of leaks, update for correct use of g_object_get. Some misc cleanups. svn path=/trunk/; revision=21442
* Added HIG-appropriate HIG-appropriate spacing, padding, accelerators.Anna Marie Dirks2003-05-191-6/+10
| | | | | | | | | 2003-05-19 Anna Marie Dirks <anna@ximian.com> * gui/contact-editor/e-contact-quick-add.c: Added HIG-appropriate HIG-appropriate spacing, padding, accelerators. Fixes bug #41210 svn path=/trunk/; revision=21254
* Added HIG-appropriate spacing, padding, capitalization and accelerators.Anna Marie Dirks2003-05-171-2/+2
| | | | | | | | | 2003-05-16 Anna Marie Dirks <anna@ximian.com> * gui/contact-editor/fulladdr.glade: Added HIG-appropriate spacing, padding, capitalization and accelerators. Fixes bug #41251 svn path=/trunk/; revision=21226
* Added HIG-appropriate spacing, padding, caps, title and accelerators.Anna Marie Dirks2003-05-171-8/+8
| | | | | | | | | | 2003-05-14 Anna Marie Dirks <anna@ximian.com> * gui/contact-editor/fullname.glade: Added HIG-appropriate spacing, padding, caps, title and accelerators. Fixes bug #41249, and also bug #41250.. svn path=/trunk/; revision=21225
* Added HIG-appropriate spacing, padding, capitalization and accelerators.Anna Marie Dirks2003-05-171-48/+49
| | | | | | | | | 2003-05-16 Anna Marie Dirks <anna@ximian.com> * gui/contact-editor/contact-editor.glade: Added HIG-appropriate spacing, padding, capitalization and accelerators. Fixes bug #41248. svn path=/trunk/; revision=21224
* replace the text_buffer_delete/text_buffer_insert withChris Toshok2003-05-151-23/+39
| | | | | | | | | | | | | | | 2003-05-14 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (full_addr_clicked): replace the text_buffer_delete/text_buffer_insert with set_buffer_set_text. call widget_changed if they clicked OK, so we actually mark the dialog changed. (fill_in_field): make this handle GtkTextViews, because for some reason that escapes rational thought GtkTextView's don't implement GtkEditable. fixes #42606. (extract_field): same. svn path=/trunk/; revision=21184
* handle the case where we haven't filled in the address yet. fixes #42620.Chris Toshok2003-05-151-0/+3
| | | | | | | | | | 2003-05-14 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (address_mailing_changed): handle the case where we haven't filled in the address yet. fixes #42620. svn path=/trunk/; revision=21182
* [ fixes #21499 ]Rodney Dawes2003-04-192-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-18 Rodney Dawes <dobey@ximian.com> [ fixes #21499 ] * gui/component/Makefile.am: * gui/component/addressbook.c: * gui/component/select-names/e-select-names-bonobo.c: * gui/contact-editor/Makefile.am: * gui/contact-editor/e-contact-editor.c: * gui/contact-list-editor/Makefile.am: * gui/contact-list-editor/e-contact-list-editor.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * gui/Makefile.am: * gui/calendar-commands.c: * gui/tasks-control.c: * gui/dialogs/Makefile.am: * gui/dialogs/comp-editor.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * Makefile.am: * e-msg-composer.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui (). Fixes bug #21499. * Makefile.am: * folder-browser-ui.c: * mail-signature-editor.c: * message-browser.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui (). Fixes bug #21499. * Makefile.am: * e-summary-factory.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * e-shell-view.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () [#21499] svn path=/trunk/; revision=20888
* [ fixes #41252 ] change title from "Check Address" to "Full Address".Chris Toshok2003-04-161-1/+1
| | | | | | | | | | 2003-04-15 Chris Toshok <toshok@ximian.com> [ fixes #41252 ] * gui/contact-editor/fulladdr.glade: change title from "Check Address" to "Full Address". svn path=/trunk/; revision=20848
* [ fix the contact editor so that the only time the address is parsed isChris Toshok2003-03-291-36/+30
| | | | | | | | | | | | | | | | | | 2003-03-28 Chris Toshok <toshok@ximian.com> [ fix the contact editor so that the only time the address is parsed is when the user types in the address GtkTextView. ] * gui/contact-editor/e-contact-editor.c (address_mailing_changed): make this use delivery addresses instead of labels. (full_addr_clicked): same. (find_address_mailing): same. * backend/ebook/e-card-simple.c (e_card_simple_set_delivery_address): make this operate similar to e_card_simple_set_address: it sets both the delivery address and the label for the address. svn path=/trunk/; revision=20567
* [ fixes bug #40026 ] add EContactEditor arg, and block/unblock signalsChris Toshok2003-03-241-9/+16
| | | | | | | | | | | | | | 2003-03-23 Chris Toshok <toshok@ximian.com> [ fixes bug #40026 ] * gui/contact-editor/e-contact-editor.c (set_field): add EContactEditor arg, and block/unblock signals around the gtk_entry_set_text, since that generates a "changed" signal which causes problems. (set_phone_field): take and pass along an EContactEditor arg. (set_fields): pass editor to set_field. svn path=/trunk/; revision=20474
* nuke.Chris Toshok2003-03-244-49/+73
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-23 Chris Toshok <toshok@ximian.com> * gui/contact-editor/arrow.png: nuke. * gui/contact-editor/Makefile.am (EXTRA_DIST): remove images_DATA (images_DATA): nuke, don't need it anymore. * gui/contact-editor/e-contact-editor.c (connect_arrow_button_signal): rename _replace_button to this. we no longer create an image, as it's a GtkArrow in the .glade file now. (connect_arrow_button_signals): rename _replace_buttons to this. no longer pass the arrow.png's to _replace_button. (e_contact_editor_init): _replace_buttons -> connect_arrow_button_signals. (_arrow_pressed): remove some dead code, and some args that aren't used. (_phone_arrow_pressed): track change to _arrow_pressed. (_email_arrow_pressed): same. (_address_arrow_pressed): same. svn path=/trunk/; revision=20473
* use set_entry_changed_signal_email for the email entry so the email getsChris Toshok2003-03-141-1/+10
| | | | | | | | | | | | 2003-03-13 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (set_entry_changed_signals): use set_entry_changed_signal_email for the email entry so the email gets saved out. (set_entry_changed_signal_email): new function, analogous to set_entry_changed_signal_phone, but for email. svn path=/trunk/; revision=20282
* Build libecontacteditor as an uninstalled shared library.Dan Winship2003-03-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | * gui/contact-editor/Makefile.am: Build libecontacteditor as an uninstalled shared library. * gui/contact-list-editor/Makefile.am: Likewise for libecontactlisteditor * gui/merging/Makefile.am: and libecardmerging * gui/search/Makefile.am: and libeaddressbooksearch * gui/widgets/Makefile.am: and libeminicard * printing/Makefile.am: and libecontactprint * gui/component/Makefile.am (libevolution_addressbook_la_LIBADD): Update for new library names (and get rid of libtool portability warnings). svn path=/trunk/; revision=20112
* Remove these from here; talking to the mailer doesn't really belong at theDan Winship2003-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * backend/ebook/e-card.c (e_card_list_send, e_card_send): Remove these from here; talking to the mailer doesn't really belong at the libebook level anyway. * backend/ebook/Makefile.am: Remove Evolution-Composer CORBA stuff, which fixes some linking problems on OS X. * gui/widgets/e-addressbook-util.c (e_addressbook_send_card_list, e_addressbook_send_card): Move from e-card.c and rename. * gui/widgets/Makefile.am: move Evolution-Composer CORBA stuff here * gui/widgets/e-addressbook-view.c (send_as, send_to, e_addressbook_view_send, e_addressbook_view_send_to): Update for new function names. * gui/contact-list-editor/e-contact-list-editor.c (file_send_as_cb, file_send_to_cb): Likewise * gui/contact-editor/e-contact-editor.c (file_send_as_cb, file_send_to_cb): Likewise svn path=/trunk/; revision=20103
* use g_signal_connect here, not swapped... although since we pass theChris Toshok2003-02-282-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-27 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (book_open_cb): use g_signal_connect here, not swapped... although since we pass the widget as the closure it really doesn't matter. (load_uri_auth_cb): use a GtkDialog here. (search_result): same. * gui/component/select-names/e-simple-card-bonobo.h: add prototype for e_simple_card_bonobo_construct to fix warning. * gui/widgets/e-addressbook-view.c (create_alphabet): remove call to gtk_widget_set_usize. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_init): gtk_window_set_policy => gtk_window_set_resizable. * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_init): same. svn path=/trunk/; revision=20095
* revert previous changeDan Winship2003-02-201-3/+3
| | | | svn path=/trunk/; revision=19968
* Build the subparts as (noinst) shared libraries rather than staticDan Winship2003-02-201-3/+3
| | | | | | | | | | | | | * gui/component/Makefile.am: * gui/contact-editor/Makefile.am: * gui/contact-list-editor/Makefile.am: * gui/search/Makefile.am: * gui/widgets/Makefile.am: * printing/Makefile.am: Build the subparts as (noinst) shared libraries rather than static libraries, so they can be portably linked into libevolution-addressbook.so svn path=/trunk/; revision=19963
* ignore more generated stuffChris Toshok2003-02-201-0/+1
| | | | svn path=/trunk/; revision=19960
* (INCLUDES): Use $(evolutionuidir)Ettore Perazzoli2003-02-201-1/+1
| | | | | | instead of $(evolution_uidir). [Pointed out by Grzegorz Goawski.] svn path=/trunk/; revision=19946
* [ fixes bug #33066 ] new function (set_entry_changed_signals): callChris Toshok2003-02-112-46/+74
| | | | | | | | | | | | | | | | | | | | | | 2003-02-10 Chris Toshok <toshok@ximian.com> [ fixes bug #33066 ] * gui/contact-editor/e-contact-editor.c (set_urlentry_changed_signal_field): new function (set_entry_changed_signals): call set_urlentry_changed_signal_field for entry-web, entry-caluri, and entry-fburl. (fill_in_field): add handling for EUrlEntry's. (extract_field): same. (enable_widget): same. (e_contact_editor_create_date): show the widget. (e_contact_editor_create_web): same, create a url entry. (set_urlentry_changed_signal_field): new function * gui/contact-editor/contact-editor.glade: entry-web, entry-caluri, and entry-fburl are all custom widgets now. svn path=/trunk/; revision=19879
* check the status, not the book, and unref the book here.Chris Toshok2003-02-071-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-06 Chris Toshok <toshok@ximian.com> * gui/component/e-address-popup.c (email_table_save_card_cb): check the status, not the book, and unref the book here. (contact_editor_cb): same. (start_query): unref the book in the failure case. (add_card_idle_cb): addressbook_load_default_book returns void now. (edit_contact_info_cb): same. (e_address_popup_query): same. * gui/component/addressbook.c (control_activate_cb): track change to addressbook_load_uri return type. (set_prop): same. (addressbook_load_uri): return type is void now. (addressbook_load_default_book): same. * gui/component/addressbook.h: addressbook_load_uri/addressbook_load_default_book return void now. * conduit/address-conduit.c (start_addressbook_server): e_book_load_default_book returns void now. * backend/ebook/e-book-util.h: track changes to return types. * backend/ebook/e-book-util.c (e_book_load_address_book_by_uri): fallout from change to e_book_load_uri. return type for this function is void now too. (e_book_use_address_book_by_uri): same. (e_book_use_default_book): same. (e_book_load_default_book): same. (got_uri_book_cb): if unsuccessful and book is non-NULL, unref it here. (got_default_book_cb): same. * backend/ebook/e-book.c (e_book_load_uri): no longer return a gboolean. any error is communicated to the callback. * backend/ebook/e-book.h: e_book_load_uri no longer returns a gboolean (it's void.) * backend/ebook/evolution-ldif-importer.c (ebook_create): track change to the e_book_load_uri family of functions. * backend/ebook/test-client-list.c (ebook_create): same. * backend/ebook/test-client.c (ebook_create): same. * backend/ebook/load-pine-addressbook.c (ebook_create): same. * backend/ebook/evolution-vcard-importer.c (ebook_create): same. svn path=/trunk/; revision=19839
* Remove some cruft. rename ICONSDIR to IMAGESDIR. (images_DATA): InstallDan Winship2003-02-065-32/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/contact-editor/Makefile.am (INCLUDES): Remove some cruft. rename ICONSDIR to IMAGESDIR. (images_DATA): Install arrow.png in imagesdir instead of privdatadir. * gui/contact-editor/e-contact-quick-add.c: #include <string.h> * gui/contact-editor/e-contact-editor.c: #include <string.h> (e_contact_editor_init): s/EVOLUTION_ICONSDIR/EVOLUTION_IMAGESDIR/ (e_contact_editor_new): s/gtk_object_ref/g_object_ref/ (_replace_button): Look in imagesdir, not privdatadir (_phone_arrow_pressed): Remove call to deprecated gtk_check_menu_item_set_show_toggle. (_email_arrow_pressed): Likewise (_address_arrow_pressed): Likewise (set_address_field): Remove unused variable (enable_widget): s/gtk_entry_set_editable/gtk_editable_set_editable/ * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_init): s/EVOLUTION_ICONSDIR/EVOLUTION_IMAGESDIR (e_contact_editor_address_set_property): s/gtk_entry_set_editable/gtk_editable_set_editable/ * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_init): s/EVOLUTION_ICONSDIR/EVOLUTION_IMAGESDIR (e_contact_editor_fullname_set_property): Likewise. svn path=/trunk/; revision=19781
* Replace deprecated glade_gnome_init() with glade_init().Dan Winship2003-02-061-1/+1
| | | | | | | | | | | | | * gui/component/addressbook-config.c (main): Replace deprecated glade_gnome_init() with glade_init(). * gui/contact-editor/test-editor.c (main): Likewise. * printing/test-contact-print-style-editor.c (main): Likewise. * printing/test-print.c (main): Likewise. svn path=/trunk/; revision=19760
* [ pull forward Jack Jia's fix for #34900 ] use a weak ref for the fileChris Toshok2003-02-041-9/+4
| | | | | | | | | | | | | | | 2003-02-03 Chris Toshok <toshok@ximian.com> [ pull forward Jack Jia's fix for #34900 ] * gui/contact-editor/e-contact-save-as.c (e_contact_save_as): use a weak ref for the file selector. (e_contact_list_save_as): same. (destroy_it): rewrite this as a weak ref notify function. (close_it): remove frees of the info (it's freed in the weak ref function). (save_it): same. svn path=/trunk/; revision=19722
* add a scrolled window (SHADOW_IN) around the address textview.Chris Toshok2003-01-281-25/+36
| | | | | | | | | 2003-01-27 Chris Toshok <toshok@ximian.com> * gui/contact-editor/contact-editor.glade: add a scrolled window (SHADOW_IN) around the address textview. svn path=/trunk/; revision=19649
* rename the category entry to entry-categories.Chris Toshok2003-01-272-3/+13
| | | | | | | | | | | | | 2003-01-26 Chris Toshok <toshok@ximian.com> * gui/contact-editor/contact-editor.glade: rename the category entry to entry-categories. * gui/contact-editor/e-contact-editor.c (set_entry_changed_signals): use the specialized "changed" signal handlers for entry-company and entry-fullname. svn path=/trunk/; revision=19640
* Remove definition; this is now in configure.in. Likewise. Likewise.Ettore Perazzoli2003-01-251-1/+0
| | | | | | | | | * gui/component/Makefile.am (iconsdir): Remove definition; this is now in configure.in. * gui/contact-editor/Makefile.am (iconsdir): Likewise. * gui/contact-list-editor/Makefile.am (iconsdir): Likewise. svn path=/trunk/; revision=19619
* Version using $(BASE_VERSION). (etspecdir): Likewise. (iconsdir):Ettore Perazzoli2003-01-232-26/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/select-names/Makefile.am (gladedir): Version using $(BASE_VERSION). (etspecdir): Likewise. (iconsdir): Likewise. * gui/contact-list-editor/Makefile.am (iconsdir): Version using $(BASE_VERSION). (gladedir): Likewise. * gui/merging/Makefile.am (gladedir): Version using $(BASE_VERSION). * gui/search/Makefile.am (ruledir): Version using $(BASE_VERSION). * gui/component/Makefile.am (INCLUDES): Update EVOLUTION_IMAGESDIR to be versioned through $(BASE_VERSION). * gui/widgets/e-addressbook-view.c (init_collection): Use EVOLUTION_GALVIEWSDIR. * gui/widgets/Makefile.am (INCLUDES): Define EVOLUTION_GALVIEWSDIR and update EVOLUTION_IMAGESDIR. svn path=/trunk/; revision=19551
* Change dialog from Yes/No/Cancel to Discard/Cancel/Save to match the HIG.Ettore Perazzoli2003-01-155-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/widgets/e-addressbook-util.c (e_addressbook_prompt_save_dialog): Change dialog from Yes/No/Cancel to Discard/Cancel/Save to match the HIG. * gui/search/e-addressbook-search-dialog.c (e_addressbook_search_dialog_init): Change dialog from OK/Cancel to Cancel/OK to match the HIG. * gui/contact-editor/e-contact-save-as.c (file_exists): Change dialog from Overwrite/Cancel to Cancel/Overwrite to match the HIG. * gui/contact-editor/e-contact-quick-add.c (build_quick_add_dialog): Fix typo s/reponse/response/. Also change the dialog to be Edit/Cancel/OK instead of OK/Edit/Cancel to match the HIG. * gui/contact-editor/e-contact-editor.c (e_contact_editor_confirm_delete): Make alert cancel/delete instead of delete/cancel to match the HIG. * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_init): Make dialog Cancel/OK instead of OK/Cancel to match the HIG. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_init): Make dialog Cancel/OK instead of OK/Cancel to match the HIG. * gui/component/select-names/e-select-names.c (e_select_names_init): Make dialog Cancel/OK instead of OK/Cancel to match the HIG. svn path=/trunk/; revision=19472
* remove the select names stuff (the Related Contacts button/entry.)Chris Toshok2003-01-103-2537/+2285
| | | | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.[ch]: remove the select names stuff (the Related Contacts button/entry.) * gui/contact-editor/contact-editor.glade: same. svn path=/trunk/; revision=19376
* $(datadir)/evolution/images instead of $(datadir)/images/evolution.Ettore Perazzoli2003-01-091-1/+1
| | | | | | | | | | * gui/component/Makefile.am: $(datadir)/evolution/images instead of $(datadir)/images/evolution. * gui/contact-editor/Makefile.am: Likewise. * gui/contact-list-editor/Makefile.am (iconsdir): Likewise. * gui/widgets/Makefile.am: Likewise. svn path=/trunk/; revision=19295
* drop use of "font" arg. (get_left_width): use pango to calculate thisChris Toshok2002-12-196-66/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-18 Chris Toshok <toshok@ximian.com> * gui/widgets/e-minicard.c (e_minicard_realize): drop use of "font" arg. (get_left_width): use pango to calculate this instead of a GdkFont. * gui/widgets/e-minicard-view.c: drop include of e-unicode.h. * gui/widgets/e-minicard-label.c (e_minicard_label_construct): don't need to create the font anymore. * gui/search/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/search/e-addressbook-search-dialog.c (e_addressbook_search_dialog_new): use g_object_new instead of gtk_type_new. * gui/merging/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/contact-list-editor/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/contact-list-editor/e-contact-list-editor.c (is_named): strdup (or not, if we don't need to save the value) instead of using the e_utf8 functions. (fill_in_info): same. * gui/contact-editor/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/contact-editor/e-contact-save-as.c (e_contact_save_as): strdup (or not, if we don't need to save the value) instead of using the e_utf8 functions. (e_contact_list_save_as): same. * gui/contact-editor/e-contact-quick-add.c (clicked_cb): strdup (or not, if we don't need to save the value) instead of using the e_utf8 functions. (build_quick_add_dialog): same. * gui/contact-editor/e-contact-editor.c (phone_entry_changed): strdup (or not, if we don't need to save the value) instead of using the e_utf8 functions. (file_as_set_style): same. (name_entry_changed): same. (full_name_clicked): same. (categories_clicked): same. (set_field): same. (fill_in_field): same. (fill_in_single_field): same. (extract_field): same. (extract_single_field): same. * gui/contact-editor/e-contact-editor-fullname.c (extract_field): just strdup, it's already utf8. * gui/contact-editor/e-contact-editor-address.c (extract_field): they're all entries, use GTK_ENTRY foo here. * gui/component/select-names/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/component/select-names/e-select-names.c (e_select_names_add_section): remove the extra utf8_from_locale_string stuff. * gui/component/select-names/e-select-names-popup.c (set_uiinfo_label): gtk_container_children -> gtk_container_get_children, and remove the extra utf8 stuff. * gui/component/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/component/addressbook-storage.c (addressbook_storage_init_source_uri): g_string_sprintfa -> g_string_append_printf. * gui/component/addressbook-config.c (focus_help): gtk_notebook_set_page -> gtk_notebook_set_current_page. (addressbook_source_dialog_set_source): same. (auth_optionmenu_activated): gtk_container_children -> gtk_container_get_children. (ssl_optionmenu_activated): same. (ssl_optionmenu_selected): same, and gtk_notebook_set_page -> gtk_notebook_set_current_page. (scope_optionmenu_activated): same. (set_advanced_button_state): same. (addressbook_ldap_init): hook "response" to gtk_widget_destroy to make the dialog go away when clicked. (addressbook_ldap_auth): same. (addressbook_root_dse_query): same. (do_ldap_root_dse_query): same. (addressbook_config_control_new): fix return type and cast. (main): remove call to gtk_widget_push_visual. * gui/component/addressbook-config.h: addressbook_config_control_new returns a BonoboObject, not a BonoboControl. * gui/component/addressbook.c: remove e-unicode.h include. * backend/pas/Makefile.am (INCLUDES): Add -DLIBGNOME_DISABLE_DEPRECATED. * backend/ebook/Makefile.am (INCLUDES): Add -DLIBGNOME_DISABLE_DEPRECATED. * backend/ebook/e-card.c (e_card_get_property): remove misleading comment. svn path=/trunk/; revision=19160
* gnomedialog -> gtkdialog stuff. print dialog is a gtkdialog now.Not Zed2002-12-022-0/+2
| | | | | | | | | | | | | | | 2002-12-02 Not Zed <NotZed@Ximian.com> * gui/widgets/e-addressbook-view.c (e_contact_print_button): gnomedialog -> gtkdialog stuff. print dialog is a gtkdialog now. * gui/contact-editor/e-contact-editor.c: include gtkstock.h 2002-11-27 Not Zed <NotZed@Ximian.com> * gui/contact-editor/e-contact-editor-address.c: #include gtkstock.h svn path=/trunk/; revision=18971
* add include for gtkstock.h.Chris Toshok2002-11-272-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-26 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-quick-add.c: add include for gtkstock.h. * gui/contact-list-editor/e-contact-list-model.c (e_contact_list_model_add_destination): add pre_change call. (e_contact_list_model_remove_row): same. (e_contact_list_model_remove_all): same. * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_new): ref/sink the contact list editor so we don't get the floating unref warning from gtk. * gui/contact-editor/e-contact-editor.c (e_contact_editor_new): ref/sink the contact editor so we don't get the floating unref warning from gtk. (e_contact_editor_init): use g_build_filename instead of g_concat_dir_and_file. * gui/widgets/e-minicard-label.c (e_minicard_label_resize_children): use MAX (value, 0) to make sure we aren't passing negative values for clip-widths. * gui/widgets/e-minicard.c (e_minicard_realize): use MAX (value, 0) to make sure we aren't passing negative values for widths. * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): use g_build_filename. svn path=/trunk/; revision=18946
* [ roll forward from the 1.2 branch. fixes #25540, part of #29630, as wellChris Toshok2002-11-256-982/+1146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-23 Chris Toshok <toshok@ximian.com> [ roll forward from the 1.2 branch. fixes #25540, part of #29630, as well as other selection issues in the contact editor and ACL issues in the ldap backend ] * backend/pas/pas-backend-ldap.c (check_schema_support): reset the schema check state to FALSE if the read returned nothing (and the user had not authenticated). we'll requery if/when they auth. (query_ldap_root_dse): free the schema dn before assigning over it. (pas_backend_ldap_connect): added a diagnostic warning about the root dse query failing in anonymous mode (if it in fact did fail.) (pas_backend_ldap_process_authenticate_user): if we successfully authed, requery the root dse to pick up any attributes that might be protected, and retry the schema query if that failed before. * gui/contact-editor/e-contact-editor.c (full_name_clicked): set the dialog's editable state based on the new field "fullname_editable", and only do the Ok button handling if this flag is TRUE. (full_addr_clicked): set the dialog's editable state based on the editable state for the particular address (from editor->address_editable[]). also, only do the Ok button handling if this flag is TRUE. (_address_arrow_pressed): use the address_editable array to determine whether the address text and the mailing address checkbutton are sensitive. (enable_writable_fields): figure out if fullname_editable is TRUE/FALSE, also, init the address_editable flags based on the field list, and handle the address checkbutton. * gui/contact-editor/fulladdr.glade: change the label names to label-<name> to match {entry,combo}-<name>. * gui/contact-editor/fullname.glade: same. * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_class_init): rename ARG_IS_READ_ONLY to ARG_EDITABLE, to reflect the correct sense of the flag. (e_contact_editor_fullname_set_arg): same, and make the labels sensitive/insensitive depending on the editable state of the dialog. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_class_init): rename ARG_IS_READ_ONLY to ARG_EDITABLE, to reflect the correct sense of the flag. (e_contact_editor_address_set_arg): same, and make the labels sensitive/insensitive depending on the editable state of the dialog. svn path=/trunk/; revision=18910
* roll forward the fix for the contact editor.Chris Toshok2002-11-211-0/+5
| | | | | | | | | 2002-11-20 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c: roll forward the fix for the contact editor. svn path=/trunk/; revision=18874
* sink the popup. (e_contact_editor_build_email_ui): same.Chris Toshok2002-11-171-0/+6
| | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_build_phone_ui): sink the popup. (e_contact_editor_build_email_ui): same. (e_contact_editor_build_address_ui): same. * gui/component/addressbook-config.c (ldap_dialog_new): show everything from dialog->page down, so custom widgets show up. svn path=/trunk/; revision=18812
* push_in = FALSE, no clue why... :) (_arrow_pressed): callChris Toshok2002-11-131-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-12 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (_popup_position): push_in = FALSE, no clue why... :) (_arrow_pressed): call g_signal_stop_emission here, seems to fix things. * gui/component/select-names/e-select-names.c (e_select_names_init): fix warnings. * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_activate_dialog): fix warning. * gui/component/addressbook.c (forget_passwords_cb): remove the PENDING_PORT ifdef. (load_uri_auth_cb): same. (addressbook_authenticate): same. * gui/component/addressbook-factory.c (main): same. * gui/component/addressbook-storage.c (load_source_data): be silent about text nodes if they contain nothing but whitespace. svn path=/trunk/; revision=18728
* change around a little, still ifdefed though.Chris Toshok2002-11-125-204/+57
| | | | | | | | | | | | | | | | | | | 2002-11-11 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (_arrow_pressed): change around a little, still ifdefed though. * gui/contact-editor/e-contact-save-as.c (file_exists): same. (save_it): deal with the GtkDialog response ids. * gui/contact-editor/e-contact-editor.c (e_contact_editor_confirm_delete): just build the dialog here (using gtk_message_dialog*). * gui/contact-editor/Makefile.am (glade_DATA): remove file-exists.glade and e-contact-editor-confirm-delete.glade. svn path=/trunk/; revision=18712
* oops, missed these casts.Chris Toshok2002-11-091-3/+2
| | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-reflow-adapter.c (addressbook_get_property): oops, missed these casts. * gui/component/addressbook.c (get_master_list): remove the PENDING_PORT_WORK ifdef, just ported ECategoriesMasterList. (make_suboptions): same. * gui/contact-editor/e-contact-editor.c (categories_clicked): same. svn path=/trunk/; revision=18684
* port work.Chris Toshok2002-11-088-278/+233
| | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor-address.[ch]: port work. * gui/contact-editor/e-contact-editor-fullname.[ch]: port work. * gui/contact-editor/e-contact-editor.[ch]: port work. * gui/contact-editor/e-contact-quick-add.c: port work. * gui/contact-editor/e-contact-save-as.c: port work. svn path=/trunk/; revision=18667
* more porting work.Chris Toshok2002-11-0812-3744/+3735
| | | | | | | | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c: more porting work. * e-contact-editor-fullname.[ch]: more porting work. * e-contact-editor.c: more porting work. * e-contact-quick-add.c: more porting work. * e-contact-save-as.c: more porting work. * test-editor.c: more porting work. * e-contact-editor-confirm-delete.glade, file-exists.glade, fulladdr.glade, fullname.glade: run these through libglade-convert. svn path=/trunk/; revision=18663
* ignore the marshal generated stuff.Chris Toshok2002-11-0611-237/+278
| | | | | | | | | | | | | | | | | | | | | | | | 2002-11-05 Chris Toshok <toshok@ximian.com> * gui/contact-editor/.cvsignore: ignore the marshal generated stuff. * gui/contact-editor/Makefile.am: typical port stuff. add marshaller generation foo, dist it... * gui/contact-editor/e-contact-editor-address.[ch]: Port to GObject/gnome2. * gui/contact-editor/e-contact-editor-fullname.c: Port to GObject/gnome2. * gui/contact-editor/e-contact-editor.c: Port to GObject/gnome2. * gui/contact-editor/e-contact-quick-add.c: Port to GObject/gnome2. * gui/contact-editor/e-contact-save-as.[ch]: Port to GObject/gnome2. * gui/contact-editor/test-editor.c: Port to GObject/gnome2. svn path=/trunk/; revision=18589
* [ fixes #32144 ] convert the name to the gtk locale before saving.Chris Toshok2002-10-221-3/+9
| | | | | | | | | | | 2002-10-20 Chris Toshok <toshok@ximian.com> [ fixes #32144 ] * gui/contact-editor/e-contact-save-as.c (e_contact_save_as): convert the name to the gtk locale before saving. (e_contact_list_save_as): same. svn path=/trunk/; revision=18403
* [ probable fix for #25477, and memory leak fix ] if the dialog isn't inChris Toshok2002-10-211-0/+5
| | | | | | | | | | | | | | | 2002-10-19 Chris Toshok <toshok@ximian.com> [ probable fix for #25477, and memory leak fix ] * gui/contact-editor/e-contact-editor.c (supported_fields_cb): if the dialog isn't in the list of all dialogs it's been destroyed so just return here. * backend/ebook/e-book.c (e_book_do_response_get_supported_fields): plug leak of resp->fields. svn path=/trunk/; revision=18396
* [ fixes #27521 ] always unref the contact editor when we get theChris Toshok2002-09-281-3/+3
| | | | | | | | | | | 2002-09-27 Chris Toshok <toshok@ximian.com> [ fixes #27521 ] * gui/contact-editor/e-contact-quick-add.c (editor_closed_cb): always unref the contact editor when we get the editor_closed signal. svn path=/trunk/; revision=18255
* [ fixes the other half of #17336 ] parse the name when we're asked to setChris Toshok2002-09-121-6/+9
| | | | | | | | | | | 2002-09-11 Chris Toshok <toshok@ximian.com> [ fixes the other half of #17336 ] * gui/contact-editor/e-contact-quick-add.c (quick_add_set_name): parse the name when we're asked to set it, so the full name doesn't get stored as (potentially) "Last, First" in the card. svn path=/trunk/; revision=18051
* [ fixes part of #17336 ] get the window title from the .glade file, andChris Toshok2002-09-122-0/+22
| | | | | | | | | | | | | | 2002-09-11 Chris Toshok <toshok@ximian.com> [ fixes part of #17336 ] * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_init): get the window title from the .glade file, and supply a suitable wm icon. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_init): same. svn path=/trunk/; revision=18050
* [ fixes #25038 ] need to have EVOLUTION_ICONSDIR defined.Chris Toshok2002-08-292-0/+10
| | | | | | | | | | | | | | | | | | | | | | 2002-08-29 Chris Toshok <toshok@ximian.com> [ fixes #25038 ] * gui/contact-editor/Makefile.am (INCLUDES): need to have EVOLUTION_ICONSDIR defined. * gui/contact-list-editor/Makefile.am (INCLUDES): same. * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): set the window icon to the contact mini icon. * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_init): set the window icon to the new contact list icon. * gui/widgets/e-minicard.c (LIST_ICON_FILENAME): change to (the prettier, imo) "contact-list-16.png" svn path=/trunk/; revision=17915
* Add include lines to get ebook headers relative to <ebook/foo.h>, notPeter Williams2002-07-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-09 Peter Williams <peterw@ximian.com> * tools/Makefile.am (INCLUDES): Add include lines to get ebook headers relative to <ebook/foo.h>, not "foo.h". addressbook: 2002-07-08 Peter Williams <peterw@ximian.com> * backend/ebook/e-book.h: Normalize includes to <ebook/foo.h>, so that the installed headers will work sanely. * backend/ebook/e-card-cursor.h: * backend/ebook/e-book-view.h: * backend/ebook/e-card-simple.h: * backend/ebook/e-card.h: * backend/ebook/e-destination.h: Same. * printing/Makefile.am (INCLUDES): add -Iaddressbook/backend to access the ebook headers. Also the builddir version to get the generated addressbook.h * gui/widgets/Makefile.am (INCLUDES): Same builddir fix. * gui/merging/e-card-merging.c: Fix an ebook #include. * gui/merging/Makefile.am (INCLUDES): Same idea. * gui/contact-list-editor/Makefile.am (INCLUDES): Same. * gui/contact-editor/Makefile.am (INCLUDES): Same builddir change. calendar: 2002-07-08 Peter Williams <peterw@ximian.com> * gui/Makefile.am (INCLUDES): Change the -I flags to get it to play nicely with the new Ebook header paradigm. * gui/dialogs/Makefile.am: Same. * gui/e-meeting-model.c: More of the same. * gui/dialogs/e-delegate-dialog.c: * gui/dialogs/e-meeting-model.c: * gui/dialogs/comp-editor-util.c: Fix include lines to get ebook headers. * pcs/Makefile.am: Same. composer: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Fix cflags for ebook header namespacing. importers: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am: Fix cflags to get at ebook headers correctly. * pine-importer.c: Fix include lines to get ebook headers the "right" way. * evolution-gnomecard-importer.c: Same. mail: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Add -I flags to get the ebook headers. svn path=/trunk/; revision=17411
* [ fixes bug #26130 ] pass ce->app as parent_window.Chris Toshok2002-06-163-7/+19
| | | | | | | | | | | | | | | | | | | | | 2002-06-15 Chris Toshok <toshok@ximian.com> [ fixes bug #26130 ] * gui/contact-editor/e-contact-editor.c (file_save_as_cb): pass ce->app as parent_window. * gui/contact-list-editor/e-contact-list-editor.c (file_save_as_cb): same . * gui/contact-editor/e-contact-save-as.c (e_contact_list_save_as): if a parent_window is specified, the file selector should be modal/transient for that window. (e_contact_save_as): same. * gui/contact-editor/e-contact-save-as.h: track prototype changes (addition of GtkWindow *parent_window to both calls.) svn path=/trunk/; revision=17199
* Don't enable fields if the editor isn't editable and theChristopher James Lahey2002-06-141-0/+4
| | | | | | | | | | | 2002-06-13 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-editor.c (enable_writable_fields): Don't enable fields if the editor isn't editable and the widget_field_mappings lists this field as being desensitize for read only. svn path=/trunk/; revision=17184
* New, quit handler for the EvolutionShellComponent. (add_creatable_item):Ettore Perazzoli2002-05-172-9/+48
| | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (request_quit): New, quit handler for the EvolutionShellComponent. (add_creatable_item): Set it up. * gui/contact-editor/e-contact-list-editor.c (e_contact_list_editor_request_close_all): New. (e_contact_list_editor_new): Put the contact editor in a static list and gtk_object_weakref() it. (contact_list_editor_destroy_notify): New, GtkDestroyNotify function for the contact editors. * gui/contact-editor/e-contact-editor.c (e_contact_editor_request_close_all): New. (e_contact_editor_new): Put the contact editor in a static list and gtk_object_weakref() it. (contact_editor_destroy_notify): New, GtkDestroyNotify function for the contact editors. svn path=/trunk/; revision=16934
* Enable the dropdown widgets even if the contact is not editable so thatChristopher James Lahey2002-05-141-1/+1
| | | | | | | | | | | 2002-05-13 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-editor.c (enable_writable_fields): Enable the dropdown widgets even if the contact is not editable so that you can view any email address, phone number, or postal address on read only contacts. svn path=/trunk/; revision=16767
* tidyJP Rosevear2002-02-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | 2002-02-04 JP Rosevear <jpr@ximian.com> * gui/contact-editor/e-contact-editor.c (find_address_mailing): tidy * conduit/address-conduit.c (addrconduit_load_configuration): load default address setting (addrconduit_save_configuration): save default address setting (e_addr_gui_new): new gui routine for conduit settings (e_addr_gui_fill_widgets): ditto (e_addr_gui_fill_config): ditto (e_addr_gui_destroy): ditto (e_addr_context_destroy): destroy the gui and new_cfg (local_record_from_ecard): reinstate commented out bits, determine which address to sync to pilot (ecard_from_remote_record): determine which address to sync from pilot (fill_widgets): put the gui widgets in (create_settings_window): create gui (save_settings): fill gui svn path=/trunk/; revision=15568
* if the shown address in the mailing address or there is no mailingJP Rosevear2002-02-043-6/+116
| | | | | | | | | | | | | | | | | | | | | | 2002-02-04 JP Rosevear <jpr@ximian.com> * gui/contact-editor/e-contact-editor.c (address_text_changed): if the shown address in the mailing address or there is no mailing address, set the default flag and make sure the button is checked (address_mailing_changed): set the flags properly when the mailing address changes (e_contact_editor_init): listen for the check button being toggled (find_address_mailing): find the address (if any) with the default flag (set_address_field): set the mailing address button appropriately (fill_in_info): find the mailing address * gui/contact-editor/e-contact-editor.h: add new class data member * gui/contact-editor/contact-editor.glade: show mailing address check button svn path=/trunk/; revision=15561
* Final cleanup for the CFLAGS and LIBS in the Makefiles.Ettore Perazzoli2002-01-281-23/+2
| | | | svn path=/trunk/; revision=15486
* #include <locale.h>.Ettore Perazzoli2002-01-241-0/+1
| | | | | | | * gui/contact-editor/e-contact-editor-address.c: #include <locale.h>. svn path=/trunk/; revision=15431
* Sort country list. Country list moves from fulladdr.glade toChristopher James Lahey2002-01-182-236/+285
| | | | | | | | | | | | 2002-01-18 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-editor-address.c (fill_in_countries), gui/contact-editor/fulladdr.glade: Sort country list. Country list moves from fulladdr.glade to e-contact-editor-address.c, but only a few country names have actually changed. Fixes Ximian bug #16545. svn path=/trunk/; revision=15354
* Choose the first filled in address field here. Fixes Ximian bug #2222.Christopher James Lahey2002-01-101-3/+25
| | | | | | | | | 2002-01-09 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-editor.c (set_fields): Choose the first filled in address field here. Fixes Ximian bug #2222. svn path=/trunk/; revision=15280
* we need to be able to disable non-labels here as well. since we're usingChris Toshok2001-12-072-4/+5
| | | | | | | | | | | | | | | | | | | | | | 2001-12-05 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (enable_writable_fields): we need to be able to disable non-labels here as well. since we're using enable_widget and not gtk_widget_set_sensitive, it's okay to handle entries/text's, etc, here. (widget_field_mappings): add label-caluri and label-fburl here. * gui/contact-editor/contact-editor.glade: change the label names for the freebusy/calendar urls to have more descriptive names, since we use them in e-contact-editor.c now. * backend/pas/pas-backend-ldap.c: add support for caluri/calendarURI, fburl/freeBusyURI. * backend/pas/evolutionperson.schema: add calendarURI and freeBusyURI. svn path=/trunk/; revision=14908
* Merging changes:Christopher James Lahey2001-12-063-21/+23
| | | | | | | | | | | | | | | | | 2001-12-04 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/contact-editor.glade: Fixed up the accelerators and such here. * gui/contact-editor/e-contact-editor.c (file_save_as_cb): Translate this string. (pixmaps): Added a pixmap for the ContactEditorSaveClose command. (setup_tab_order): Fixed up the tab order here. * gui/contact-editor/fulladdr.glade: Made the country combo focusable here. svn path=/trunk/; revision=14895
* Merged changes:Christopher James Lahey2001-12-011-0/+29
| | | | | | | | | 2001-11-28 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-editor-address.c (setup_tab_order): Setup the tab order here. Fixes Ximian bug #13751. svn path=/trunk/; revision=14840
* If our call to e_categories_new returns NULL, put up an error dialog andJon Trowbridge2001-11-131-0/+8
| | | | | | | | | | 2001-11-12 Jon Trowbridge <trow@ximian.com> * gui/contact-editor/e-contact-editor.c (categories_clicked): If our call to e_categories_new returns NULL, put up an error dialog and return. (Fixed #14780) svn path=/trunk/; revision=14672
* [ Fixes Ximian bug #14410 ] init in_async_call to FALSE. (card_added_cb):Chris Toshok2001-11-042-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-03 Chris Toshok <toshok@ximian.com> [ Fixes Ximian bug #14410 ] * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): init in_async_call to FALSE. (card_added_cb): turn the UI back on and set in_async_call to FALSE. (card_modified_cb): same. (card_deleted_cb): same. (save_card): turn off the UI by setting the dialog insensitive, and set in_async_call to TRUE. (delete_cb): same. (app_delete_event_cb): if we're in an async call don't let the window get deleted. * gui/contact-editor/e-contact-editor.h (struct _EContactEditor): add in_async_call flag for when we make a wombat call and need to disable the UI. * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_init): init in_async_call to FALSE. (list_added_cb): turn the UI back on and set in_async_call to FALSE. (list_modified_cb): same. (list_deleted_cb): same. (save_card): turn off the UI by setting the dialog insensitive, and set in_async_call to TRUE. (delete_cb): same. (app_delete_event_cb): if we're in an async call don't let the window get deleted. * gui/contact-list-editor/e-contact-list-editor.h (struct _EContactListEditor): add in_async_call flag for when we make a wombat call and need to disable the UI. svn path=/trunk/; revision=14582
* new function, a "Do you want to save changes?" dialog.Chris Toshok2001-10-301-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-29 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-util.c (e_addressbook_prompt_save_dialog): new function, a "Do you want to save changes?" dialog. * gui/widgets/e-addressbook-util.h: add prototype for e_addressbook_prompt_save_dialog. * gui/contact-editor/e-contact-editor.c (prompt_to_save_changes): call e_addressbook_prompt_save_dialog and save the card if they select save. return TRUE if the dialog should be closed, FALSE otherwise. (file_close_cb): check prompt_to_save_changes before closing the dialog. (app_delete_event_cb): same. * gui/contact-list-editor/e-contact-list-editor.c (prompt_to_save_changes): call e_addressbook_prompt_save_dialog and save the card if they select save. return TRUE if the dialog should be closed, FALSE otherwise. (file_close_cb): check prompt_to_save_changes before closing the dialog. (app_delete_event_cb): same. svn path=/trunk/; revision=14414
* Comment out spew.Jon Trowbridge2001-10-301-2/+2
| | | | | | | | | | | | | | | | | | 2001-10-29 Jon Trowbridge <trow@ximian.com> * conduit/address-conduit.c (pre_sync): Comment out spew. * gui/contact-list-editor/e-contact-list-editor.c (fill_in_info): Comment out spew. * gui/component/addressbook-component.c (destination_folder_handle_drop): Comment out spew. (get_dnd_selection): Comment out spew. * gui/widgets/e-addressbook-table-adapter.c (addressbook_set_value_at): Comment out spew. svn path=/trunk/; revision=14401
* change to EBookCallback signature, and unref the book.Chris Toshok2001-10-281-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-27 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-quick-add.c (merge_cb): change to EBookCallback signature, and unref the book. (quick_add_merge_card): use addressbook_load_default_book. (ce_have_book): change to EBookCallback signature, and unref the book. (edit_card): use addressbook_load_default_book. * gui/component/e-address-popup.c (email_table_save_card_cb): change to EBookCallback signature, and unref the book. (add_card_idle_cb): use addressbook_load_default_book, and call the cb if it fails. (e_address_popup_cleanup): fix type -- should be "pop->card = NULL", not "pop = NULL". (contact_editor_cb): change to EBookCallback signature. (edit_contact_info_cb): use addressbook_load_default_book. (start_query): change to EBookCallback signature. (e_address_popup_query): use addressbook_load_default_book. * gui/widgets/e-minicard-control.c (book_open_cb): change to EBookCallback signature, and unref the book. (save_in_addressbook): use addressbook_load_default_book instead of e_book_use_local_address_book. * gui/widgets/Makefile.am (INCLUDES): change includes since we're including addressbook.h which has it's own set of funky include path requirements. svn path=/trunk/; revision=14269
* Fixing the license text.Ettore Perazzoli2001-10-2811-11/+0
| | | | svn path=/trunk/; revision=14211
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-2711-22/+22
| | | | | | explicitly. svn path=/trunk/; revision=14188
* Don't assert, but check if ce->app != NULL, since this function canJon Trowbridge2001-10-271-6/+5
| | | | | | | | | | 2001-10-26 Jon Trowbridge <trow@ximian.com> * gui/contact-editor/e-contact-editor.c (close_dialog): Don't assert, but check if ce->app != NULL, since this function can (apparently) get called multiple times. svn path=/trunk/; revision=14162
* Remove bad dialog ref-counting crap.Jon Trowbridge2001-10-272-7/+8
| | | | | | | | | | | | | | | | | 2001-10-26 Jon Trowbridge <trow@ximian.com> * gui/contact-editor/e-contact-save-as.c (file_exists): Remove bad dialog ref-counting crap. * gui/contact-editor/e-contact-editor.c (save_card): Ref our EContactEditor, since we are holding a pointer to it in EditorCloseStruct. (card_modified_cb): Unref our EContactEditor when we free our EditorCloseStruct. (card_added_cb): Unref our EContactEditor when we free our EditorCloseStruct. svn path=/trunk/; revision=14157
* Put up an error dialog if there's an error while saving. If the personChristopher James Lahey2001-10-221-1/+16
| | | | | | | | | | | 2001-10-22 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-save-as.c (save_it): Put up an error dialog if there's an error while saving. If the person hits cancel on the "file exists" dialog, don't close the file selection dialog. Fixes Ximian bug #7055. svn path=/trunk/; revision=13865
* Fix memory leak.Jon Trowbridge2001-10-211-0/+1
| | | | | | | | | | | | | | | | | | 2001-10-20 Jon Trowbridge <trow@ximian.com> * gui/component/select-names/e-select-names-completion.c (name_style_query): Fix memory leak. * gui/widgets/e-addressbook-view.c (jump_to_letter): Free our string vector letter_v when we are done with it. * gui/contact-editor/e-contact-quick-add.c (edit_card): Unref our QuickAdd structure. * gui/component/e-address-popup.c (e_address_popup_construct): Unref our style after we are done with it. svn path=/trunk/; revision=13835
* We shouldn't leak the info returned by oaf_query.Jon Trowbridge2001-10-211-2/+2
| | | | | | | | | | | | | | | | 2001-10-20 Jon Trowbridge <trow@ximian.com> * backend/ebook/e-book.c (activate_factories_for_uri): We shouldn't leak the info returned by oaf_query. * gui/contact-editor/e-contact-quick-add.c (card_added_cb): Remove superfluous call to quick_add_unref. (editor_closed_cb): Remove superfluous call to quick_add_unref. * gui/component/select-names/e-select-names.c (esn_get_key_fn): We need to unref the card returned by e_addressbook_model_get_card. svn path=/trunk/; revision=13834
* Set the default file name here. Fixes Ximian bug #7053.Christopher James Lahey2001-10-151-4/+55
| | | | | | | | | | 2001-10-15 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-save-as.c (e_contact_save_as, e_contact_list_save_as): Set the default file name here. Fixes Ximian bug #7053. svn path=/trunk/; revision=13674
* Changed these to use the new ref and unref functions for ECard auxillaryChristopher James Lahey2001-10-123-26/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-11 Christopher James Lahey <clahey@ximian.com> * backend/ebook/e-card-simple.c (e_card_simple_destroy, fill_in_info, e_card_simple_sync_card, e_card_simple_set_phone, e_card_simple_set_address, e_card_simple_set_delivery_address, file_as_get_style, file_as_set_style, e_card_simple_set, e_card_simple_set_arbitrary), gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_destroy, e_contact_editor_address_set_arg, e_contact_editor_address_get_arg), gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_destroy, e_contact_editor_fullname_set_arg, e_contact_editor_fullname_get_arg), gui/contact-editor/e-contact-editor.c (phone_entry_changed, address_text_changed, name_entry_changed, full_name_clicked, full_addr_clicked, fill_in_info): Changed these to use the new ref and unref functions for ECard auxillary types. * backend/ebook/e-card-simple.h: Added a comment. * backend/ebook/e-card-types.h: Added ref_count field to all the types. * backend/ebook/e-card.c, backend/ebook/e-card.h: Added ref and unref functions here for all the ECard auxillary types. Removed the corresponding free functions. Switched to using these functions where appropriate. * gui/component/addressbook-factory.c: #include <e-util/e-passwords.h> * gui/component/addressbook.c (load_uri_cb): const correctify. * gui/component/select-names/e-select-names-manager.c, gui/component/select-names/e-select-names.c: #include <addressbook/gui/component/addressbook.h> * gui/widgets/e-addressbook-model.c (modify_card): Removed an unnecessary ref here. svn path=/trunk/; revision=13604