Commit Graph

380 Commits

Author SHA1 Message Date
0c8bfeb83d Updated to use GtkTreeView.
2002-11-18  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c: Updated to use GtkTreeView.

	* vfolder-rule.c: Same.

svn path=/trunk/; revision=18830
2002-11-18 20:57:35 +00:00
ac1de7eaf9 Get the root node properly.
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
2002-11-13 09:31:06 +00:00
a08bb5c1e3 comment out gtk_destroyed check.
2002-11-13  Not Zed  <NotZed@Ximian.com>

        * vfolder-rule.c (source_add): comment out gtk_destroyed check.

        * filter-label.c: Added back some of the guts.  Might not work but
        some of the code uses it :-/.  Gives u a fixed set of non-editable
        labels.

svn path=/trunk/; revision=18729
2002-11-13 04:18:42 +00:00
977c6e8ee8 Use weak_ref instead of connecting to "destroy". (rule_add): Same.
2002-11-08  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_edit): Use weak_ref instead of connecting to
	"destroy".
	(rule_add): Same.

svn path=/trunk/; revision=18679
2002-11-08 23:51:26 +00:00
59ca4efdbb Use a GtkDialog instead of a GnomeDialog for reporting errors.
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
2002-11-07 23:09:45 +00:00
b0978f82a3 Use GtkDialog instead of GnomeDialog here.
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
2002-11-07 21:20:30 +00:00
d3eca1d96c Deleted most of the internals until we devise a gconf schema and redesign
2002-11-06  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-label.c (xml_create): Deleted most of the internals until
	we devise a gconf schema and redesign how we want to do this. It
	didn't work correctly for 1.2 anyway.

svn path=/trunk/; revision=18618
2002-11-06 23:39:15 +00:00
c49c019456 Converted to the glade-2 format.
2002-11-06  Jeffrey Stedfast  <fejj@ximian.com>

	* filter.glade: Converted to the glade-2 format.

svn path=/trunk/; revision=18585
2002-11-06 06:44:24 +00:00
e5cf0030a0 use G_STRUCT_OFFSET instead of GTK_SIGNAL_OFFSET
svn path=/trunk/; revision=18584
2002-11-06 06:12:07 +00:00
044348407c more build fixes
svn path=/trunk/; revision=18583
2002-11-06 06:08:05 +00:00
29dd432292 a ton more build fixes
svn path=/trunk/; revision=18582
2002-11-06 05:47:50 +00:00
30d40d1932 more build fixes
svn path=/trunk/; revision=18581
2002-11-06 04:23:55 +00:00
1a996b7879 don't #include gnome-defs.h
svn path=/trunk/; revision=18579
2002-11-06 03:37:07 +00:00
4a3104726b fixed gnome-stock stuff
svn path=/trunk/; revision=18578
2002-11-06 03:36:12 +00:00
7d71285ce2 more build fixes
svn path=/trunk/; revision=18577
2002-11-06 03:06:52 +00:00
622d898921 build fixes
svn path=/trunk/; revision=18576
2002-11-06 03:02:03 +00:00
5fbe184005 some build fixes
svn path=/trunk/; revision=18575
2002-11-06 02:40:23 +00:00
c7f67942ca Ported.
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
2002-11-05 22:51:55 +00:00
394f4bee4a Ported.
2002-11-05  Jeffrey Stedfast  <fejj@ximian.com>

	* vfolder-rule.c: Ported.

	* vfolder-editor.c: Ported.

	* vfolder-context.c: Ported.

svn path=/trunk/; revision=18569
2002-11-05 22:17:16 +00:00
24ba58ff63 oops
svn path=/trunk/; revision=18564
2002-11-05 21:22:23 +00:00
5a16ceef07 Ported.
2002-11-05  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-rule.c: Ported.

svn path=/trunk/; revision=18563
2002-11-05 21:20:11 +00:00
96669b4af8 Ported.
2002-11-05  Jeffrey Stedfast  <fejj@ximian.com>

	* score-rule.c: Ported.

	* score-editor.c: Ported. Again, thise code seems to be unused.

	* score-context.c: Ported. Although it seems this code isn't
	really used anywhere?

svn path=/trunk/; revision=18562
2002-11-05 20:47:24 +00:00
46ad856f3d Ported.
2002-11-04  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-part.c: Ported.

svn path=/trunk/; revision=18540
2002-11-05 03:39:04 +00:00
babf0f4f8c Also ported.
2002-11-04  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-editor.c: Also ported.

	* rule-editor.c: Ported to gtk2 and removed unnecessary e_utf8 snot.

svn path=/trunk/; revision=18539
2002-11-05 03:09:44 +00:00
236c15d106 Ported this too.
2002-11-02  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-context.c: Ported this too.

	* rule-context.c: Ported to glib2/GObject.

svn path=/trunk/; revision=18502
2002-11-02 05:16:24 +00:00
9fd7dd8e0c Ported to glib2/GObject.
2002-11-02  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-context.c: Ported to glib2/GObject.

svn path=/trunk/; revision=18501
2002-11-02 04:58:18 +00:00
793f838a7b Ported to GObject.
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
2002-11-02 00:23:28 +00:00
e033f54a90 Ported to GObject.
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
2002-11-01 23:22:57 +00:00
9bfc63718a Ported to GObject.
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.

svn path=/trunk/; revision=18492
2002-11-01 22:07:46 +00:00
ec242d6c30 Adjust default rule editor size to accomodate the menu widening caused by
* rule-editor.c (rule_add): Adjust default rule editor size to
	accomodate the menu widening caused by "Pipe Message to Shell
	Command".

svn path=/trunk/; revision=18470
2002-10-31 19:37:32 +00:00
167d08a15e Removed the Run Once filter action.
2002-10-10  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Removed the Run Once filter action.

svn path=/trunk/; revision=18364
2002-10-11 02:35:31 +00:00
df86e58747 Sync for 1.1.2.
svn path=/trunk/; revision=18347
2002-10-07 22:50:02 +00:00
43dfa91e96 It's a grand old string-review! Nitpicky and minor changes; details in the appropriate ChangeLog files.
svn path=/trunk/; revision=18268
2002-09-30 20:11:15 +00:00
fec2c01178 Use "mail/*" as the allowed folder type.
* filter-folder.c (get_widget): Use "mail/*" as the allowed folder
	type.

	* vfolder-rule.c (source_add): Likewise

svn path=/trunk/; revision=18225
2002-09-25 21:42:16 +00:00
d6d2ed38f2 add empty statement after label to make it ANSI.
* filter-context.c (filter_delete_uri): add empty statement after
        label to make it ANSI.

svn path=/trunk/; revision=18158
2002-09-22 23:53:55 +00:00
c1e57e32d9 Changed source account, use header-source rather than (= (get-source) ...)
2002-09-19  Not Zed  <NotZed@Ximian.com>

	* filtertypes.xml: Changed source account, use header-source
	rather than (= (get-source) ...)

svn path=/trunk/; revision=18113
2002-09-19 13:28:00 +00:00
f34f1b7ca5 Add a Run Once action to run a command only once rather than for each
2002-09-13  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Add a Run Once action to run a command only
	once rather than for each message that has that action applied.

svn path=/trunk/; revision=18068
2002-09-13 20:20:40 +00:00
f6b959c9ec Dont allow duplicate names. (edit_editor_clicked): Same here. For #24803.
2002-08-08  Not Zed  <NotZed@Ximian.com>

        * rule-editor.c (add_editor_clicked): Dont allow duplicate names.
        (edit_editor_clicked): Same here.  For #24803.

svn path=/trunk/; revision=17739
2002-08-08 02:49:56 +00:00
f5b0266037 Don't need to save temp/backup files anymore, e_xml_save_file() now
2002-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-context.c (save): Don't need to save temp/backup files
	anymore, e_xml_save_file() now handles this for us (well, at least
	the saving of temp files). I'm not sure we need a backup file
	anymore now that we can depend on e_xml_save_file() to "Just Work"

svn path=/trunk/; revision=17727
2002-08-07 03:58:56 +00:00
b91558e435 Use e_xml_save_file(). (xml_doc_save): Removed this code and added it to
2002-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-context.c (save): Use e_xml_save_file().
	(xml_doc_save): Removed this code and added it to gal so that
	e-table and all other parts of evolution and so forth could use
	it.

svn path=/trunk/; revision=17720
2002-08-06 21:00:16 +00:00
4e8deb5e4c New internal function to replace xmlSaveFile. Does proper error checking
2002-08-05  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-context.c (xml_doc_save): New internal function to replace
	xmlSaveFile. Does proper error checking and so forth to ensure
	that the resulting file does not ever get truncated.
	(save): Cal xml_doc_save rather than xmlSaveFile. Fixes bug
	#25980.

svn path=/trunk/; revision=17703
2002-08-05 23:37:08 +00:00
a683952c13 Added a datespec editor window.
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
2002-08-02 04:00:22 +00:00
0598c3fb26 If the value was unset, initialize it to now.
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
2002-08-01 17:08:55 +00:00
57ced76e37 (xml_create): Remove unused variable.
svn path=/trunk/; revision=17662
2002-07-31 21:23:34 +00:00
c7f08ebc3d Translate the rule name when filling in the name entry.
2002-07-30  Peter Williams  <peterw@ximian.com>

	* filter-rule.c (get_widget): Translate the rule name when filling
	in the name entry.

svn path=/trunk/; revision=17648
2002-07-30 23:02:05 +00:00
1ad1815c8f Add xml to unset system flags.
2002-07-29  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Add xml to unset system flags.

svn path=/trunk/; revision=17626
2002-07-29 05:25:52 +00:00
e205c79474 Use fs->type in xmlGetProp since we already free'd 'type'. Fixes bug
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
2002-07-26 21:38:28 +00:00
00a8f5e2ec Use GtkType (I only changed this one because I turned on debugging for a
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
2002-07-25 08:49:56 +00:00
6147ca54a4 Do some minimalistic validation of command-lines (ie, make sure it isn't
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
2002-07-25 07:45:01 +00:00
6485e5fcf7 Use the U_() macro to get the UTF-8 translation.
2002-07-17  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-label.c (xml_create): Use the U_() macro to get the UTF-8
	translation.

svn path=/trunk/; revision=17495
2002-07-17 18:31:19 +00:00