2003-02-16 Chris Toshok <toshok@ximian.com>
* backend/pas/pas-backend-file.c
(pas_backend_file_search_timeout): move the bulk of the
non-summary searching stuff here. we aggregate up to our
threshold, then send them to the front end and register a timeout
to do another batch. This keeps us from totally spamming the UI,
making things a bit more responsive.
(pas_backend_file_search): set up the closure and call the timeout
in an idle func.
svn path=/trunk/; revision=19920
2003-02-16 Chris Toshok <toshok@ximian.com>
* gal/widgets/e-reflow.c (item_removed): make this actually work:
destroy the canvas item, memmove stuff around, change
reflow->count, etc, etc.
svn path=/trunk/; revision=19918
2003-02-16 Chris Toshok <toshok@ximian.com>
* gal/widgets/e-reflow.c (reflow_columns): enable this function to
reflow the view from a particular column onward. This is useful
if you have a huge model and the only changes are happening at the
end (as is normally the case if you're appending to a large
model.)
(item_changed): calculate the height of the changed item here, so
we aren't doing it as we reflow the model. For now, reflow the
entire model. Further optimization can be done here.
(item_removed): new function. remove the item and reflow from the
column that contained it.
(items_inserted): calculate the heights of the new items, and
calculate the lowest numbered column containing one of the
inserted items. reflow from there.
(model_changed): calculate the heights of everything here.
(comparison_changed): new function, clear the sorter and reflow.
(disconnect_model): disconnect comparison_changed and
model_item_removed.
(connect_model): connect comparison_changed and
model_item_removed.
(adjustment_changed): use queue_incarnate here, instead of forcing
the reflow model to incarnate as we scroll. Not sure if this is
actually the right solution, but it does make the scrollbar more
responsive at the cost of redraw speed.
* gal/widgets/e-reflow.h (struct _EReflow): add slots for the new
signal ids, as well as "reflow_from_column".
* gal/widgets/e-reflow-model.c (e_reflow_model_class_init): create
the comparison_changed and model_item_removed signals.
(e_reflow_model_comparison_changed): new function, emit the
comparison_changed signal.
(e_reflow_model_item_removed): new function, emit the
model_item_removed signal.
* gal/widgets/e-reflow-model.h: add comparison_changed and
model_item_removed signals.
svn path=/trunk/; revision=19917
2003-02-16 Chris Toshok <toshok@ximian.com>
* gui/widgets/e-addressbook-reflow-adapter.c (unlink_model):
disconnect search_started and search_result.
(addressbook_compare): if we're loading, just compare model
positions (so we just append while loading).
(remove_card): use e_reflow_model_item_removed.
(search_started): new function, set loading = TRUE.
(search_result): new function, set loading = FALSE and emit
"comparison_changed".
(e_addressbook_reflow_adapter_init): init loading and the new
signal ids.
(e_addressbook_reflow_adapter_construct): connect "search_started"
and "search_result".
* gui/widgets/e-addressbook-model.h (struct
_EAddressbookModelClass): add search_started signal.
* gui/widgets/e-addressbook-model.c
(e_addressbook_model_class_init): new signal "search_started".
(book_view_loaded): emit "search_started" after "model_changed".
(remove_card): simplify this, and use CARD_REMOVED all the time,
instead of just in the single card case.
svn path=/trunk/; revision=19916
2003-02-14 Jeffrey Stedfast <fejj@ximian.com>
* camel-url-scanner.c (url_scanner_table_init): Mark chars with
the high-bit set as CTRL chars.
(camel_url_web_end): If the char before the start of the url is an
open-brace, watch out for the matching close-brace.
(camel_url_file_end): Same.
svn path=/trunk/; revision=19913
2003-02-14 Jeffrey Stedfast <fejj@ximian.com>
* camel-smime-context.c (smime_get_password): Same as the gpg and
pkcs7 contexts.
* camel-sasl-popb4smtp.c (popb4smtp_challenge): Updated for
camel_session_get_password().
* camel-pkcs7-context.c (get_password): Same as the gpg code.
* camel-gpg-context.c (gpg_ctx_parse_status): Updated for
camel_session_get_password().
* providers/smtp/camel-smtp-transport.c (smtp_connect): No need to
set USER_CANCEL exception here as it is done by
camel_session_get_password(). Also updated for the new
get_password() API change.
* providers/imap/camel-imap-store.c (imap_auth_loop): Updated for
camel_session_get_password() changes. We don't need to play the
"bad passwd" game here too, do we? Bah, probably should but I
don't feel like it for now. Maybe when we rewrite the IMAP
provider.
* camel-session.c (camel_session_get_password): Now takes a
'reprompt' argument that will force user-input to be given even if
we have the passwd cached.
* providers/pop3/camel-pop3-store.c (pop3_connect): Instead of
uncaching the passwd after we receive a -ERR from the POP server,
set 'reprompt' to TRUE to force user-input for the next password
prompt (ie, make sure the front-end knows not to just return the
cached value). The front-end can then decide to fill-in the
user-input field with the last passwd that the user supplied.
(pop3_try_authenticate): Now takes a reprompt argument which we
pass into camel_session_get_password().
svn path=/trunk/; revision=19912
2003-02-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (do_get_pass): Change the logic here
slightly. Instead of only reprompting the user if the cache is
empty, also reprompt the user if the backend is forcing a
reprompt.
(request_password): If we have a cached passwd string for the
account, fill-in the GtkEntry box with that value by
default. This, together with the camel changes, fixes the
"Evolution forgets my POP passwd if it gets a -ERR response during
the login phase" bug.
svn path=/trunk/; revision=19911
2003-02-12 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
* gal/util/e-iconv.c: Fix for Solaris Bug "31081 Mailer
sender/Subject/Date fields blank for Solaris 8 ko_KR.EUC locale." and
partial fix for Solaris Bug "32747 additional issues with evolution
beta2 in ja_JP.PCK locale"
svn path=/trunk/; revision=19909
2003-02-13 Jeffrey Stedfast <fejj@ximian.com>
* e-searching-tokenizer.c: #include <stdio.h>
* mail-config-factory.c: #include <string.h>
* mail-config-druid.c (identity_prepare): Use
gtk_editable_select_region() since gtk_entry_select_region() has
been deprecated.
(construct): Use gtk_window_set_resizable() instead of
gtk_window_set_policy().
(wizard_free): account_destroy() is no longer around, use
g_object_unref() instead. (how did this even compile before?)
* mail-account-gui.c (mail_account_gui_build_extra_conf): Use
gtk_label_set_text_with_mnemonic() instead of
gtk_label_parse_uline() as the latter has been deprecated.
svn path=/trunk/; revision=19905
2003-02-13 Mike Kestner <mkestner@ximian.com>
* e-table-header-item.c (ethi_drag_motion): don't transform
based on allocation position. Position isn't absolute now.
svn path=/trunk/; revision=19902
2003-02-13 Mike Kestner <mkestner@ximian.com>
* e-table-header-utils.c (e_table_header_draw_button): kill
a double unref on the pango_layout.
svn path=/trunk/; revision=19900
2003-02-12 Hans Petter Jansson <hpj@ximian.com>
* e-table-click-to-add.c (etcta_realize): Request a reflow on
realization, so size and placement will be correct initially.
svn path=/trunk/; revision=19899
2003-02-12 Jeffrey Stedfast <fejj@ximian.com>
* vfolder-rule.c (source_add): Get rid of the need for the
GTK_WIDGET_DESTROYED() check.
svn path=/trunk/; revision=19898
2003-02-12 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (insert_node): work around broken models
that insert children before parents. bad models.
(e_tree_table_adapter_load_expanded_state): don't update_node
(e_tree_table_adapter_node_set_expanded): recursively expand
parent if the node is not visible yet.
(e_tree_table_adapter_set_sort_info): don't resort empty trees
svn path=/trunk/; revision=19894
2003-02-11 Hans Petter Jansson <hpj@ximian.com>
Enable printing for calendar and tasks.
* gui/print.c: Set default font to be "Sans". Store the PrintConfig
globally instead of PaperInfo (which doesn't exist anymore).
(get_font_for_size): Don't use
gnome_font_face_find_closest_from_weight_slant() anymore, since
it's broken. Instead, use gnome_font_face_find() and put bold- and
italicness in the name to look for. Descenders can now be negative,
so have to take the absolute value to get font height.
(print_comp): Use global, persistent print configuration.
GnomePrintDialog is now a GtkDialog. Remove manual configuration
parameter shuffling. Set up page using new methods.
(print_calendar): Like print_comp(). For month view, force landscape
mode by temporarily setting it in the config, and remove the old hack.
(print_setup): Port. I'm not sure this works, but at least it
compiles now. How do I test this code path?
(print_day_view): Pass NULL for page denominator.
(print_week_view): Ditto.
(print_month_view): Ditto.
(print_year_view): Ditto.
(print_comp_item): Add missing gnome_print_beginpage(). How did this
work before?
* gui/tasks-control.c: Store the PrintConfig globally instead of
passing individual parameters every time. Persistent too.
(print_title): Look for "Sans Bold" instead of "Times" with
GNOME_FONT_BOLD property. Don't use find_closest_from_weight_slant().
(print_tasks): Set up page using new methods. GnomePrintMaster ->
GnomePrintJob. Get params from global config instead of args.
(tasks_control_print_cmd): Use global, persistent print configuration.
Remove manual portrait/landscape hack. GnomePrintDialog is now a
GtkDialog. Set params in global config instead of passing them to
print_tasks().
(tasks_control_print_preview_cmd): print_tasks() now takes fewer
args.
svn path=/trunk/; revision=19889
2003-02-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (mail_accounts_tab_class_init): Register a
destroy virtual method.
(mail_accounts_tab_destroy): Set mail_display->destroyed = TRUE.
* message-list.c (message_list_destroy): Set
mail_display->destroyed = TRUE. This is a workaround for the
GTK_OBJECT_DESTROYED() macro that we used to use before.
svn path=/trunk/; revision=19884
2003-02-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_display_destroy): Set
mail_display->destroyed = TRUE. This is a workaround for the
GTK_OBJECT_DESTROYED() macro that we used to use before.
svn path=/trunk/; revision=19883
2003-02-11 Not Zed <NotZed@Ximian.com>
* e-trie.c (trie_utf8_getc): Instead of simply ignoring bad chars,
return the sentinal invalid char 0xfffe, so that we properly track
the start of sequences.
svn path=/trunk/; revision=19881
2003-02-10 Hans Petter Jansson <hpj@ximian.com>
* pcs/cal-backend-file.c (save): Don't try to make an error string
from an uninitialized GnomeVFSResult.
svn path=/trunk/; revision=19880
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
2003-02-10 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (build_tree): Use g_signal_emit() rather than
gtk_signal_emit().
(build_flat): Same here.
* mail-signature-editor.c: #include <string.h>
* mail-vfolder.c: #include <string.h>
* mail-session.c: #include <string.h>
* mail-search.c: #include <string.h>
* mail-mt.c: #include <string.h>
* mail-ops.c (save_part_save): Use strcasecmp() instead of
g_strcasecmp().
* mail-local.c: #include <string.h>
(reconfigure_folder_reconfigured): Use a GtkDialog instead of
gnome_error_dialog().
* mail-format.c (find_preferred_alternative): Use g_ascii_strdown
since g_strdown is deprecated.
(fake_mime_part_from_data): Removed, no longer used it seems.
(destroy_part): Also removed.
* mail-display.c (make_popup_window): Replace call to
gtk_window_set_polociy() with gtk_window_set_resizable() instead.
(popup_size_allocate_cb): Use gtk_window_set_position() with
GTK_WIN_POS_MOUSE instead of calculating the position to put it
in.
svn path=/trunk/; revision=19878
2003-02-10 Mike Kestner <mkestner@ximian.com>
* e-tree.c (e_tree_find_next): rewrite to use etta
(find_next_in_range): helper func to search a range of rows
(find_next_callback): kill
svn path=/trunk/; revision=19875
* importers/Makefile.am: Split the ORBit IDL compilation rules to
work properly with parallel makes.
(BUILT_SOURCES): Add this.
(CLEANFILES): Add this.
* Makefile.am: Split the ORBit IDL compilation rules to work
properly with parallel makes.
(BUILT_SOURCES): Add $(IDL_GENERATED) here.
(CLEANFILES): Remove from here.
svn path=/trunk/; revision=19874
* gui/Makefile.am: Make the CORBA IDL compilation work with
parallel makes.
* gui/dialogs/Makefile.am: Likewise.
* gui/alarm-notify/Makefile.am: Likewise.
svn path=/trunk/; revision=19872
libeutil-static.la depend on libeutil.la so that parallel
compilations work; building them at the same time confuses
libtool.
(e-util-marshal.h, e-util-marshal.c): Use different tmp files so
these rules can happen in parallel.
svn path=/trunk/; revision=19871
* backend/ebook/Makefile.am: Install load-pine-addressbook and
load-gnomecard-addressbook into ${privdatadir}/tools. Install
evolution-vcard-importer and evolution-ldif-importer into
${privlibexecdir}.
* backend/ebook/GNOME_Evolution_Addressbook_VCard_Importer.server.in:
Removed.
* backend/ebook/GNOME_Evolution_Addressbook_LDIF_Importer.server.in:
Removed.
* backend/ebook/GNOME_Evolution_Addressbook_VCard_Importer.server.in.in:
New. Specify an absolute path for the executable, using
@LIBEXECDIR@.
* backend/ebook/GNOME_Evolution_Addressbook_LDIF_Importer.server.in.in:
Likewise.
svn path=/trunk/; revision=19870
libical-static.la depend on libical-evolution.la so they they are
not built in parallel by a parallel make, since that would break
libtool.
svn path=/trunk/; revision=19869
2003-02-10 Larry Ewing <lewing@ximian.com>
* mail-display.c (save_url): look in the http cache for images
when saving
(image_save_as): remove random warning.
(do_external_viewer): remove unused variable.
(do_attachment_header): use g_ascii_strdown
svn path=/trunk/; revision=19864
2003-02-09 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names-completion.c
(sexp_initials): gone.
(match_initials): gone.
(book_query_sexp): remove the primary handling.
(book_query_score): same.
* backend/ebook/e-card.c (e_card_set_property):
g_value_get_pointer => g_value_get_object for "category_list".
* backend/ebook/e-book.c (struct _EBookPrivate): add a comment.
* backend/pas/pas-backend-ldap.c (func_beginswith): performance at
the cost of a tiny bit of correctness. If the ldap server doesn't
support evolutionPerson don't query on fileAs, use sn (since
that's effectively what gets used in the display when fileAs isn't
supported.)
svn path=/trunk/; revision=19863
2003-02-09 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names-completion.c: lots of
changes here. should be a big performance gain. god i hope this
is finally right.
svn path=/trunk/; revision=19860
2003-02-09 Chris Toshok <toshok@ximian.com>
* tests/.cvsignore: ignore test-completion.
* tests/test-completion.c: new program, completion test.
* tests/Makefile.am (noinst_PROGRAMS): add test-completion.
* gal/e-text/Makefile.am: remove e-completion-test from the build
here, moving it to ../../tests.
* gal/e-text/e-completion.c (e_completion_class_init): we've
removed the restart, cancel, clear, and lost signals. Also, we've
renamed some so it's easier to tell from the name which it is
(virtual func or signal.)
(e_completion_dispose): remove call to clear_search_stack, as we
don't do auto-refinement anymore.
(e_completion_clear): gone.
(e_completion_push_search): gone.
(e_completion_pop_search): gone.
(e_completion_clear_search_stack): gone.
(e_completion_refine_search): gone.
(e_completion_unrefine_search): gone.
(e_completion_begin_search): substantially clear this up, since we
don't have the refinement stuff anymore. Also, the call to
request_completion is a virtual function call, not a signal.
(e_completion_match_count): always return matches->len here, never
match_count, which is gone (with the refinement stuff)
(e_completion_foreach_match): remove the hit_count stuff.
(e_completion_restart): gone.
(e_completion_lost_match): gone.
(e_completion_end_search): remove the sorting stuff from here (and
the call to restart.) the etable sorting stuff will have to take
up the slack, but for now there's no reason to restart the search
here.
* gal/e-text/e-completion.h (struct _ECompletionClass): straighten
out what's a virtual function and what's a signal, instead of
using signals for both. Also, remove the auto_refine stuff, as
it's not used.
* gal/e-text/e-completion-view.c (e_completion_view_size_request):
make the damn drop down window bigger (100 pixels, or the
requisition height, whichever is bigger.)
(e_completion_view_disconnect): remove handling for signals that
are gone.
(restart_completion_cb): gone.
(cancel_completion_cb): gone.
(clear_completion_cb): gone.
(lost_completion_cb): gone.
(e_completion_view_construct): track new names of ECompletion
signals.
* gal/e-text/e-completion-view.h (struct _ECompletionView): remove
restart_signal_id, cancel_signal_id, clear_signal_id, and
lost_signal_id.
* gal/e-text/e-entry.c (get_borders): new function, ala gtkentry.
(canvas_size_request): use get_borders instead of computing it
here.
(e_entry_init): remove duplicate assignment of
emulate_label_resize.
(e_entry_show_popup): remove some ifdef'ed crap.
(e_entry_start_completion): don't cancel the completion before
starting again. This keeps the popup from disappearing.
* gal/e-text/e-completion-match.c (e_completion_match_construct):
no more hit_count.
* gal/e-text/e-completion-match.h (struct _ECompletionMatch):
remove hit_count.
* gal/e-text/e-completion-callbacks.[ch]: new class so we can use
callbacks instead of subclassing.
svn path=/trunk/; revision=19859