Commit Graph

16 Commits

Author SHA1 Message Date
b327312920 Don't use __inline__ as not all platforms/compilers support this keyword.
2003-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* e-searching-tokenizer.c (camel_utf8_getc): Don't use __inline__
	as not all platforms/compilers support this keyword.
	(g): Same.

svn path=/trunk/; revision=20193
2003-03-06 15:32:24 +00:00
31dc41be37 #include <stdio.h>
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 20:31:50 +00:00
9e4f25d532 Added to cvs. Currently contains no configurable stuff, but maybe it will
2002-11-13  Not Zed  <NotZed@Ximian.com>

        * GNOME_Evolution_Mail.server.in.in: Added to cvs.  Currently
        contains no configurable stuff, but maybe it will one day.

        * Makefile.am (server_DATA): change oaf stuff to server stuff for
        bonobo activation.

        * mail-preferences.c (mail_preferences_apply): handle const entry text.

        * mail-composer-prefs.c (url_requested): Fixed typo.
        (mail_composer_prefs_construct): gnomepixmap->gtkimage.

        * mail-callbacks.c (configure_mail): destroy dialogue before dealing
        with response.
        (mail_generate_reply): Fix a typo.
        (popup_listener_cb): fix prototype.
        (tag_editor_response): Handle gtk dialog response.
        (flag_for_followup): Change gnome dialog to gtk dialog stuff.
        (tag_editor_destroy_cb):
        (tag_editor_cancel):
        (tag_editor_ok): Removed, handled in _response().
        (filter_editor_response): renamed from _clicked, handle gtk
        dialogue signal.
        (filter_editor_destroy): Removed.
        (footer_info_new): gnome font api changes.
        (do_mail_print): port to gnome print 2.

        * mail-autofilter.c (mail_filter_delete_uri): message_dialog uses
        a specific button enum, not the stock ones.

        * mail-accounts.c (mail_accounts_tab_get_type): gobjectify.
        (account_delete_clicked): gdkdialogise.

        * mail-account-gui.c (mail_account_gui_setup): Hack around font
        metric determination code.

        * mail-account-editor.c (mail_account_editor_get_type):
        gobjectise.
        (mail_account_editor_new): ""

        * folder-info.c (evolution_folder_info_notify_ready): use pbclient
        interface.

        * folder-browser-factory.c (control_destroy_cb): fix a typo.
        (folder_browser_factory_new_control): More typos.

        * folder-browser.c (on_right_click): cast around const warning.
        (context_menu_position_func): fix for api change.

        * e-searching-tokenizer.c (e_searching_tokenizer_finalise):
        Changed from destroy since it only frees memory.
        (e_searching_tokenizer_get_type): glibify.

        * component-factory.c (request_quit): gtkdialogise.
        (send_receive_cb): "
        (create_component): gdk_pixbuf api.
        (component_factory_init): bonobo activation stuff.
        (warning_response): renamed from warning_clicked.
        (owner_set_cb): gtkdialogise.

svn path=/trunk/; revision=18731
2002-11-13 04:40:07 +00:00
cca2134ea9 Ported.
2002-11-11  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c: Ported.

	* e-searching-tokenizer.c: Roughly ported.

svn path=/trunk/; revision=18697
2002-11-11 17:34:05 +00:00
b57b273845 #include <stdlib.h> for alloca (searcher_next_token): Changed slightly to
2002-09-27  Jeffrey Stedfast  <fejj@ximian.com>

	* e-searching-tokenizer.c: #include <stdlib.h> for alloca
	(searcher_next_token): Changed slightly to make sure that m is not
	NULL before dereferencing it. Also initialise m to NULL so that it
	can't be used uninitialised (NULL is a safe initialised value
	here).
	(build_trie): Same, but for n.

svn path=/trunk/; revision=18250
2002-09-27 19:24:24 +00:00
71fb81afc7 Removed bogus static pre-declaration.
* mail-folder-cache.c: Removed bogus static pre-declaration.

* e-searching-tokenizer.c (e_searching_tokenizer_end): Removed
unused variables.

* mail-callbacks.c: #include <gtkhtml.h>.

* folder-info.h (evolution_folder_info_get_type): Add prototype.

svn path=/trunk/; revision=17508
2002-07-18 18:13:34 +00:00
60a6928a18 remove debug printf
svn path=/trunk/; revision=17489
2002-07-17 15:12:54 +00:00
e32a24e30b New functions to add additional search strings one at a time. Maybe it
2002-05-18  Not Zed  <NotZed@Ximian.com>

        * e-searching-tokenizer.c
        (e_searching_tokenizer_add_primary_search_string):
        (e_searching_tokenizer_add_secondary_search_string): New functions
        to add additional search strings one at a time.  Maybe it should
        just split the word itself?
        (all): Basically, entirely rewritten.  Now implements the
        Aho-Corasick multiple pattern search algorithm and handles
        multiple search strings and only ever has to decode any utf8
        character once, etc etc.

svn path=/trunk/; revision=16961
2002-05-21 02:54:05 +00:00
60dcd52057 Fixed a warning by #if 0ing out this function.
2001-10-29  Christopher James Lahey  <clahey@ximian.com>

	* e-searching-tokenizer.c (search_info_set_match_size_increase):
	Fixed a warning by #if 0ing out this function.

	* folder-browser.c, folder-browser.h (on_selection_changed):
	Update status bar in an idle call.  Fixes Ximian bug #13929.

	* mail-folder-cache.c (folder_renamed, store_folder_renamed):
	Fixed some warnings here.

svn path=/trunk/; revision=14372
2001-10-29 22:41:35 +00:00
c0cddd6d1d Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14191
2001-10-27 00:47:22 +00:00
1ff31661d8 Always explicitly clear out the SearchInfo.
2001-10-16  Jon Trowbridge  <trow@ximian.com>

	* e-searching-tokenizer.c (e_searching_tokenizer_begin): Always
	explicitly clear out the SearchInfo.

svn path=/trunk/; revision=13704
2001-10-16 20:56:21 +00:00
2855fe6b72 Share more state between the parent and its clones, so that our multiple
2001-10-14  Jon Trowbridge  <trow@ximian.com>

	* e-searching-tokenizer.c (e_searching_tokenizer_clone): Share
	more state between the parent and its clones, so that our multiple
	tokenizers don't get out of sync when we are rendering frames and
	iframes. (Bug #11638)

svn path=/trunk/; revision=13671
2001-10-14 18:32:26 +00:00
b407e779ce Bad hacker! Don't implicitly assume that utf8 characters are one byte in
2001-10-13  Jon Trowbridge  <trow@ximian.com>

	* e-searching-tokenizer.c (search_info_compare): Bad hacker!
	Don't implicitly assume that utf8 characters are one byte in size!
	(Bug #9520)
	(e_searching_tokenizer_begin): As long as I'm touching those code:
	don't increase the size of search matches.  I'll fix the colors
	later. (part of bug #11589)

svn path=/trunk/; revision=13667
2001-10-14 04:17:24 +00:00
1f52a5d0fa Use secondary searches here, so that we control the interference between
2001-05-14  Jon Trowbridge  <trow@ximian.com>

        * folder-browser.c (folder_browser_config_search): Use secondary
        searches here, so that we control the interference between the two
        bits of searching UI.

2001-05-13  Jon Trowbridge  <trow@ximian.com>

        * mail-search.c (mail_search_construct): Destroy the MailSearch
        dialog if the underlying MailDisplay is destroyed.  I don't like
        the way that label in the dialog with the message subject in it
        looks, so I've #ifdef-ed it out for now.  Center the Matches
        label --- it makes the dialog look more balanced, I think.
        (dialog_clicked_cb): Changed to reflect adjusted
        ESearchingTokenizer API, using primary searches.
        (toggled_case_cb): Use the primary search API.

        * e-searching-tokenizer.c: Make searching routines utf8-friendly.
        Rationalize how the match begin/end markup is handled; allow for
        begin/end markup that varies by search.  Add concept of primary and
        secondary matching, to disentangle possible interactions between
        search-bar searches and search-dialog searches.

svn path=/trunk/; revision=9789
2001-05-14 05:06:16 +00:00
daf971fbe5 Remove a snippet of debugging code I left in by mistake.
2001-05-11  Jon Trowbridge  <trow@ximian.com>

	* e-searching-tokenizer.c (e_searching_tokenizer_new):
	Remove a snippet of debugging code I left in by mistake.

svn path=/trunk/; revision=9761
2001-05-11 18:31:05 +00:00
59c9d146b9 Use the ESearchingTokenizer to highlight search matches for folder-level
2001-05-10  Jon Trowbridge  <trow@ximian.com>

	* folder-browser.c (folder_browser_config_search): Use the
	ESearchingTokenizer to highlight search matches for folder-level
	searches.  Still mildly broken, but it works for the simple cases.

	* mail-display.c (mail_display_new): Use our ESearchingTokenizer
	for the mail display GtkHTML widget.

	* mail-search.c (dialog_clicked_cb): Use the ESearchingTokenizer to
	highlight search matches.
	(mail_search_construct): Add a match count to the search dialog.

	* e-searching-tokenizer.c
	(e_searching_tokenizer_set_search_string): Added.  A custom HTML
	tokenizer that does highlighting of search strings.

svn path=/trunk/; revision=9754
2001-05-11 04:27:35 +00:00