Commit Graph

449 Commits

Author SHA1 Message Date
7418c7f7e1 After setting the new selected iter, call cursor_changed() so we can
2004-02-20  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_delete): After setting the new selected
	iter, call cursor_changed() so we can update state. Fixes bug
	#54205.

svn path=/trunk/; revision=24823
2004-02-20 20:34:24 +00:00
917375e4d4 ** See bug #54338.
2004-02-20  Not Zed  <NotZed@Ximian.com>

        ** See bug #54338.

        * vfolder-rule.c: instead of overriding the filter-rule's 'source'
        attribute for 'with sources', add a 'with' enum.
        (xml_decode): handle loading old-format files, as well as new
        ones, where the with is a prop on the sources xml.
        (xml_encode): set 'with' on save.
        (rule_copy): copy across with value.
        (get_widget): just hook onto option menu changed, dont bother
        setting up any per-item callbacks.
        (select_source_with_changed): callback to monitor source 'with'
        type.

svn path=/trunk/; revision=24815
2004-02-20 09:26:17 +00:00
d83995108d implement, since we dont store the min/max values in the xml output, we
2004-02-17  Not Zed  <NotZed@Ximian.com>

        * filter-int.c (int_clone): implement, since we dont store the
        min/max values in the xml output, we lose it otherwise.  Bug
        #54155.

svn path=/trunk/; revision=24757
2004-02-17 07:01:13 +00:00
08df2dcd19 Default to an empty string for the value. (xml_decode): Remove old values
2004-02-06  Hans Petter Jansson  <hpj@ximian.com>

	* filter-input.c (filter_input_init): Default to an empty string
	for the value.
	(xml_decode): Remove old values before decoding the new ones.

svn path=/trunk/; revision=24660
2004-02-06 21:00:47 +00:00
234e62851e add widgets/misc
* Makefile.am (INCLUDES): add widgets/misc

svn path=/trunk/; revision=24587
2004-02-03 17:32:18 +00:00
088cda970e autogenerated file out of sync in CVS
svn path=/trunk/; revision=24379
2004-01-23 14:42:42 +00:00
1d92e96ba8 load from the just-loaded 'userdoc' rather than rc->user.
2004-01-20  Not Zed  <NotZed@Ximian.com>

        * rule-context.c (revert): load from the just-loaded 'userdoc'
        rather than rc->user.
        (rule_context_finalise): remove user and system xmldoc files.
        (load): make rc->system and rc->user locals systemdoc userdoc, and
        free them immediately.

svn path=/trunk/; revision=24321
2004-01-20 04:29:32 +00:00
21d0e891e2 ** See bug #52467.
2004-01-16  Not Zed  <NotZed@Ximian.com>

        ** See bug #52467.

        * vfolder-rule.c (vfr_folder_response): convert the uri to an
        evolution uri, rather than a camel one, for storage.  And remove
        double-calls to geT_selected_uri.
        (format_source): treat uri as an evolution uri and convert to a
        camel one to get something meaningful out of it.

svn path=/trunk/; revision=24265
2004-01-16 07:00:22 +00:00
77aa60234c s/spam/junk, added junk test rule, it must be lost while porting to 1.5
2004-01-15  Radek Doulik  <rodo@ximian.com>

	* filtertypes.xml: s/spam/junk, added junk test rule, it must be
	lost while porting to 1.5

svn path=/trunk/; revision=24240
2004-01-15 15:06:31 +00:00
56ff628281 ** See bug #47751.
2003-08-20  Not Zed  <NotZed@Ximian.com>

        ** See bug #47751.

        * rule-editor.c (add_editor_response, edit_editor_response)
        (rule_edit, rule_add, rule_editor_construct, editor_response):
        * rule-context.c (new_rule_response, rule_context_add_rule_gui):
        * filter-datespec.c (button_clicked): RESPONSE_REJECT/ACCEPT ->
        RESPONSE_CANCEL/OK

svn path=/trunk/; revision=24082
2004-01-07 00:29:28 +00:00
9f2fcb717f call peek instead of get as the function was renamed
2003-12-23  JP Rosevear <jpr@ximian.com>

	* vfolder-rule.c (source_add): call peek instead of get as the
	function was renamed

svn path=/trunk/; revision=24006
2003-12-23 14:36:34 +00:00
f6b7ede5b1 Remove hard coded disable deprecated flags
2003-12-06  JP Rosevear <jpr@ximian.com>

	* */Makefile.am: Remove hard coded disable deprecated flags

svn path=/trunk/; revision=23658
2003-12-06 18:08:00 +00:00
4c1234f546 added FILTER_SOURCE_JUNKTEST - perform only junktest on incoming mail
2003-12-04  Radek Doulik  <rodo@ximian.com>

	* filter-rule.h: added FILTER_SOURCE_JUNKTEST - perform only
	junktest on incoming mail

svn path=/trunk/; revision=23628
2003-12-04 14:10:52 +00:00
884b9e0598 turn on deprecated gtk stuff
2003-11-26  JP Rosevear  <jpr@ximian.com>

	* Makefile.am: turn on deprecated gtk stuff

svn path=/trunk/; revision=23493
2003-11-26 15:30:12 +00:00
6ac2fee6bc #include "em-folder-tree.h"
2003-11-17  Jeffrey Stedfast  <fejj@ximian.com>

	* vfolder-rule.c: #include "em-folder-tree.h"

svn path=/trunk/; revision=23382
2003-11-17 05:58:21 +00:00
41348bb945 fix for folder selector api changes. (vfr_folder_response): handle the
2003-11-17  Not Zed  <NotZed@Ximian.com>

        * vfolder-rule.c (source_add): fix for folder selector api changes.
        (vfr_folder_response): handle the dialog response.

svn path=/trunk/; revision=23380
2003-11-17 05:43:39 +00:00
8e1251fa17 merged spam filtering branch
svn path=/trunk/; revision=23302
2003-11-12 21:13:05 +00:00
0e89f43c02 Remove Viewports around the treeviews, since they already have a scrolled
* filter.glade: Remove Viewports around the treeviews, since they
already have a scrolled window around them and the viewports cause
a double bevel to appear.

* rule-editor.c (rule_editor_treeview_new): Make the scrolled
window have a GTK_SHADOW_IN shadow.
* vfolder-rule.c (vfolder_editor_sourcelist_new): Likewise

svn path=/trunk/; revision=22997
2003-10-22 19:26:40 +00:00
21743ac2cf Merge new-ui-branch into the trunk.
svn path=/trunk/; revision=22966
2003-10-21 18:51:30 +00:00
5d47e3740b Listen to the "value-changed" signal rather than the "changed" signal.
2003-09-22  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-int.c (get_widget): Listen to the "value-changed" signal
	rather than the "changed" signal. Fixes bug #48166.

svn path=/trunk/; revision=22646
2003-09-22 18:40:41 +00:00
e8c9e32de8 type should be a GType. (rule_context_add_rule_set): Likewise. Update
2003-09-16  Jeremy Katz  <katzj@redhat.com>

	* rule-context.c (rule_context_add_part_set): type should be a GType.
	(rule_context_add_rule_set): Likewise.
	* rule-context.h: Update prototypes.  Use GType instead of int for
	type in _part_set_map and _rule_set_map.

svn path=/trunk/; revision=22593
2003-09-16 21:15:38 +00:00
e62d27cf3c forgot to commit. new search types xml file.
svn path=/trunk/; revision=22586
2003-09-16 16:13:07 +00:00
99274a9570 ** See Natzilla task #47524
2003-09-15  Not Zed  <NotZed@Ximian.com>

        ** See Natzilla task #47524

        * filter-rule.h (FilterRule): add a system bit, for rules that
        shouldn't be edited/saved.

        * rule-context.c (load): check for ruleset maps in the system
        file, and if they exist, load in as system rules.
        (save): ignore system rules if they exist.

        * searchtypes.xml: Added a search-specific types folder.  Also
        contains system searches that cannot be deleted.

svn path=/trunk/; revision=22581
2003-09-15 22:43:15 +00:00
9c6056e601 ** See bug #42636.
2003-08-05  Not Zed  <NotZed@Ximian.com>

        ** See bug #42636.

        * vfoldertypes.xml: Fix some of the subject rules, they were
        missing matching ')'s.

2003-08-01  Not Zed  <NotZed@Ximian.com>

        ** See bug #47208.

        * filter-code.c (build_code): wrap the expression in a match-all
        so boolean expressions work properly for folder searches.

svn path=/trunk/; revision=22090
2003-08-05 21:12:14 +00:00
dbd246a88e Use EVO_MARSHAL_RULE
* Makefile.am: Use EVO_MARSHAL_RULE

svn path=/trunk/; revision=21919
2003-07-23 16:46:16 +00:00
601f9ed9e5 free current_url.
2003-06-13  Larry Ewing  <lewing@ximian.com>

	* filter-source.c (filter_source_finalize): free current_url.

svn path=/trunk/; revision=21435
2003-06-13 17:26:40 +00:00
51ca9977c7 Put the ChangeLog.pre-1-4 in the Makefiles.
svn path=/trunk/; revision=21426
2003-06-12 21:13:59 +00:00
59581dc2d3 stat the user file before parsing.
2003-06-11  Mike Kestner  <mkestner@ximian.com>

	* rule-context.c (load): stat the user file before parsing.

svn path=/trunk/; revision=21408
2003-06-11 15:56:38 +00:00
c67d63acba Fixes some leaks from bug #43883.
2003-06-06  Jeffrey Stedfast  <fejj@ximian.com>

	Fixes some leaks from bug #43883.

	* filter-file.c (xml_decode): Free file->path and set it to
	NULL before entering the loop to decode it. This way if the value
	is already set we don't leak it. Set file->path = g_strdup (str ?
	str : ""); and then xmlFree the str.

2003-05-21  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-source.c (filter_source_get_sources): Same as below.

	* filter-label.c (xml_create): Unref the gconf client when we're
	finished with it.

svn path=/trunk/; revision=21390
2003-06-09 18:17:10 +00:00
fd2f3a6d7a Roll over ChangeLogs.
svn path=/trunk/; revision=21387
2003-06-09 17:31:26 +00:00
433afe99ea Reverted unwanted commit
svn path=/trunk/; revision=21168
2003-05-14 11:06:59 +00:00
a1f14d4b05 Updated NEWS
svn path=/trunk/; revision=21167
2003-05-14 11:01:17 +00:00
3242c9f90c Format the colour string in a way that gdk_color_parse() will handle.
2003-05-05  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-colour.c (format_sexp): Format the colour string in a way
	that gdk_color_parse() will handle. Apparently it no longer
	handles rgb:<red>/<green>/<blue>? Fixes bug #42345.

svn path=/trunk/; revision=21115
2003-05-06 17:54:19 +00:00
8a3def40ba Fix for bug #41578.
2003-04-24  Jeffrey Stedfast  <fejj@ximian.com>

	Fix for bug #41578.

	* rule-editor.c (rule_move): Pass re->source instead of
	re->current->source to rule_context_get_rank_rule(). Also updated
	to pass re->source to rule_context_rank_rule().
	(rule_editor_play_undo): Updated to pass re->source to
	rule_context_rank_rule().

	* rule-context.c (rule_context_rank_rule): Now takes a 'source'
	argument rather than using rule->source (vfolder editor lists
	rules of all sources, not just same-source rules).
	(revert): Pass frule->source/part->source to
	rule_context_rank_rule() - might not be right but should preserve
	the prior behaviour at least.

svn path=/trunk/; revision=21006
2003-04-29 17:08:40 +00:00
36875999d7 removed debug spew.
2003-04-18  Not Zed  <NotZed@Ximian.com>

        * rule-editor.c (d): removed debug spew.

        * addresses #41398

        * vfolder-rule.c (format_source): helper function to decode a url
        into a more user-friendly format.
        (source_add, get_widget): add the formatted data as another
        column to the table.
        (vfolder_editor_sourcelist_new): add another column to the table,
        a formatted uri as well as the raw one.
        (d): turned off debug vomit while i'm here.

svn path=/trunk/; revision=20929
2003-04-23 01:23:42 +00:00
342211ac69 updated the bug list that my last commit fixed (since more bugs have been submitted that were fixed by that previous fix).
svn path=/trunk/; revision=20830
2003-04-11 20:09:26 +00:00
e3f30504ad added more bug #'s
svn path=/trunk/; revision=20826
2003-04-11 19:40:49 +00:00
724b51b4ff Fixes for bugs: #41149, #41150, #41151, #41152, #41153, #41155 and #41156.
2003-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	Fixes for bugs: #41149, #41150, #41151, #41152, #41153, #41155 and
	#41156.

	* filter-filter.c (get_widget): Same as with filter-rule.

	* filter-rule.c (get_widget): Changed border widths of frame
	vboxes and other padding to comply with the HIG.

	* rule-editor.c (rule_add): Change window border and padding
	around the 'rules' widget to comply with the HIG.
	(rule_edit): Same.
	(rule_editor_construct): Same here as well.

	* filter.glade: Many HIG compliance fixes.

svn path=/trunk/; revision=20823
2003-04-11 19:11:50 +00:00
ce898884dc cast warning.
2003-03-28  Not Zed  <NotZed@Ximian.com>

	* filter-datespec.c (button_clicked): cast warning.

svn path=/trunk/; revision=20555
2003-03-27 23:54:16 +00:00
4d4d2a9114 Loop over child nodes here too in order to not be affected by libxml2
2003-03-26  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-file.c (xml_decode): Loop over child nodes here too in
	order to not be affected by libxml2 crack.

	* filter-source.c (xml_decode): Fixed to disreguard libxml2 crack.
	(get_widget): Use strcmp instead of e_url_equal().

svn path=/trunk/; revision=20523
2003-03-26 20:28:54 +00:00
ce0fb06f3e (button_clicked): Fix this so we don't get stuck inside
gtk_dialog_run's main loop forever.

svn path=/trunk/; revision=20433
2003-03-20 17:46:43 +00:00
d8dbc151f0 Change the strings in the timespans array from "second" / "seconds" to "1
* filter-datespec.c (timespans, set_button): Change the strings in
	the timespans array from "second" / "seconds" to "1 second ago" /
	"%d seconds ago", etc, and update the code in set_button that uses
	them. Fixes #36245, translation clash between the "second" here
	and the one in the calendar (where it's used as "2nd").

svn path=/trunk/; revision=20432
2003-03-20 17:09:47 +00:00
1bef6b2b8c Don't return here - this is a void function. (rule_editor_set_source):
2003-03-20  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_editor_set_sensitive): Don't return here -
	this is a void function.
	(rule_editor_set_source): Same.

svn path=/trunk/; revision=20429
2003-03-20 15:52:00 +00:00
3a1c2dfaef use the same code as in filter-rule to enforce unique names for all
2003-03-18  Not Zed  <NotZed@Ximian.com>

        * rule-context.c (new_rule_response): use the same code as in
        filter-rule to enforce unique names for all rules/vfolders.

svn path=/trunk/; revision=20332
2003-03-18 08:21:34 +00:00
8febd0e5ac Set the default window size to something reasonable (350x400?). Fixes bug
2003-03-17  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_editor_construct): Set the default window
	size to something reasonable (350x400?). Fixes bug #39808.

svn path=/trunk/; revision=20323
2003-03-17 22:22:33 +00:00
13398c9928 Fixed to work properly. Fixes bug #39654.
2003-03-17  Jeffrey Stedfast  <fejj@ximian.com>

	* vfolder-rule.c (source_remove): Fixed to work properly. Fixes
	bug #39654.

svn path=/trunk/; revision=20321
2003-03-17 21:44:44 +00:00
32f1cfd13f Always add a Cancel button here, but if !enable_undo - make the response
2003-03-17  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_editor_construct): Always add a Cancel
	button here, but if !enable_undo - make the response id
	GTK_RESPONSE_CANCEL rather than GTK_RESPONSE_REJECT (which does
	undo). This mimics the behaviour that was done in the mail/ code
	previously. Fixes bug #39809.

svn path=/trunk/; revision=20315
2003-03-17 19:53:56 +00:00
d51c9927e5 go to the proper level of child node before looking for rule sets, fix for
2003-03-11  Not Zed  <NotZed@Ximian.com>

        * rule-context.c (revert): go to the proper level of child node
        before looking for rule sets, fix for #39165 to make 'cancel' work.

svn path=/trunk/; revision=20230
2003-03-10 08:15:01 +00:00
d8298a3e80 Fixes for bug #39170
2003-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	Fixes for bug #39170

	* filter-element.c (filter_element_xml_create): Remove return
	keyword.
	(filter_element_build_code): Same.
	(filter_element_format_sexp): Here too.

svn path=/trunk/; revision=20189
2003-03-06 14:51:36 +00:00
87f2abd1f0 Change to use EAccountList, etc.
2003-02-20  Not Zed  <NotZed@Ximian.com>

        * filter-source.c (filter_source_get_sources): Change to use
        EAccountList, etc.

svn path=/trunk/; revision=20014
2003-02-24 02:47:20 +00:00