* addressbook/backend/pas/pas-backend-ldap.c (poll_ldap): new
function that polls ldap for more search responses.
(pas_backend_ldap_search): use the async search interface and
register an idle call to poll for the responses.
svn path=/trunk/; revision=2414
* addressbook/backend/pas/pas-backend-file.c (entry_compare):
rework this function to use a table mapping search field names to
vcard properties and extra information (such as whether or not the
property is a list.)
* addressbook/backend/pas/pas-backend-ldap.c
(construct_email_list): new function, to build the ECardList for
email addresses.
(construct_phone_list): new function, to build the ECardList for
phone numbers.
(pas_backend_ldap_search): use a table mapping ldap attributes to
ecard properties, and use the special list construction functions
if the property calls for it. general cleanup. added a comment
about not calling ber_free if there was a decoding error.
svn path=/trunk/; revision=2411
* addressbook/backend/pas/pas-backend-ldap.c
(pas_backend_ldap_build_all_cards_list): delay the setting of the
ldap variable until we've ensured we were connected. Also, set
the search limit to LDAP_MAX_SEARCH_RESPONSES (we'll eventually
want a user setting here i assume.)
(pas_backend_ldap_search): same here, and also send back lists of
CARDS_PER_VIEW_NOTIFICATION length in each
pas_book_view_notify_add call. also, don't call ber_free if there
was a decoding error, since the ldap library frees it for us.
svn path=/trunk/; revision=2406
* wombat/Makefile.am (wombat_LDADD): add LDAP_LIBS here.
* configure.in: check for -lldap and -llber and if both are
present include ldap support in the pas/wombat.
* addressbook/backend/pas/Makefile.am (libpas_la_SOURCES): include
pas-backend.ldap.c if ENABLE_LDAP.
* addressbook/backend/pas/pas-backend-ldap.c: get searching
working (converting between the sexp and ldap stuff.)
* wombat/wombat.c (setup_pas): register the ldap pas backend if
HAVE_LDAP is defined.
svn path=/trunk/; revision=2401
2000-04-11 Christopher James Lahey <clahey@helixcode.com>
* configure.in: Changed AC_DEFUN to AC_DEFINE.
* acconfig.h: Added HAVE_TIMEZONE and HAVE_TM_GMTOFF.
svn path=/trunk/; revision=2400
you need the latest gdk-pixbuf to build evolution now.
2000-04-11 Larry Ewing <lewing@helixcode.com>
* widgets/e-table/e-cell-toggle.c (etog_draw): update for new
gdk-pixbuf. Added a disabled chuck of code to do alpha blending
on pixmaps.
* widgets/shortcut-bar/e-icon-bar.c (flatten_alpha): update for
new gdk-pixbuf.
svn path=/trunk/; revision=2397
2000-04-11 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-text/e-text.c: Moved some logic a bit. Minor changes.
svn path=/trunk/; revision=2396
* addressbook/backend/pas/pas-backend-file.c
(vcard_matches_search): free the esexp_result.
(entry_compare): we want comparison functions to take 2 args.
svn path=/trunk/; revision=2395
forward clicks on the tooltip to the pareent item
tooltip obeys parents line_wrap and max_lines
e_text_point returns 0 when pointer is on the item
svn path=/trunk/; revision=2394
* addressbook/backend/pas/pas-backend-file.c
(compare_email): new function for searching all email addresses of
a contact.
(compare_phone): new function for searching all phone numbers of a
contact.
(compare_address): new function for searching all addresses of a
contact (unimplemented as yet).
(entry_compare): add support for searching the list items "email",
"phone" and "address".
svn path=/trunk/; revision=2393
* addressbook/backend/pas/pas-backend-file.c
(get_e_card_prop): new function, taking code from func_contains to
get string properties.
(entry_compare): new function generic, taking strstr-like function
as a parameter.
(func_contains): rewrite function to use entry_compare.
(is_helper): new helper function to map strcmp to a strstr-like
function.
(func_is): new function, implementing "is" for searches.
(endswith_helper): new function.
(func_endswith) new function, implementing "endswith" for searches.
(beginswith_helper): new function.
(func_beginswith): new function, implementing "beginswith" for searches.
svn path=/trunk/; revision=2392
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
* addressbook/backend/pas/pas-backend-file.c
(pas_backend_file_search): remove spew.
(pas_backend_file_process_create_card): move the sync to the
earliest possible point after the db operation.
(pas_backend_file_process_remove_card): same.
(pas_backend_file_process_modify_card): same, and call
pas_book_respond_modify, not pas_book_respond_remove, here.
svn path=/trunk/; revision=2388
* 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
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
* 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
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
* 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
2000-04-10 Miguel de Icaza <miguel@gnu.org>
* configure.in (GNOME_PRINT_CFLAGS): Update to support
--disable-threads correctly.
svn path=/trunk/; revision=2381
* addressbook/backend/pas/pas-backend-file.c
(pas_backend_file_process_get_book_view): use view != NULL instead
of checking db_error when we call pas_book_respond_get_book_view)
svn path=/trunk/; revision=2375
2000-04-10 Damon Chaplin <damon@helixcode.com>
* configure.in (AC_OUTPUT): removed libical stuff since it has its
own configure.in.
svn path=/trunk/; revision=2362
2000-04-10 Christopher James Lahey <clahey@helixcode.com>
* addressbook/backend/ebook/e-book-view.c: Fixed a bug where I was
sending the wrong information to some callbacks.
* addressbook/backend/ebook/e-card.c,
addressbook/backend/ebook/e-card.h: Added an e_card_duplicate
function. Made ids get stored in vcards. Made sure to delete the
url if it exists.
* addressbook/backend/pas/Makefile.am: Made pas include
addressbook/backend/ebook/ in the search path.
* addressbook/backend/pas/pas-backend-file.c: Fixed some bugs and
made the create card function store the generated id in the card
being saved.
* addressbook/backend/pas/pas-book-view.c: Fixed a double free
bug.
* addressbook/contact-editor/e-contact-editor.c: Fixed some bugs.
Made the contact editor actually return a valid card when
gtk_object_get(editor, "card", ...) is called.
* addressbook/contact-editor/e-contact-editor.h: Fixed a copy and
paste error.
* addressbook/gui/component/addressbook.c: Made this get the card
properly.
* addressbook/gui/minicard/Makefile.am: Made this include
contact-editor directory in the search path and link against
libecontacteditor so that double clicking can open a dialog.
* addressbook/gui/minicard/e-minicard.c: Fixed some small bugs.
Made double clicking open a contact editor dialog if this minicard
is contained in a minicard view. (It needs the minicard view to
get the EBook to save to.
* wombat/Makefile.am: Link wombat against libebook, since
pas-backend-file now uses ECard.
svn path=/trunk/; revision=2360
+ "New Contact" menuitem add a card with new_contact_cb().
+
+ * e-shell-view.c (e_shell_view_setup): Set the default height
+ bigger, to 600, so that everything in the shortcut-bar shows up.
svn path=/trunk/; revision=2353
+ since the gui now depends on the contact editor (shouldn't the
+ contact-editor directory be moved into 'gui'?).
+
+ * addressbook/gui/component/addressbook.c (card_added_cb): New
+ function. Gets called when a card is successfully added via the
+ contact-editor.
+ (new_contact_cb): New function. Gets called when a user clicks the
+ "new contact" button on the toolbar, and creates a contact-editor
+ to edit a new contact entry.
+ (control_activate): Call gnome_app_fill_toolbar_with_data()
+ instead of gnome_app_fill_toolbar(), so that our toolbar can find
+ the right book to add a new card to.
+ (addressbook_factory): On an "activate" signal, send the book up
+ to control_activate_cb.
+
+ * addressbook/gui/component/addressbook-factory.c (init_bonobo):
+ Call glade_gnome_init(), so that our contact-editor (which
+ requires glade) doesn't barf.
+
+ * addressbook/gui/component/Makefile.am: added the contact-editor
+ to our libraries and include files.
+
+ * addressbook/contact-editor/e-contact-editor.c
+ (e_contact_editor_new): Set "card" gtk property to the passed-in
+ card property.
svn path=/trunk/; revision=2351
+ Added gtk_widget_push/pop_colormap/visual, which I assume is
+ necessary for canvas use.
+
+ * folder-browser.c (folder_browser_new): set folder_browser->uri
+ to NULL, so that we know when to free it.
+
+ * e-table-col.c (e_table_col_new_with_pixbuf): ref etc->ecell,
+ like in e_table_col_new, since that same ECell is unref'd in
+ etc_destroy().
+
svn path=/trunk/; revision=2350
2000-04-08 Christopher James Lahey <clahey@helixcode.com>
* addressbook/contact-editor/Makefile.am,
addressbook/contact-editor/e-contact-editor.c,
addressbook/contact-editor/e-contact-editor.h,
addressbook/contact-editor/test-editor.c: Made the contact editor
load from an ECard.
* addressbook/backend/ebook/e-card.c,
addressbook/backend/ebook/e-card.h,
addressbook/gui/minicard/e-minicard.c: Added support for the URL
field.
svn path=/trunk/; revision=2349
2000-04-08 Christopher James Lahey <clahey@helixcode.com>
* addressbook/backend/ebook/e-card.c (e_card_get_vcard): Fixed a
small typo.
svn path=/trunk/; revision=2347
2000-04-08 Christopher James Lahey <clahey@helixcode.com>
* art/Makefile.am: pixmap_DATA isn't defined so don't use it as a variable.
* addressbook/gui/component/,
addressbook/gui/component/.cvsignore, addressbook/gui/Makefile.am,
addressbook/gui/component/addressbook-factory.c,
addressbook/gui/component/addressbook.c,
addressbook/gui/component/addressbook.gnorba,
addressbook/gui/component/addressbook.h: New directory to proivde
the component for contact management. Simply uses an e-minicard-view.
* addressbook/gui/minicard/e-minicard-view.c,
addressbook/gui/minicard/e-minicard-view.h: New subclass of
e-reflow-sorted that takes an EBook and uses it to compute the
card data to display.
* addressbook/gui/minicard/e-minicard.c,
addressbook/gui/minicard/e-minicard.h: This now backends to a
ECard instead of a ETableModel.
* addressbook/gui/minicard/e-reflow.c,
addressbook/gui/minicard/e-reflow.h: This now has a virtualized
add method.
* addressbook/gui/minicard/e-reflow-sorted.c,
addressbook/gui/minicard/e-reflow-sorted.h: New subclass of
e-reflow that allows the data to be sorted on the fly.
* addressbook/gui/minicard/test-minicard-view.c: New test to test
the new minicard view.
* addressbook/gui/minicard/test-reflow.c: Uses the new ECard
backend of the e-minicard.
* addressbook/gui/minicard/.cvsignore,
addressbook/gui/minicard/Makefile.am: Added new test. Fixed
dependencies. Added new files.
* addressbook/gui/, addressbook/gui/Makefile.am,
addressbook/gui/.cvsignore: New directory for addressbook gui
bits. Added subdirectories. Created an initial .cvsignore.
* addressbook/Makefile.am (SUBDIRS): Removed demo and added gui.
* addressbook/backend/pas/pas-backend-file.c: Added code to do
notification on bookviews when changes in the backend are made.
* addressbook/backend/pas/pas-book-view.c,
addressbook/backend/pas/pas-book-view.h: Added helper functions to
notify the view about the addition or modification of a single
card. Fixed a mistaken extra free.
* addressbook/backend/ebook/e-card-list-iterator.h: Fixed
incorrect parent class.
* addressbook/backend/ebook/test-client.c: Made this accept an
optional parameter that specifies the vcard to add.
* configure.in: Replaced widgets/e-minicard/Makefile and
addressbook/demo/Makefile with addressbook/gui/minicard/Makefile
and addressbook/gui/component/Makefile respectively.
* widgets/Makefile.am: Removed e-minicard since it's being moved
to addressbook/gui/minicard.
* widgets/e-text/e-text.c: Fixed the border width around tooltips
and made the main tooltip area yellow.
From camel/ChangeLog:
2000-04-08 Christopher James Lahey <clahey@helixcode.com>
* providers/smtp/.cvsignore: Added a .cvsignore file.
From calendar/ChangeLog:
2000-04-08 Christopher James Lahey <clahey@helixcode.com>
* gui/Makefile.am: Removed linking with libetable and libeminicard
since they weren't being used.
svn path=/trunk/; revision=2343
2000-04-07 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-text/e-text.c: Made text tooltips appear in place.
Iain figured out that to get them to not appear, we hide the
tooltip when the mouse leaves the tooltip window, not the canvas
item (this works because the tooltip window always covers the
canvas item completely.)
svn path=/trunk/; revision=2328
+ function. Called when the control is (de)activated.
+ (control_activate): New function; called when the control is
+ activated, and sets up toolbar/menu times.
+ (control_deactivate): New function; removes those toolbar/menu
+ items.
+ (do_nothing_cb): Does nothing :-)
+ (addressbook_factory): Hook up to control_activate_cb().
svn path=/trunk/; revision=2327
Moved all ChangeLog entries for the shell to shell/ChangeLog.
Fixed the icon loading for the shortcut bar bug.
2000-04-06 Miguel de Icaza <miguel@gnu.org>
* shell/e-shortcut.c (shell_icon_cb): Append a slash here.
(shell_icons): Only list the filenames.
* shell/main.c (evolution_boot): Be less rude.
svn path=/trunk/; revision=2310
+ available with e_setup_base_dir ().
+
+ * e-setup.c (e_setup_base_dir): Get/set Evolution's base directory
+ via gnome-config.
svn path=/trunk/; revision=2309
2000-04-06 Christopher James Lahey <clahey@helixcode.com>
* addressbook/demo/demo.c, addressbook/demo/addressbook-widget.c:
Changed calls to e_cell_text_new to match new function signature.
svn path=/trunk/; revision=2308
2000-04-06 Miguel de Icaza <miguel@gnu.org>
* shell/e-shortcut.c (shell_icon_cb): Load the icons from the
installation path, not form the GNOME-libs installation prefix.
(shell_icon_cb): Memory leak fix.
* shell/Makefile.am (imagesdir): Pass the EVOLUTION_IMAGES
installation directory here.
* art/Makefile.am (images_DATA): Renamed from pixmaps to images.
2000-04-06 Miguel de Icaza <miguel@gnu.org>
* message-list.c: Stick pixmaps here.
* mail-display.c (embeddable_destroy_cb): Replaced C++ comments
with C comments.
* message-list.c (load_internal_images): New function, loads images.
(message_list_init_renderers): Load images, fix previous attempt
at loading images.
* Makefile.am (dist-hook): Added distribution of pixmaps.
* pixmaps: New directory, used to hold the XPMs we ship with.
* pixmaps/envelope-closed.xpm, pixmaps/envelope-open.xpm: Tigert's
envelopes incorporated.
2000-04-06 Miguel de Icaza <miguel@gnu.org>
* e-cell-text.c: Killed ARG_EDITABLE.
(ect_event): Updated to new editable setup.
(e_cell_text_new): Kill editable argument.
* e-cell-toggle.c (etog_event): Handle editability here
* e-cell-text.h: Removed editable bit field from here, it is now
taken care at the e-cell level.
* e-cell.c (e_cell_set_editable): New function.
(e_cell_init): Set editable to TRUE by default.
* test-check.c (check_test): update to new api
* test-table.c (table_browser_test): ditto.
(do_e_table_demo): ditto.
* test-cols.c (multi_cols_test): ditto
svn path=/trunk/; revision=2302
2000-04-04 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-text/e-text-test.c: Got rid of some runtime errors.
Changed to "fixed" font so that it will work on everyone's
machine. Added a white background rectangle. Made resizing the
window resize the contained text item. Changed to using affines
(e_canvas_item_move_absolute) instead of "x" and "y" attributes.
Set the text in the entries so that they match the original values
of the displayed text object.
svn path=/trunk/; revision=2292
2000-04-04 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-minicard/e-minicard.c: Fixed some referencing and
lifetime issues.
From widgets/e-table:
2000-04-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-text-model.c: Make this assert a bit more readable.
* e-table-item.c: Fix update loop behavior.
svn path=/trunk/; revision=2291