aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/minicard/e-minicard-view.c
Commit message (Collapse)AuthorAgeFilesLines
* Added widgets/e-reflow/Makefile. ReplacedChristopher James Lahey2000-09-141-432/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-09-13 Christopher James Lahey <clahey@helixcode.com> * configure.in: Added widgets/e-reflow/Makefile. Replaced addressbook/gui/minicard/Makefile with addressbook/gui/widgets/Makefile. From addressbook/ChangeLog: 2000-09-13 Christopher James Lahey <clahey@helixcode.com> * gui/widgets/*, gui/minicard/*: Moved gui/minicard to gui/widgets, except for e-reflow.c, e-reflow.h, e-reflow-sorted.c, and e-reflow-sorted.h. * gui/widgets/Makefile.am: Added e-reflow to the INCLUDES list and libereflow.a to a bunch of LDADD lines. * gui/component/Makefile.am (evolution_addressbook_LDADD): Added libereflow.a here. * gui/Makefile.am (SUBDIRS): Replaced minicard with widgets. From widgets/ChangeLog: 2000-09-13 Christopher James Lahey <clahey@helixcode.com> * Makefile.am (SUBDIRS): Added e-reflow. * e-reflow/e-reflow.c, e-reflow/e-reflow.h: Moved from addressbook/gui/minicard/. * e-reflow/Makefile.am, e-reflow/.cvsignore: New files for a new directory. svn path=/trunk/; revision=5414
* Changed this to use ECardSimple.Christopher James Lahey2000-08-201-2/+8
| | | | | | | | | | | | | | | | | 2000-08-19 Christopher James Lahey <clahey@helixcode.com> * conduit/address-conduit.c, conduit/address-conduit.h: Changed this to use ECardSimple. * contact-editor/e-contact-editor.c: Fixed a memory leak. * gui/component/addressbook.c: Added stuff to the right click menu. Activated the new search dialog that doesn't quite work yet. * gui/minicard/e-minicard-view.c: Fixed some run time warnings. svn path=/trunk/; revision=4882
* use x-evolution-any-field.Chris Toshok2000-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-08-08 Chris Toshok <toshok@helixcode.com> * gui/component/e-addressbook-model.c (e_addressbook_model_init): use x-evolution-any-field. * gui/component/addressbook.c (search_entry_activated): use x-evolution-any-field. (change_view_type): same. * gui/minicard/e-minicard-view.c (e_minicard_view_init): set query to x-evolution-any-field. * backend/pas/pas-backend-ldap.c (func_contains): support x-evolution-any-field for matching any evolution supported field. * backend/pas/pas-backend-file.c (compare_email): switch to using ECardSimple calls. (compare_phone): same. (compare_address): same. (entry_compare): switch to using ECardSimple calls, and support a 'x-evolution-any-field' wildcard field. (vcard_matches_search): use an ECardSimple. svn path=/trunk/; revision=4626
* Now this derives from GtkObject. It follows the same strategy as theFederico Mena Quintero2000-06-091-38/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-06-08 Federico Mena Quintero <federico@helixcode.com> * contact-editor/e-contact-editor.h (EContactEditor): Now this derives from GtkObject. It follows the same strategy as the EventEditor in the calendar. (EContactEditor): Added an is_new_card field so that we can know whether to add() or commit() the card. * contact-editor/e-contact-editor.c (e_contact_editor_get_type): Derive from GtkObject. (e_contact_editor_class_init): Likewise. (e_contact_editor_class_init): Added an "is_new_card" argument. (e_contact_editor_set_arg): Handle ARG_IS_NEW_CARD. (e_contact_editor_get_arg): Likewise. (e_contact_editor_new): Take in an is_new_arg argument and set it on the object. (e_contact_editor_init): Load the app widget into the app field of the EContactEditor structure. Create its UIHandler as well. (e_contact_editor_class_init): New "add_card", "commit_card", and "editor_closed" signals. * contact-editor/test-editor.c (main): Modified for the new API. (editor_closed_cb): Tweaked for the new API. Since this test program does not use Bonobo, it doesn't work, though. * gui/component/addressbook.c (new_contact_cb): Use the new contact editor API. (table_double_click): Ditto. * gui/minicard/e-minicard-view.c (e_minicard_view_event): Use the new contact editor API. * gui/minicard/e-minicard.c (e_minicard_event): Use the new contact editor API. svn path=/trunk/; revision=3479
* Made double click only work on the first button.Christopher James Lahey2000-06-021-0/+1
| | | | | | | | | 2000-06-02 Christopher James Lahey <clahey@helixcode.com> * gui/minicard/e-minicard-view.c, gui/minicard/e-minicard.c: Made double click only work on the first button. svn path=/trunk/; revision=3378
* return TRUE if opening a contact editor so that we don't get a "newChristopher James Lahey2000-06-021-2/+5
| | | | | | | | | 2000-06-01 Christopher James Lahey <clahey@helixcode.com> * gui/minicard/e-minicard.c: return TRUE if opening a contact editor so that we don't get a "new dialog" contact editor. svn path=/trunk/; revision=3342
* Made the alphabet buttons not focusable.Christopher James Lahey2000-05-311-0/+3
| | | | | | | | | | | | | | 2000-05-30 Christopher James Lahey <clahey@helixcode.com> * gui/component/alphabet.glade: Made the alphabet buttons not focusable. * gui/minicard/e-minicard-view.c: Made the "123" button work. * gui/minicard/e-reflow-sorted.c: Made all buttons past the last letter available work. svn path=/trunk/; revision=3285
* Added alphabet.glade and alphabet.glade.h.Christopher James Lahey2000-05-311-1/+29
| | | | | | | | | | | | | | | | 2000-05-30 Christopher James Lahey <clahey@helixcode.com> * gui/component/Makefile.am: Added alphabet.glade and alphabet.glade.h. * gui/component/addressbook.c, gui/component/alphabet.glade, gui/component/alphabet.glade.h: Added an alphabet bar. * gui/minicard/e-minicard-view.c, gui/minicard/e-minicard-view.h, gui/minicard/e-reflow-sorted.c, gui/minicard/e-reflow-sorted.h: Added the ability to just to a particular spot in the reflow. svn path=/trunk/; revision=3283
* Made double clicking create a new card. Set the empty message.Christopher James Lahey2000-05-301-0/+77
| | | | | | | | | | | | | | | | | 2000-05-30 Christopher James Lahey <clahey@helixcode.com> * gui/minicard/e-minicard-view.c: Made double clicking create a new card. Set the empty message. * gui/minicard/e-minicard.c: Made sorting be case insensitive. * gui/minicard/e-reflow-sorted.c, e-reflow.c, e-reflow.h: Added a message for when the reflow is empty. * printing/e-contact-print.c, printing/medbook.ecps: Made the default printout be full page. Made sorting case insensitive. svn path=/trunk/; revision=3281
* Fixed some memory leaks.Christopher James Lahey2000-05-161-2/+2
| | | | | | | | | | | | | 2000-05-16 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/e-card-simple.c, backend/pas/pas-backend-file.c, contact-editor/e-contact-editor.c, ename/e-name-western.c, gui/component/addressbook.c, gui/minicard/e-minicard-view.c: Fixed some memory leaks. * backend/ebook/e-card.c: Rearranged some code. svn path=/trunk/; revision=3085
* Got rid of a memory leak. Rearranged a couple functions.Christopher James Lahey2000-05-161-19/+35
| | | | | | | | | | | | | | 2000-05-16 Christopher James Lahey <clahey@helixcode.com> * contact-editor/e-contact-editor-categories.c: Got rid of a memory leak. Rearranged a couple functions. * gui/minicard/e-minicard-view.c, gui/minicard/e-minicard-view.h: Added some code to stop watching the EBook when the canvas is destroyed (apparently the canvas is destroyed before our widget is destroyed.) svn path=/trunk/; revision=3076
* Rearranged order of things getting destroyed.Christopher James Lahey2000-05-091-6/+11
| | | | | | | | | | | | | | | | | | | | | | | 2000-05-09 Christopher James Lahey <clahey@helixcode.com> * gui/component/e-addressbook-model.c: Rearranged order of things getting destroyed. * gui/minicard/e-minicard-view.c: Rearranged order of things getting destroyed. Don't set attributes of non-null or destroyed items. Destroy parent object when destroyed. Maintain ref_count of items in list. * gui/minicard/e-minicard.c: Don't set attributes of non-null items. * gui/minicard/e-reflow-sorted.c: Maintain ref_count of items in list. * gui/minicard/e-reflow.c: Maintain ref_count of items in list. Destroy parent object when destroyed. svn path=/trunk/; revision=2935
* Made a minimal number of things be destroyed and recreated when updating aChristopher James Lahey2000-05-081-5/+7
| | | | | | | | | | | 2000-05-08 Christopher James Lahey <clahey@helixcode.com> * gui/minicard/e-minicard-view.c, gui/minicard/e-minicard.c, gui/minicard/e-minicard.h, gui/minicard/e-reflow-sorted.c, gui/minicard/e-reflow-sorted.h: Made a minimal number of things be destroyed and recreated when updating a field. svn path=/trunk/; revision=2904
* Make the addressbook create the correct file uri. Added a default query.Christopher James Lahey2000-05-071-1/+2
| | | | | | | | | | | | | | 2000-05-07 Christopher James Lahey <clahey@helixcode.com> * gui/component/addressbook.c: Make the addressbook create the correct file uri. Added a default query. Initialize view->model and view->view to NULL. * gui/component/e-addressbook-model.c, gui/minicard/e-minicard-view.c: Only call get_book_view if both book and query and non-null. svn path=/trunk/; revision=2861
* Use "e-minicard" as the log domain.Federico Mena Quintero2000-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-04-18 Federico Mena Quintero <federico@helixcode.com> * gui/minicard/Makefile.am (INCLUDES): Use "e-minicard" as the log domain. * gui/component/Makefile.am (INCLUDES): Use "evolution-addressbook" as the log domain. * backend/pas/Makefile.am: Build libpas.a, not a shared library. Do not install any header files. (INCLUDES): Remove spurious include paths. * backend/pas/*.[ch]: Fix includes. * backend/ebook/Makefile.am: Do not install the test programs. Fixed some include weirdness. * backend/ebook/*.[ch]: Fix includes. * contact-editor/Makefile.am (INCLUDES): Set the log domain to "contact-editor". (INCLUDES): Fix. * contact-editor/*.[ch]: Fix includes. * gui/minicard/*.[ch]: Fix includes. svn path=/trunk/; revision=2529
* Added orginization and role fields.Christopher James Lahey2000-04-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | 2000-04-16 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h, addressbook/backend/ebook/test-card.c, addressbook/backend/pas/pas-backend-file.c, addressbook/gui/minicard/e-minicard.c: Added orginization and role fields. * addressbook/contact-editor/contact-editor.glade, addressbook/contact-editor/e-contact-editor-strings.h: Renamed some incorrectly named fields. * addressbook/contact-editor/e-contact-editor.c: Added orginization and role fields as well as hooking up the birth date field. * addressbook/gui/minicard/e-minicard-view.c: Added a missing include. svn path=/trunk/; revision=2458
* This was setting E_REFLOW(view)->items to NULL too soon. Fixed now.Christopher James Lahey2000-04-111-3/+2
| | | | | | | | | 2000-04-11 Christopher James Lahey <clahey@helixcode.com> * addressbook/gui/minicard/e-minicard-view.c: This was setting E_REFLOW(view)->items to NULL too soon. Fixed now. svn path=/trunk/; revision=2389
* new function. (delete_contact_cb): wire up button to callChris Toshok2000-04-111-4/+4
| | | | | | | | | | | | | * addressbook/gui/component/addressbook.c (card_deleted_cb): new function. (delete_contact_cb): wire up button to call e_minicard_view_remove_selection. * addressbook/gui/minicard/e-minicard-view.c (e_minicard_view_remove_selection): fix warning, and stick "view" in the name. svn path=/trunk/; revision=2387
* Changed some incorrect gtk_object_refs and gtk_object_unrefs intoChristopher James Lahey2000-04-111-0/+28
| | | | | | | | | | | | | | | | | | | | | | 2000-04-10 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-book-view.c, addressbook/backend/ebook/e-book.c: Changed some incorrect gtk_object_refs and gtk_object_unrefs into bonobo_object_refs and bonobo_object_unrefs. * addressbook/backend/pas/pas-card-cursor.c: Changed a gtk_object_destroy to a gtk_object_unref. * addressbook/gui/minicard/e-minicard-view.c, addressbook/gui/minicard/e-minicard-view.h: Set a list pointer to NULL after freeing its contents. Added e_minicard_view_remove_selection function. * addressbook/gui/minicard/e-reflow.c: Set a list pointer to NULL after freeing its contents. svn path=/trunk/; revision=2386
* implement braindead dialog to input the query string for the view.Chris Toshok2000-04-111-0/+1
| | | | | | | | | | | | | * addressbook/gui/component/addressbook.c (find_contact_cb): implement braindead dialog to input the query string for the view. also, change all callbacks to get the EMinicardView instead of the EBook. * addressbook/gui/minicard/e-minicard-view.c (e_minicard_view_get_arg): add missing break. svn path=/trunk/; revision=2384
* Added a "query" argument to the e-minicard-view. Documented all theChristopher James Lahey2000-04-111-22/+35
| | | | | | | | | | | 2000-04-10 Christopher James Lahey <clahey@helixcode.com> * addressbook/gui/minicard/e-minicard-view.c, addressbook/gui/minicard/e-minicard-view.h: Added a "query" argument to the e-minicard-view. Documented all the arguments to the e-minicard-view. svn path=/trunk/; revision=2383
* change the empty search string ("") to the valid (contains "full_name"Chris Toshok2000-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * addressbook/gui/minicard/e-minicard-view.c (get_view): change the empty search string ("") to the valid (contains "full_name" ""). * wombat/Makefile.am (wombat_LDADD): reorder so libeutil.la comes after libpas (since it uses the sexp stuff now.) * addressbook/backend/pas/Makefile.am (INCLUDES): add -I$(top_srcdir)/addressbook/backend/ebook * addressbook/backend/pas/pas-backend-file.c (view_destroy): free the search context and unref the sexp. (string_to_dbt): save the zero byte of strings, so we don't have to g_strndup everywhere. (func_contains): new function, implementing the (contains) search function. (vcard_matches_search): generic predicate to tell whether or not a vcard entry matches the current book view. (pas_backend_file_search): rip some of this code out of get_book_view (the portion building the list of cards) and make it use the e-sexp stuff. (pas_backend_file_process_create_card): use vcard_matches_search to only notify if the card will appear in the view. (pas_backend_file_process_remove_card): use vcard_matches_search to only notify if the card will be removed from the view. (pas_backend_file_process_modify_card): use vcard_matches_search to notify if the modified card was added, removed, or changed in the view. svn path=/trunk/; revision=2382
* CVS move mistake. Fixed the correct changes in the correct places.Christopher James Lahey2000-04-091-0/+239
2000-04-08 Christopher James Lahey <clahey@helixcode.com> * addressbook/gui/minicard/.cvsignore, addressbook/gui/minicard/Makefile.am, addressbook/gui/minicard/e-minicard-view.c, addressbook/gui/minicard/e-minicard-view.h, addressbook/gui/minicard/e-minicard.c, addressbook/gui/minicard/e-minicard.h, addressbook/gui/minicard/e-reflow-sorted.c, addressbook/gui/minicard/e-reflow-sorted.h, addressbook/gui/minicard/e-reflow.c, addressbook/gui/minicard/e-reflow.h, addressbook/gui/minicard/test-minicard-view.c, addressbook/gui/minicard/test-reflow.c, widgets/e-minicard/.cvsignore, widgets/e-minicard/Makefile.am, widgets/e-minicard/e-minicard-label.c, widgets/e-minicard/e-minicard-label.h, widgets/e-minicard/e-minicard-view.c, widgets/e-minicard/e-minicard-view.h, widgets/e-minicard/e-minicard.c, widgets/e-minicard/e-minicard.h, widgets/e-minicard/e-reflow-sorted.c, widgets/e-minicard/e-reflow-sorted.h, widgets/e-minicard/e-reflow.c, widgets/e-minicard/e-reflow.h, widgets/e-minicard/test-minicard-label.c, widgets/e-minicard/test-minicard-view.c, widgets/e-minicard/test-minicard.c, widgets/e-minicard/test-reflow.c: CVS move mistake. Fixed the correct changes in the correct places. svn path=/trunk/; revision=2344