Commit Graph

246 Commits

Author SHA1 Message Date
bc4d011ab1 Do an evil kludgy hack so that the Rule Name entry widget gets focused
2001-08-03  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-rule.c (get_widget): Do an evil kludgy hack so that the
	Rule Name entry widget gets focused when the filter editor is
	shown.

svn path=/trunk/; revision=11626
2001-08-03 21:52:41 +00:00
8b9b15e2ad Wrap some debug printf's with d().
2001-08-02  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-rule.c: Wrap some debug printf's with d().

	* rule-context.h: Removed prototype for rule_context_delete_rule()
	since the function doesn't exist.

svn path=/trunk/; revision=11600
2001-08-02 22:24:58 +00:00
d74bff323f Sync for the release.
svn path=/trunk/; revision=11530
2001-07-31 19:28:49 +00:00
19988e2555 Added a validate function that checks to make sure that vfolders that have
2001-07-23  Jon Trowbridge  <trow@ximian.com>

	* vfolder-rule.c (validate): Added a validate function
	that checks to make sure that vfolders that have "specific
	folders" as their source actually have a non-empty list of
	source folders selected.  (Bug #4937)
	(get_widget): If fr->source is NULL for some reason, bring
	it into sync with the default in the option menu.

svn path=/trunk/; revision=11336
2001-07-24 02:48:24 +00:00
71717b8577 Change the butt-ugly UI to a saner (and just as flexible) one. Instead of
2001-07-23  Peter Williams  <peterw@ximian.com>

	* filter-datespec.c (make_span_editor): Change the butt-ugly
	UI to a saner (and just as flexible) one. Instead of all those
	spinbuttons, just have one and let the user select the time unit.
	(omenu_item_activated): New function. When the user changes the
	time unit, convert it from the old number. Pretty.
	(adj_value_changed): This function is now simpler.
	(set_adjustments): Also modified for new UI model.
	(button_clicked): Set the selected_type before calling the callback.
	(FilterDatespecPrivate): Members change a bit.
	(filter_datespec_init): No longer need to allocation spinbuttons
	(filter_datespec_finalise): No longer need to free spinbuttons.

svn path=/trunk/; revision=11312
2001-07-23 18:56:01 +00:00
ebed1c3e17 Removed the "Forward To" filter action.
2001-07-20  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Removed the "Forward To" filter action.

svn path=/trunk/; revision=11278
2001-07-20 21:22:31 +00:00
3a489414b6 Return -1 if we don't find it? This is what most of the code expected but
2001-07-18  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-context.c (rule_context_get_rank_rule): Return -1 if we
	don't find it? This is what most of the code expected but not what
	we were returning on fail.

svn path=/trunk/; revision=11206
2001-07-18 19:15:08 +00:00
160eb8c6e9 Marked string for translation.
* filter-datespec.c (stringify_agoness): Marked string for translation.

svn path=/trunk/; revision=11060
2001-07-12 20:40:29 +00:00
b0dabea18b Users should not be able to filter on "Status is Deleted" since we don't
2001-07-12  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Users should not be able to filter on "Status
	is Deleted" since we don't allow that in the filter driver code.

svn path=/trunk/; revision=11049
2001-07-12 17:43:54 +00:00
0dd6f19775 Copied the "Attachments" rule part over from filtertypes.xml, would be a
2001-07-11  Jason Leach  <jleach@ximian.com>

	* vfoldertypes.xml: Copied the "Attachments" rule part over from
	filtertypes.xml, would be a powerful feature for vfolders (see all
	the patches across all folders, or all the attachments you've sent,
	without having to duplicate potentially big files, blah blah, bug
	#1155).

svn path=/trunk/; revision=10996
2001-07-11 12:22:31 +00:00
e037631553 Put a match-all around the not-body-contains to make it work per-message.
2001-07-10  Peter Williams  <peterw@ximian.com>

	* vfoldertypes.xml: Put a match-all around the not-body-contains
	to make it work per-message.

	* filtertypes.xml: Same.

svn path=/trunk/; revision=10962
2001-07-10 18:46:40 +00:00
d6286b4cba Set the focus on the title of the filter rule.
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-rule.c (get_widget): Set the focus on the title of the
	filter rule.

svn path=/trunk/; revision=10921
2001-07-09 18:15:49 +00:00
3adc63f509 2001-07-09 Anna Marie Dirks
*rule-context.c (rule_context_add_rule_gui): Increased the size
	of the "Add Filter Rule" dialog to 600 x 400, so that no resizing
	is necessary to use the dialog.

svn path=/trunk/; revision=10914
2001-07-09 16:28:54 +00:00
ae4d9b95a1 Bonobo-conf-ified. Removed /home/trow hard-wiring. :) (xml_encode): Encode
2001-07-09  Jon Trowbridge  <trow@ximian.com>

	* filter-source.c (filter_source_get_sources): Bonobo-conf-ified.
	Removed /home/trow hard-wiring. :)
	(xml_encode): Encode things properly.
	(xml_decode): Decode things properly.
	(get_widget): Ignore accounts w/o source URLs.
	(clone): Set the ->name in our copy.

svn path=/trunk/; revision=10903
2001-07-09 05:06:04 +00:00
03ec245d4e Select the most appropriate filter rule.
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_delete): Select the most appropriate filter
	rule.

svn path=/trunk/; revision=10836
2001-07-06 00:14:36 +00:00
f09882063f oops, forgot to commit ChangeLog
svn path=/trunk/; revision=10833
2001-07-05 22:41:38 +00:00
e18a28a56c Fix bug #4043: s/colour/color
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Fix bug #4043: s/colour/color

svn path=/trunk/; revision=10832
2001-07-05 22:39:39 +00:00
401d5cd43d Prevent crashing while we work this out.
001-07-03  Peter Williams  <peterw@ximian.com>

	* filter-source.c (get_widget): Prevent crashing while we work this out.

	* filter-rule.c (get_widget): Don't try to gtk_widget_grab_default
	with a widget that can't be the default. Altough it should be able
	to....

svn path=/trunk/; revision=10771
2001-07-03 22:24:37 +00:00
793f0a6b86 Added an integer type for filtering values. used for size.
2001-07-02  Sam Creasey <sammy@oh.verio.com>
        * filter-int.c: Added an integer type for filtering values.  used
        for size.

        * Makefile.am (SOURCES): added filter-int.c, filter-int.h

        * filtertypes.xml: added a part entry for size based filters

svn path=/trunk/; revision=10717
2001-07-03 02:54:48 +00:00
9550352fc5 Changed "Add criterion" button to have normal button relief in response to
2001-07-02  Anna Marie Dirks <anna@ximian.com>

	* filter-rule.c (get_widget): Changed "Add criterion" button to have
	normal button relief in response to complaints of it not appearing
	clickable.

	* filter-filter.c: Changed "Add action" button to have normal button
	relief in response to complaints of it not appearing clickable.

svn path=/trunk/; revision=10705
2001-07-02 21:18:08 +00:00
c386fa4ea6 Set the filter-rule dialog to be user-resizable.
2001-06-29  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_editor_construct): Set the filter-rule
	dialog to be user-resizable.

svn path=/trunk/; revision=10607
2001-06-29 21:00:24 +00:00
b195445a97 Make "Move" the default action.
2001-06-27  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Make "Move" the default action.

svn path=/trunk/; revision=10533
2001-06-27 16:43:16 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
c1a0dc0e04 Deleted Gediminas patch.
2001-05-08  Not Zed  <NotZed@Ximian.com>

	* filter-rule.c: Deleted Gediminas patch.

svn path=/trunk/; revision=9709
2001-05-08 01:08:52 +00:00
0a9bafb949 Fix for #2253 (search names not translated), mail-search i18n fixes.
2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* searches.xml: replace title> with _title>. Part of fix to #2253.

2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* mail-search.c: convert search entry to utf8.

	* mail-local.c: d() debugging message.

	* mail-send-recv.c: replace " ..." with "..."

	* Makefile.am: removed EVOLUTION_VERSION.

2001-05-07  Gediminas Paulauskas <menesis@delfi.lt>

	* POTFILES.in: add mail/mail-search.c

2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* misc/e-search-bar.c (add_dropdown), (set_option): first try to
	translate, then if not suceeded -- convert from utf8. This handles
	cases when menuitem needs to be translated (it is passed as N_()), or is
	utf8 search title. However you cannot have a search like "Folders" -- it
	is translated. Part of fix for #2253.

	* misc/e-filter-bar.c: d() debugging strings. Use E_FILTERBAR_ADVANCED
	macro instead of own "Advanced ..." for consistency.

2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* filter-rule.c (xml_decode): allow "_title" in user rules. translate
	them and encode to utf8.
	(get_rule_part_widget): do not call gettext on part->title. It is always
	translated already.

svn path=/trunk/; revision=9706
2001-05-08 00:26:58 +00:00
6738df5abd Set the default size of the dialog to 600x400, which seems to be a nice
2001-04-26  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_edit): Set the default size of the dialog to
	600x400, which seems to be a nice size that fits all the widgets
	into it.
	(rule_add): Same.

svn path=/trunk/; revision=9604
2001-04-26 23:21:39 +00:00
8af4ab06a2 Remove UNICODE_CFLAGS
* Makefile.am (INCLUDES): Remove UNICODE_CFLAGS

svn path=/trunk/; revision=9582
2001-04-26 15:13:40 +00:00
42aa29e62e Blah blah fix for xml1 broken utf8 encoding, and use "g" memory for all
2001-04-26  Not Zed  <NotZed@Ximian.com>

        * filter-part.c (filter_part_xml_create): Blah blah fix for xml1
        broken utf8 encoding, and use "g" memory for all allocations.
        (filter_part_finalise): Free our data properly.

svn path=/trunk/; revision=9572
2001-04-26 01:22:21 +00:00
bdcd8bd859 Pull up fix for translation of filter direction drop down menu from the
2001-04-20  Kjartan Maraas  <kmaraas@gnome.org>

	* filter-rule.c: Pull up fix for translation of filter
	direction drop down menu from the branch.

svn path=/trunk/; revision=9475
2001-04-20 17:57:09 +00:00
0c90cd7dda Plug memory leaks.
* filter-colour.c, filter-datespec.c, filter-folder.c,
        filter-input.c, filter-option.c, filter-rule.c, filter-score.c,
        filter-source.c, score-rule.c (xml_decode): Plug memory leaks.

        * rule-context.c (rule_context_finalise): Implement. Free stuff.

        * filter-element.h: #include <gnome-xml/xmlmemory.h> here for xmlFree

        * filter-filter.c, filter-part.c: Remove xmlmemory.h #include

svn path=/trunk/; revision=9451
2001-04-18 18:04:13 +00:00
f74e4c3046 s/Is/is/ and s/Is Not/is not/ to be more consistant with the rest.
2001-04-15  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: s/Is/is/ and s/Is Not/is not/ to be more
	consistant with the rest.

svn path=/trunk/; revision=9331
2001-04-15 21:14:43 +00:00
daf16dd6e7 Oops --- I forgot to add these files before my last commit.
svn path=/trunk/; revision=9305
2001-04-13 22:08:39 +00:00
0eb8afc1d0 Make the (previously unused) get-source command actually do the right
2001-04-13  Jon Trowbridge  <trow@gnu.org>

	* camel-filter-search.c (get_source): Make the (previously unused)
	get-source command actually do the right thing, properly shrouding
	any passed-in source and falling back to use the source attached
	to the mime message.


2001-04-13  Jon Trowbridge  <trow@gnu.org>

	* filtertypes.xml: Add XML specs for source account filtering.

	* filter-element.c (filter_element_new_type_name): Recognize
	type "source", construct a FilterSource.

	* filter-source.c: Added.  A FilterElement for the account e-mail
	comes from.

svn path=/trunk/; revision=9304
2001-04-13 22:08:03 +00:00
f66390af64 Here goes my additional simple include fixes.
svn path=/trunk/; revision=9191
2001-04-05 00:39:19 +00:00
9c7c90a74f Fix headers. Same here. Same here. Same here. Same here. Same here. Same
2001-04-04  Kjartan Maraas  <kmaraas@gnome.org>

	* filter-editor.c: Fix headers.
	* filter-filter.c: Same here.
	* filter-option.c: Same here.
	* filter-part.c: Same here.
	* filter-rule.c: Same here.
	* rule-editor.c: Same here.
	* score-editor.c: Same here.
	* vfolder-editor.c: Same here.
	* vfolder-rule.c: Same here.

svn path=/trunk/; revision=9182
2001-04-04 20:44:13 +00:00
0884233afc Set the newpart on the container object. (less_parts): Remove the rule tht
2001-04-02  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-filter.c (option_activate): Set the newpart on the
	container object.
	(less_parts): Remove the rule tht the user wants to remove.
	(attach_rule): Attach a new rule and it's remove button to the end
	of the table.
	(more_parts): Fix to resize the table and such.
	(get_widget): Don't have a remove action button, we are putting
	this next to the rule part now.

	* filter-rule.c (option_activate): Set the newpart on the
	container object.
	(less_parts): Remove the rule tht the user wants to remove.
	(attach_rule): Attach a new rule and it's remove button to the end
	of the table.
	(more_parts): Fix to resize the table and such.
	(get_widget): Don't have a remove action button, we are putting
	this next to the rule part now.

svn path=/trunk/; revision=9115
2001-04-03 02:22:17 +00:00
69514b2bb1 Fix headers. Remove unneccesary ones and replace with more finegrained
2001-03-30  Kjartan Maraas  <kmaraas@gnome.org>

	* *.*: Fix headers. Remove unneccesary ones and replace
	with more finegrained ones where needed.

svn path=/trunk/; revision=9028
2001-03-29 21:18:50 +00:00
93d35480d8 Oops, an unspecified date is '0', not -1.
2001-03-22  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-datespec.c (validate): Oops, an unspecified date is '0',
	not -1.

svn path=/trunk/; revision=8910
2001-03-23 01:35:47 +00:00
aedb33b3af Validate the rule before closing.
2001-03-21  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-context.c (new_rule_clicked): Validate the rule before
	closing.

svn path=/trunk/; revision=8879
2001-03-22 00:14:29 +00:00
88300ba1fd Set the editor dialog modal rather than setting the filter dialog
2001-03-20  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_edit): Set the editor dialog modal rather
	than setting the filter dialog insensitive. Also ref re->edit
	since we unref it when the editor closes. This should fix bug
	#1905.
	(edit_editor_clicked): No need to set the filter dialog sensitive
	again.
	(rule_add): Set the add-rule dialog modal and don't set the filter
	dialog insensitive.
	(add_editor_clicked): No need to set the filter dialog sensitive
	again.

svn path=/trunk/; revision=8858
2001-03-20 23:53:23 +00:00
be6335128d Since we are now using filter-option widgets in place of system-flag, we
2001-03-17  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-option.c (build_code): Since we are now using
	filter-option widgets in place of system-flag, we do not need a
	"code" part so if there isn't a code part, don't build it.
	(clone): Updated to allow NULL code parts.

svn path=/trunk/; revision=8789
2001-03-17 23:54:01 +00:00
4c484d7536 If the filter type is a "system-flag", use the optionlist type as type
2001-03-17  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-element.c (filter_element_new_type_name): If the filter
	type is a "system-flag", use the optionlist type as type
	system-flag has been removed. This should allow backward
	compatability.

svn path=/trunk/; revision=8785
2001-03-17 20:50:06 +00:00
22190776d3 Remove the menu that is in the glade file because we want to replace it
2001-03-17  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-editor.c (filter_editor_construct): Remove the menu that
	is in the glade file because we want to replace it with our menu,
	not append items to that menu.

	* filtertypes.xml: Oops, missed the system-flag action-set.

	* vfoldertypes.xml: Update "status" ruleset.

svn path=/trunk/; revision=8780
2001-03-17 07:00:19 +00:00
ec166c601c removed these blasted files
svn path=/trunk/; revision=8769
2001-03-17 01:47:54 +00:00
988af2ce73 Removed filter-url.[c,h] and filter-system-flag.[c,h]
2001-03-16  Jeffrey Stedfast  <fejj@ximian.com>

	* Makefile.am: Removed filter-url.[c,h] and
	filter-system-flag.[c,h]

	* filter-element.c (filter_element_new_type_name): Removed
	references to the url-type and system-flag types.

	* filtertypes.xml: Removed "source" type and fixed "status" to use
	the optionmenu.

	* filter-url.[c,h]: Removed.

	* filter-system-flag.[c,h]: Removed (just use optionmenu).

svn path=/trunk/; revision=8768
2001-03-17 01:47:23 +00:00
e8fad70e9f Changed the edit_filter to be a standalone window rather than a widget, so
2001-03-15  Not Zed  <NotZed@Ximian.com>

        * filter.glade: Changed the edit_filter to be a standalone window
        rather than a widget, so we can get the rule editor part out
        separately.  Same for vfolder editor, and new score, and basic rule
        editors.

        * score-editor.c (score_editor_new): Turned back on object
        stuff, subclass rule-editor, and removed most of the code.

        * filter-editor.c (filter_editor_new): Turned into an object,
        subclass rule-editor, removed most of the code.  Now we accept the
        source list during create, and plug that into the glade.

        * vfolder-editor.c (vfolder_editor_new): Turned back on object
        stuff, subclass rule-editor, and removed most of the code.

        * Makefile.am (libfilter_la_SOURCES): Added rule-editor.[ch].

        * filter-filter.c (validate): inherit the validate function and
        also validate the actions part of a filterfilter.

        * filter-rule.c (filter_rule_validate): New method so that filter
        rules can validate themselves.
        (validate): Default implementation, validates base rules.

        * rule-editor.h: New generic rule editor, to be used for filter
        editor/vfolder editor/score editor/saved searches editor.

svn path=/trunk/; revision=8729
2001-03-15 06:55:22 +00:00
1e9f8b5d12 create doc/devel/executive-summary/Makefile
2001-03-14  Gediminas Paulauskas <menesis@delfi.lt>

	* configure.in: create doc/devel/executive-summary/Makefile

	* doc/C/Makefile.am: there's no apx-fdl.sgml and evolution-guide.sgml
	anymore

	* filter/filter-system-flag.c: translate status flag title.

svn path=/trunk/; revision=8714
2001-03-14 22:50:55 +00:00
c8d3373a5d Added an "Attachments" filter option where you can filter messages that
2001-03-12  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Added an "Attachments" filter option where you
	can filter messages that have (or do not have) attachments. This
	does not allow you to filter based on the types of the
	attachments.

svn path=/trunk/; revision=8652
2001-03-12 22:58:02 +00:00
61066010dc Make sure we have something selected first ;-)
2001-03-08  Jeffrey Stedfast  <fejj@ximian.com>

	* vfolder-editor.c (double_click): Make sure we have something
	selected first ;-)

	* filter-editor.c (double_click): And here too.

svn path=/trunk/; revision=8599
2001-03-08 21:20:05 +00:00
7c3a6662fe Added option menu to vfolder editor.
2001-03-03  Not Zed  <NotZed@Ximian.com>

        * filter.glade: Added option menu to vfolder editor.

2001-03-02  Not Zed  <NotZed@Ximian.com>

        * vfolder-rule.c (get_widget): Setup the data on the base source
        opiton menu, and make hte option menu reflect the source.
        (select_source_with): Set the source type for this
        rule. e.g. these folders, "with ..."

        * filter-editor.c: Removed the N_() stuff from the source_names
        array, they must not be internationalised!!!

svn path=/trunk/; revision=8533
2001-03-02 23:38:12 +00:00