aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-file.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
* added the "use_filechooser" property to the GnomeFileEntryCarlos Garnacho Parro2004-08-131-0/+1
| | | | | | | | | 2004-07-29 Carlos Garnacho Parro <carlosg@gnome.org> * filter-file.c: added the "use_filechooser" property to the GnomeFileEntry svn path=/trunk/; revision=26891
* fix a warning.Not Zed2004-04-281-17/+4
| | | | | | | | | | 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
* 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
* Fixes some leaks from bug #43883.Jeffrey Stedfast2003-06-101-4/+5
| | | | | | | | | | | | | | | | | | | | 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
* Loop over child nodes here too in order to not be affected by libxml2Jeffrey Stedfast2003-03-271-9/+14
| | | | | | | | | | | | 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
* FILTER_RULE_CLASS -> _GET_CLASSNot Zed2002-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | 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/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-11/+19
| | | | | | | | | | | | | | | | | | | | | | | | 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
* fixed gnome-stock stuffJeffrey Stedfast2002-11-061-3/+2
| | | | svn path=/trunk/; revision=18578
* Ported.Jeffrey Stedfast2002-11-061-20/+11
| | | | | | | | | | | | | | | | | | | | | | 2002-11-05 Jeffrey Stedfast <fejj@ximian.com> * filter-filter.c: Ported. * filter-source.c (get_widget): Don't use e_utf8_to_gtk_string. * filter-option.c (xml_create): Don't use e_utf8_xml1_decode. * filter-input.c (xml_encode): Don't use e_utf8_xml1_encode. (xml_decode): Don't use e_utf8_xml1_decode. (entry_changed): Don't use e_utf8_gtk_entry_get_text. (get_widget): Don't use e_utf8_gtk_entry_set_text. * filter-file.c (xml_encode): Don't use e_utf8_xml1_encode shit. (xml_decode): Don't use e_utf8_xml1_decode. (entry_changed): Don't use e_utf8_gtk_entry_get_text. (get_widget): Don't use e_utf8_gtk_entry_set_text. svn path=/trunk/; revision=18570
* Ported to GObject.Jeffrey Stedfast2002-11-021-60/+46
| | | | | | | | | | | | | | | | | | 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
* Use GtkType (I only changed this one because I turned on debugging for aJeffrey Stedfast2002-07-251-3/+4
| | | | | | | | | | | | 2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * filter-int.[c,h]: Use GtkType (I only changed this one because I turned on debugging for a bit). * filter-file.c (validate): Fix the strcmp logic a bit, I had it the exact opposite of what I really wanted. Oops :-) svn path=/trunk/; revision=17586
* Do some minimalistic validation of command-lines (ie, make sure it isn'tJeffrey Stedfast2002-07-251-5/+9
| | | | | | | | | | | | | | 2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * filter-file.c (validate): Do some minimalistic validation of command-lines (ie, make sure it isn't an empty string). * filtertypes.xml: s/shell-exec/shell/ (for the action) and pass "/bin/sh" "-c" as the first 2 arguments. For the shell-exec *rule*, change the name to "pipe-message" and add the "/bin/sh" "-c" arguments too. svn path=/trunk/; revision=17584
* ** fixes for #10781Not Zed2002-07-151-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make the sound type for (play-sound ) a "file" type rather than "string"Jeffrey Stedfast2002-07-091-1/+3
| | | | | | | | | | | | | | | | | 2002-07-08 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Make the sound type for (play-sound ) a "file" type rather than "string" since users will want to use a filesel to select it most likely. Fixes bug #26921. * filter-file.c (validate): If the type is "file" check that it is a valid file, otheriwse if it is a command-line just ignore it for now. * filter-element.c (filter_element_new_type_name): A filter type of "file" should also use the filter-file object. svn path=/trunk/; revision=17385
* Added a label definition.Jeffrey Stedfast2002-05-171-2/+1
| | | | | | | | | | | | | | | | | 2002-05-16 Jeffrey Stedfast <fejj@ximian.com> * vfoldertypes.xml: Added a label definition. * filtertypes.xml: Added a label definition. * filter-label.c: New filter widget for labels. * filter-element.c (filter_element_new_type_name): Add support for the new label widget. * filter-int.c (format_sexp): Fixed a memory leak. svn path=/trunk/; revision=16936
* Set the path in the entry widget.Jeffrey Stedfast2002-05-101-0/+2
| | | | | | | | 2002-05-09 Jeffrey Stedfast <fejj@ximian.com> * filter-file.c (get_widget): Set the path in the entry widget. svn path=/trunk/; revision=16741
* Add filter-file.[c,h] to the build.Jeffrey Stedfast2002-05-101-2/+3
| | | | | | | | | | | | | 2002-05-09 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Add filter-file.[c,h] to the build. * filtertypes.xml: Add a "Command" filter rule. * filter-element.c (filter_element_new_type_name): Add support for type "command" which uses the new FilterFile widget. svn path=/trunk/; revision=16739
* New filter widgets for choosing files and/or command-line's (?). Not yetJeffrey Stedfast2002-05-101-0/+308
2002-05-09 Jeffrey Stedfast <fejj@ximian.com> * filter-file.[c,h]: New filter widgets for choosing files and/or command-line's (?). Not yet hooked up or anything, just for future use. svn path=/trunk/; revision=16735