aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-part.c
Commit message (Collapse)AuthorAgeFilesLines
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-76/+76
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* 2007-09-12 mcrha Fix for bug #473514Milan Crha2007-09-121-1/+2
| | | | svn path=/trunk/; revision=34239
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-2/+2
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* Fix compilation warnings in filter directory (#439118).Matthew Barnes2007-06-031-11/+11
| | | | svn path=/trunk/; revision=33624
* ** Fixes bug #419524Matthew Barnes2007-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
* cast lenght specifiers to int.Not Zed2005-01-121-2/+2
| | | | | | | | | 2005-01-11 Not Zed <NotZed@Ximian.com> * filter-part.c (filter_part_expand_code): cast lenght specifiers to int. svn path=/trunk/; revision=28372
* ** See #59885.Not Zed2004-06-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-17 Not Zed <NotZed@Ximian.com> ** See #59885. ** Moved all of the mailer specific filter stuff into mail/*. * filter-element.c (copy_value): implement for base types. * filter-element.c (filter_element_copy_value): do this as a virtual method. * filter.glade: moved the vfolder stuff to mail/ * libfilter-i18n.h: removed, moved to mailer. * filter-errors.xml: moved the vfolder/filtering errors to the mail error file. * Makefile.am (EXTRA_DIST): moved *types.xml to mail. (INCLUDES): removed a bunch of mail dependencies. * filter-*.[ch], vfolder-*.[ch]: Moved all mail related filter and vfolder stuff to mail directory. * score-*.[ch]: Removed all of it. * vfolder-context.c (vfolder_new_element): and for vfolders. * filter-context.c (filter_new_element): implement for filter element types. * rule-context.c (rc_new_element): replacement for old filter_element_new_type_name. only has the basics. * filter-part.c (filter_part_xml_create): take a rule context as an argument & and look up the element name off the context. * rule-context.c (rule_context_new_element): new virtual method to get an element for a given name. * filter-element.c (filter_element_new_type_name): removed. svn path=/trunk/; revision=26379
* Hide the separators on these dialogs Re-pack the rule_editor widget inRodney Dawes2004-03-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-15 Rodney Dawes <dobey@ximian.com> * filter-datespec.c (validate): (button_clicked): Hide the separators on these dialogs * filter-editor.c (filter_editor_new): Re-pack the rule_editor widget in here, and get rid of the GtkFrame-related code * filter-file.c (validate): Hide the separators on these dialogs * filter-filter.c (get_widget): Get rid of the GtkFrame, and relayout the widgets to be HIG-compliant * filter-folder.c (validate): Hide the separator on this dialog * filter-input.c (validate): Hide the separator on this dialog * filter-part.c (main): Hide the separator on this dialog * filter-rule.c (validate): Hide the separator on this dialog (get_widget): Get rid of the GtkFrame, and relayout the widgets to be HIG-compliant * filter.glade: Make the widget layouts here be HIG-compliant * rule-context.c (new_rule_response): (rule_context_add_rule_gui): Hide the separators on these dialogs * rule-editor.c (rule_editor_new): Get rid of the GtkFrame-related code (add_editor_response): Hide the dialog separator here (rule_add): Hide the dialog separator here (edit_editor_response): Hide the dialog separator here (rule_edit): Hide the dialog separator here (rule_editor_construct): Remove the rule_editor repacking code Set the dialog vbox's border width to 12 Set the mnemonic for the filter label here Hide the dialog separator on the filter editor dialog * vfolder-editor.c (vfolder_editor_new): Re-pack the appropriate editor widget in here Get rid of the GtkFrame-related code * vfolder-rule.c (validate): Hide the dialog separators here svn path=/trunk/; revision=25083
* more fixesJeffrey Stedfast2003-01-031-3/+3
| | | | svn path=/trunk/; revision=19203
* Get the root node properly.Not Zed2002-11-131-3/+3
| | | | | | | | | | | | | | | | | | 2002-11-13 Not Zed <NotZed@Ximian.com> * rule-context.c (load): Get the root node properly. * rule-editor.c (rule_add): cast g_object_weak_ref (rule_edit): " * all: xml2 node change - childs->children. Also, ignore 'text' nodes while scanning tree. * rule-context.h: gnome-xml->libxml. * filter-element.h: gnome-xml->libxml svn path=/trunk/; revision=18732
* Use a GtkDialog instead of a GnomeDialog for reporting errors.Jeffrey Stedfast2002-11-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-07 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (validate): Use a GtkDialog instead of a GnomeDialog for reporting errors. * rule-editor.c (rule_add): Use a GtkDialog instead of GnomeDialog. (rule_edit): Same. (add_editor_response): Use a GtkMessageDialog for the error reporting instead of a GnomeDialog. (edit_editor_response): Same. * rule-context.c (rule_context_add_rule_gui): Use a GtkDialog instead of a GnomeDialog. * filter-rule.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-input.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-folder.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-file.c (validate): Use GtkDialog instead of GnomeDialog here. * rule-editor.c: Subclass GtkDialog instead of GnomeDialog. * filter-datespec.c (validate): Use GtkDialog instead of GnomeDialog. (button_clicked): Same. svn path=/trunk/; revision=18651
* Use GtkDialog instead of GnomeDialog here.Jeffrey Stedfast2002-11-081-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | 2002-11-07 Jeffrey Stedfast <fejj@ximian.com> * filter-rule.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-input.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-folder.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-file.c (validate): Use GtkDialog instead of GnomeDialog here. * rule-editor.c: Subclass GtkDialog instead of GnomeDialog. * filter-datespec.c (validate): Use GtkDialog instead of GnomeDialog. (button_clicked): Same. svn path=/trunk/; revision=18635
* a ton more build fixesJeffrey Stedfast2002-11-061-4/+3
| | | | svn path=/trunk/; revision=18582
* Ported.Jeffrey Stedfast2002-11-051-93/+79
| | | | | | | | 2002-11-04 Jeffrey Stedfast <fejj@ximian.com> * filter-part.c: Ported. svn path=/trunk/; revision=18540
* Use fs->type in xmlGetProp since we already free'd 'type'. Fixes bugJeffrey Stedfast2002-07-271-1/+1
| | | | | | | | | 2002-07-26 Jeffrey Stedfast <fejj@ximian.com> * filter-int.c (xml_decode): Use fs->type in xmlGetProp since we already free'd 'type'. Fixes bug #28113. svn path=/trunk/; revision=17622
* ** fixes for #10781Not Zed2002-07-151-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-10 Not Zed <NotZed@Ximian.com> ** fixes for #10781 * filter-int.c (xml_encode): (xml_decode): Handle encoding/decoding with a type name, in a manner compatible with the score/label elemtns. (filter_int_new_type): New constructor to create a generic 'int' type. * filter-score.c: Removed. Now relies on using a filter-int with appropriate settings. * filter-label.[ch]: Now inherits from filter-int. * rule-context.c (rule_context_revert): New method to revert a filter context back to a user-file's definition. (revert): implementation. * filter-rule.h: Added new virtual method _eq and wrapper, and fixed all subclasses to implement it. * filter-element.h: Added new virtual method _eq and wrapper. Fixed all subclasses to implement it. svn path=/trunk/; revision=17448
* Copy values across to new part.Not Zed2002-02-261-0/+30
| | | | | | | | | | | | | | | | | | 2002-02-26 Not Zed <NotZed@Ximian.com> * filter-filter.c (option_activate): Copy values across to new part. * filter-rule.c (option_activate): copy values across to new part, if they are compatible. * filter-element.c (filter_element_copy_value): New function to copy values (where they can be) from one filter element to another. * filter-part.c (filter_part_copy_values): New function to copy values of a filter part. #1359. svn path=/trunk/; revision=15841
* Fixing the license text.Ettore Perazzoli2001-10-281-11/+11
| | | | svn path=/trunk/; revision=14215
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-1/+1
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* Blah blah fix for xml1 broken utf8 encoding, and use "g" memory for allNot Zed2001-04-261-16/+30
| | | | | | | | | | 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
* Plug memory leaks.Dan Winship2001-04-191-1/+0
| | | | | | | | | | | | | | * 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
* Make the (previously unused) get-source command actually do the rightJon Trowbridge2001-04-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* Fix headers. Same here. Same here. Same here. Same here. Same here. SameKjartan Maraas2001-04-051-0/+2
| | | | | | | | | | | | | | | | 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
* Fix headers. Remove unneccesary ones and replace with more finegrainedKjartan Maraas2001-03-301-1/+7
| | | | | | | | | 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
* Since we are now using filter-option widgets in place of system-flag, weJeffrey Stedfast2001-03-181-1/+1
| | | | | | | | | | | 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
* Little utf8 safe encoding/decoding into libxml1 brokennessLauris Kaplinski2001-01-031-4/+15
| | | | svn path=/trunk/; revision=7226
* Moved the regex filter rule around - we've changed the format a bit.Jeffrey Stedfast2000-11-281-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-27 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Moved the regex filter rule around - we've changed the format a bit. * filter-option.c (option_activate): Removed. (get_widget): Don't connect the activate signal. * filter-folder.c (validate): Updated. * filter-datespec.c (validate): Updated. * filter-part.c (filter_part_validate): Updated. * filter-input.c (validate): Check the filter-input type - if it's of type "regex", then check for regex validity. * filter-element.c (filter_element_validate): No longer takes a gpointer argument. (filter_element_new_type_name): Allow type "regex" and create a new filter-input with type "regex". 2000-11-24 Michael Meeks <michael@helixcode.com> * filter-message-search.c (get_full_header): impl. (header_full_regex): use it. 2000-11-23 Michael Meeks <michael@helixcode.com> * filter-message-search.c (header_full_regex): impl. svn path=/trunk/; revision=6685
* If a regex option is selected, change the FilterElement data to TRUE elseJeffrey Stedfast2000-10-311-0/+19
| | | | | | | | | | | | | | | | | | | | | | 2000-10-30 Jeffrey Stedfast <fejj@helixcode.com> * filter-option.c (option_activate): If a regex option is selected, change the FilterElement data to TRUE else set to FALSE. * filter-rule.c (more_parts): Validate the previously entered FilterPart before allowing the user to add a new FilterPart. * filter-part.c (filter_part_validate): New convenience function to validate an entire FilterPart expression. * filter-input.c (validate): Validate the entry text if it contains a regular expression. * filter-element.[c,h]: New virtual function to validate the contents of the FilterElement (useful for regex and sexp). (filter_element_validate): You get the idea... svn path=/trunk/; revision=6285
* Pure formatting changes, no actual code changes. Since I know I'm going toJeffrey Stedfast2000-10-311-112/+131
| | | | | | | | | | | | | | | | 2000-10-30 Jeffrey Stedfast <fejj@helixcode.com> * filter-input.c: * filter-option.c: * filter-part.c: Pure formatting changes, no actual code changes. Since I know I'm going to get flamed for this, I'm sorry but I'll probably have to modify code in these files and it's easier if the code is quickly readable by me. * filter-rule.c (get_widget): Set the "remove" button insensitive for <= 1 instead of == 1. svn path=/trunk/; revision=6283
* lots of i18n fixesDan Winship2000-10-241-1/+1
| | | | svn path=/trunk/; revision=6143
* Fixed these widgets to resize properly.Christopher James Lahey2000-10-241-1/+2
| | | | | | | | | | 2000-10-23 Christopher James Lahey <clahey@helixcode.com> * filter-editor.c, filter-filter.c, filter-folder.c, filter-part.c, filter-rule.c, rule-context.c, score-editor.c, vfolder-editor.c: Fixed these widgets to resize properly. svn path=/trunk/; revision=6117
* A bunch of small GUI fixes for the filter editor.Ettore Perazzoli2000-08-181-1/+1
| | | | svn path=/trunk/; revision=4866
* ** Almost a total rewrite of every file, except for filter-driver whichNot Zed2000-07-301-0/+432
2000-07-30 Not Zed <NotZed@HelixCode.com> ** Almost a total rewrite of every file, except for filter-driver which just had minor updates. The rule format has changed. svn path=/trunk/; revision=4418