aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-datespec.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved stuff from e-util to libedataserver.Not Zed2004-12-031-1/+1
| | | | | | | | | | 2004-11-15 Not Zed <NotZed@Ximian.com> * *.c: Moved stuff from e-util to libedataserver. * filter-system-flag.c: removed gal header. svn path=/trunk/; revision=28051
* fix a warning.Not Zed2004-04-281-9/+2
| | | | | | | | | | 2004-04-28 Not Zed <NotZed@Ximian.com> * filter-option.c (filter_option_add): fix a warning. ** Changed error messages to use EError. svn path=/trunk/; revision=25651
* Use ngettext for handling plurals in filter-datespec. Partial fix for #53464).Danilo Šegan2004-03-201-13/+19
| | | | svn path=/trunk/; revision=25135
* Hide the separators on these dialogs Re-pack the rule_editor widget inRodney Dawes2004-03-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ** See bug #47751.Not Zed2004-01-071-3/+3
| | | | | | | | | | | | | | 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
* cast warning.Not Zed2003-03-281-1/+1
| | | | | | | | 2003-03-28 Not Zed <NotZed@Ximian.com> * filter-datespec.c (button_clicked): cast warning. svn path=/trunk/; revision=20555
* (button_clicked): Fix this so we don't get stuck insideDan Winship2003-03-211-13/+5
| | | | | | gtk_dialog_run's main loop forever. svn path=/trunk/; revision=20433
* Change the strings in the timespans array from "second" / "seconds" to "1Dan Winship2003-03-211-9/+9
| | | | | | | | | | * 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
* Change dialog from OK/Cancel to Cancel/OK to match HIG. (rule_edit):Ettore Perazzoli2003-01-151-2/+4
| | | | | | | | | | | | | | | * rule-editor.c (rule_add): Change dialog from OK/Cancel to Cancel/OK to match HIG. (rule_edit): Likewise. (rule_editor_construct): Likewise. * rule-context.c (rule_context_add_rule_gui): Change dialog from OK/Cancel to Cancel/OK to match HIG. * filter-datespec.c (button_clicked): Change dialog from OK/Cancel to Cancel/OK to match HIG. svn path=/trunk/; revision=19470
* more fixesJeffrey Stedfast2003-01-031-5/+5
| | | | svn path=/trunk/; revision=19203
* FILTER_RULE_CLASS -> _GET_CLASSNot Zed2002-11-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | 2002-11-26 Not Zed <NotZed@Ximian.com> * filter-rule.c (filter_rule_validate): FILTER_RULE_CLASS -> _GET_CLASS * rule-context.c (rule_context_save): RULE_CONTEXT_CLASS -> RULE_CONTEXT_GET_CLASS (rule_context_revert): " * *.[ch]: Ran fix.sh over all files. * rule-editor.c (rule_add): widget:set_parent -> window:set_transient_for (editor_response): renamed from editor_clicked, handle gtk dialog response codes. (rule_edit): connect to response rather than clicked. (rule_editor_construct): Setup a text column in the tree view. Not sure if this can be handled via glade. svn path=/trunk/; revision=18922
* Get the root node properly.Not Zed2002-11-131-1/+1
| | | | | | | | | | | | | | | | | | 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-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | 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
* build fixesJeffrey Stedfast2002-11-061-33/+27
| | | | svn path=/trunk/; revision=18576
* Ported to GObject.Jeffrey Stedfast2002-11-021-84/+92
| | | | | | | | | | | | | | | | | | 2002-11-01 Jeffrey Stedfast <fejj@ximian.com> * filter-element.c: Ported to GObject. * filter-input.c: Same. * filter-code.c: This too. * filter-colour.c: And this. * filter-datespec.c: You guessed it. * filter-file.c: And again... svn path=/trunk/; revision=18493
* It's a grand old string-review! Nitpicky and minor changes; details in the ↵Aaron Weber2002-10-011-1/+1
| | | | | | appropriate ChangeLog files. svn path=/trunk/; revision=18268
* Added a datespec editor window.Not Zed2002-08-021-477/+177
| | | | | | | | | | | | 2002-08-02 Not Zed <NotZed@Ximian.com> * filter.glade: Added a datespec editor window. * filter-datespec.c (button_clicked): Rewritten to use glade. Simplified all the code around it as a result, etc, and fixed bug #21798. svn path=/trunk/; revision=17684
* If the value was unset, initialize it to now.Peter Williams2002-08-021-11/+11
| | | | | | | | | 2002-08-01 Peter Williams <peterw@ximian.com> * filter-datespec.c (activate_specified): If the value was unset, initialize it to now. svn path=/trunk/; revision=17670
* ** fixes for #10781Not Zed2002-07-151-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+1
| | | | | | | | | | | | | | | | | | 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
* And again here.Jeffrey Stedfast2001-10-051-2/+2
| | | | | | | | | | | | | 2001-10-04 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (validate): And again here. * filter-folder.c (validate): Same. * filter-datespec.c (validate): Take out the "Oops" part of the warning. svn path=/trunk/; revision=13426
* Allow the dialog's title to be translated.Jeffrey Stedfast2001-09-111-1/+1
| | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * filter-datespec.c (button_clicked): Allow the dialog's title to be translated. svn path=/trunk/; revision=12748
* New function. Convert a time_t to a gchar * (with i18n) (describe_button):Peter Williams2001-08-141-2/+15
| | | | | | | | | | 2001-08-13 Peter Williams <peterw@ximian.com> * filter-datespec.c (format_time): New function. Convert a time_t to a gchar * (with i18n) (describe_button): Use format_time instead of ctime. svn path=/trunk/; revision=11942
* Add a gettext around our static strings.Peter Williams2001-08-131-1/+1
| | | | | | | | | 2001-08-13 Peter Williams <peterw@ximian.com> * filter-datespec.c (make_span_editor): Add a gettext around our static strings. svn path=/trunk/; revision=11939
* Change the butt-ugly UI to a saner (and just as flexible) one. Instead ofPeter Williams2001-07-241-98/+100
| | | | | | | | | | | | | | | | | | 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
* Marked string for translation.Chyla Zbigniew2001-07-131-1/+1
| | | | | | * filter-datespec.c (stringify_agoness): Marked string for translation. svn path=/trunk/; revision=11060
* 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
* Plug memory leaks.Dan Winship2001-04-191-2/+3
| | | | | | | | | | | | | | * 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
* Fix headers. Remove unneccesary ones and replace with more finegrainedKjartan Maraas2001-03-301-2/+18
| | | | | | | | | 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
* Oops, an unspecified date is '0', not -1.Jeffrey Stedfast2001-03-231-1/+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
* Moved the regex filter rule around - we've changed the format a bit.Jeffrey Stedfast2000-11-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Check to make sure the user has entered a valid date.Jeffrey Stedfast2000-11-021-189/+218
| | | | | | | | | 2000-11-01 Jeffrey Stedfast <fejj@helixcode.com> * filter-datespec.c (validate): Check to make sure the user has entered a valid date. svn path=/trunk/; revision=6324
* Turn off debugging output.Dan Winship2000-09-121-1/+1
| | | | | | | * rule-context.c (d): * filter-datespec.c (d): Turn off debugging output. svn path=/trunk/; revision=5363
* Set seltime.tm_isdst to -1, not daylight, because the current dst value isDan Winship2000-08-241-2/+1
| | | | | | | | * filter-datespec.c (cal_day_selected): Set seltime.tm_isdst to -1, not daylight, because the current dst value is not relevant to the selected date. svn path=/trunk/; revision=4991
* Allow filtering / vfoldering based on time or datePeter Williams2000-08-161-0/+703
svn path=/trunk/; revision=4843