aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-source.c
Commit message (Collapse)AuthorAgeFilesLines
* free current_url.Larry Ewing2003-06-141-1/+2
| | | | | | | | 2003-06-13 Larry Ewing <lewing@ximian.com> * filter-source.c (filter_source_finalize): free current_url. svn path=/trunk/; revision=21435
* Fixes some leaks from bug #43883.Jeffrey Stedfast2003-06-101-2/+6
| | | | | | | | | | | | | | | | | | | | 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-11/+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
* Change to use EAccountList, etc.Not Zed2003-02-241-52/+23
| | | | | | | | | 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
* Use g_object_new() instead of gtk_type_new().Jeffrey Stedfast2003-02-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-07 Jeffrey Stedfast <fejj@ximian.com> * filter-editor.c (filter_editor_new): Use g_object_new() instead of gtk_type_new(). * vfolder-editor.c (vfolder_editor_new): Use g_object_new() instead of gtk_type_new(). * score-editor.c (score_editor_new): Use g_object_new() instead of gtk_type_new(). * rule-editor.c (rule_editor_new): Use g_object_new() instead of gtk_type_new(). (rule_add): Use gtk_window_set_resizable() instead of the deprecated gtk_window_set_policy(). (rule_edit): Same here. (rule_editor_construct): Here too. * rule-context.c (rule_context_add_rule_gui): Use gtk_window_set_resizable() instead of the deprecated gtk_window_set_policy(). svn path=/trunk/; revision=19847
* FILTER_RULE_CLASS -> _GET_CLASSNot Zed2002-11-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 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-11/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Ported.Jeffrey Stedfast2002-11-061-5/+2
| | | | | | | | | | | | | | | | | | | | | | 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-92/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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... * filter-folder.c: Wheee! This is fun... * filter-int.c: Gee, I wonder... * filter-label.c: Also ported. * filter-option.c: Yep, this too. * filter-source.c: And finally this one. svn path=/trunk/; revision=18495
* ** 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
* Added a label definition.Jeffrey Stedfast2002-05-171-1/+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
* Free account_name so we don't leak. Also after getting the source uri, useJeffrey Stedfast2002-03-191-34/+61
| | | | | | | | | | | | | | | 2002-03-18 Jeffrey Stedfast <fejj@ximian.com> * filter-source.c (filter_source_get_sources): Free account_name so we don't leak. Also after getting the source uri, use camel-url to hide unwanted stuff. (xml_decode): Use xmlFree on the buffer returned from xmlNodeGetContent rather than g_free, as I think they are incompatable. Also use camel-url here to hide any params in the decoded url (to make things compatable with what older versions may have saved). svn path=/trunk/; revision=16196
* Get the account name because that is the string we'd like to use forJeffrey Stedfast2002-01-041-19/+29
| | | | | | | | | | | | | 2002-01-03 Jeffrey Stedfast <fejj@ximian.com> * filter-source.c (filter_source_get_sources): Get the account name because that is the string we'd like to use for display. (get_widget): Generate the account label the same as we do for the composer's From optionmenu. (filter_source_finalize): Free the account_name. (clone): Pass along the account_name member to filter_add_source svn path=/trunk/; revision=15241
* Fixing the license text.Ettore Perazzoli2001-10-281-13/+10
| | | | svn path=/trunk/; revision=14215
* Fixing the license text.Ettore Perazzoli2001-10-281-1/+0
| | | | svn path=/trunk/; revision=14212
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* use xmlStrdup rather than g_strdupRadek Doulik2001-08-081-1/+1
| | | | | | | | | | | 2001-08-08 Radek Doulik <rodo@ximian.com> * filter-source.c (clone): use xmlStrdup rather than g_strdup * filter-element.c (filter_element_finalise): don't mix g_free and xmlAlloc svn path=/trunk/; revision=11788
* Bonobo-conf-ified. Removed /home/trow hard-wiring. :) (xml_encode): EncodeJon Trowbridge2001-07-091-52/+64
| | | | | | | | | | | | | 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
* Prevent crashing while we work this out.Peter Williams2001-07-041-1/+5
| | | | | | | | | | | | 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
* Plug memory leaks.Dan Winship2001-04-191-4/+2
| | | | | | | | | | | | | | * 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
* Oops --- I forgot to add these files before my last commit.Jon Trowbridge2001-04-141-0/+352
svn path=/trunk/; revision=9305