aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config-factory.c
blob: 27ed15e0d91981be0d2692af731eccc08c21aadf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 *  Authors: Jeffrey Stedfast <fejj@ximian.com>
 *
 *  Copyright 2002 Ximian, Inc. (www.ximian.com)
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 */


#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>

#include "em-account-prefs.h"
#include "em-composer-prefs.h"
#include "em-mailer-prefs.h"

#include "mail-config-factory.h"

#define CONFIG_CONTROL_FACTORY_ID "OAFIID:GNOME_Evolution_Mail_ConfigControlFactory:" BASE_VERSION

BonoboObject *
mail_config_control_factory_cb (BonoboGenericFactory *factory, const char *component_id, void *user_data)
{
    GNOME_Evolution_Shell shell = (GNOME_Evolution_Shell) user_data;
    EvolutionConfigControl *control;
    GtkWidget *prefs = NULL;

    if (!strcmp (component_id, EM_ACCOUNT_PREFS_CONTROL_ID)) {
        prefs = em_account_prefs_new (shell);
    } else if (!strcmp (component_id, EM_MAILER_PREFS_CONTROL_ID)) {
        prefs = em_mailer_prefs_new ();
    } else if (!strcmp (component_id, EM_COMPOSER_PREFS_CONTROL_ID)) {
        prefs = em_composer_prefs_new ();
    } else {
        g_return_val_if_reached(NULL);
    }

    gtk_widget_show_all (prefs);

    control = evolution_config_control_new (prefs);

    return BONOBO_OBJECT (control);
}
soc2013-evolution/commit/filter?id=342211ac694401dad9e9c5b4f33feecb78a7f6da'>updated the bug list that my last commit fixed (since more bugs have been sub...Jeffrey Stedfast2003-04-121-1/+1 * added more bug #'sJeffrey Stedfast2003-04-121-2/+2 * Fixes for bugs: #41149, #41150, #41151, #41152, #41153, #41155 and #41156.Jeffrey Stedfast2003-04-128-42/+78 * cast warning.Not Zed2003-03-282-1/+5 * Loop over child nodes here too in order to not be affected by libxml2Jeffrey Stedfast2003-03-273-20/+36 * (button_clicked): Fix this so we don't get stuck insideDan Winship2003-03-212-13/+7 * Change the strings in the timespans array from "second" / "seconds" to "1Dan Winship2003-03-212-9/+17 * Don't return here - this is a void function. (rule_editor_set_source):Jeffrey Stedfast2003-03-202-2/+8 * use the same code as in filter-rule to enforce unique names for allNot Zed2003-03-182-1/+18 * Set the default window size to something reasonable (350x400?). Fixes bugJeffrey Stedfast2003-03-182-0/+4 * Fixed to work properly. Fixes bug #39654.Jeffrey Stedfast2003-03-182-17/+27 * Always add a Cancel button here, but if !enable_undo - make the responseJeffrey Stedfast2003-03-184-43/+55 * go to the proper level of child node before looking for rule sets, fix forNot Zed2003-03-102-216/+222 * Fixes for bug #39170Jeffrey Stedfast2003-03-062-3/+12 * Change to use EAccountList, etc.Not Zed2003-02-242-52/+28 * Get rid of the need for the GTK_WIDGET_DESTROYED() check.Jeffrey Stedfast2003-02-132-17/+15 * Use g_object_new() instead of gtk_type_new().Jeffrey Stedfast2003-02-089-16/+38 * Defined in configure.in now (filterdir): Define using privdatadirDan Winship2003-02-062-2/+6 * (gladedir): Version using $(BASE_VERSION).Ettore Perazzoli2003-01-232-2/+7 * dont re-use 'widget', its the return value!Not Zed2003-01-162-7/+12 * Back to using e_xml_save_file().Jeffrey Stedfast2003-01-162-3/+5 * Change dialog from OK/Cancel to Cancel/OK to match HIG. (rule_edit):Ettore Perazzoli2003-01-154-10/+33 * more bug #'sJeffrey Stedfast2003-01-041-1/+1 * added a bug # that was fixedJeffrey Stedfast2003-01-041-1/+1 * Scroll to the newly added row. (rule_delete): Scroll to the selected row.Jeffrey Stedfast2003-01-042-10/+41 * more fixesJeffrey Stedfast2003-01-033-9/+9 * Fixed to build with -DG_DISABLE_DEPRECATED and -DGTK_DISABLE_DEPRECATEDJeffrey Stedfast2003-01-0310-46/+76 * Use an easier method for getting the iter.Jeffrey Stedfast2002-12-132-11/+15 * New custom function for creating the source_list widget. (get_widget):Jeffrey Stedfast2002-12-134-70/+150 * updatedJeffrey Stedfast2002-12-051-2/+2 * Add a textcellrenderer to display the folders. (get_widget): Remove FIXMENot Zed2002-11-262-1/+8 * FILTER_RULE_CLASS -> _GET_CLASSNot Zed2002-11-2622-74/+97 * free the list dataJeffrey Stedfast2002-11-211-8/+5 * gconfify.Jeffrey Stedfast2002-11-212-26/+42 * Updated to use GtkTreeView.Jeffrey Stedfast2002-11-195-80/+141 * Get the root node properly.Not Zed2002-11-1316-33/+49 * comment out gtk_destroyed check.Not Zed2002-11-135-25/+86 * Use weak_ref instead of connecting to "destroy". (rule_add): Same.Jeffrey Stedfast2002-11-092-3/+9 * Use a GtkDialog instead of a GnomeDialog for reporting errors.Jeffrey Stedfast2002-11-0812-121/+137 * Use GtkDialog instead of GnomeDialog here.Jeffrey Stedfast2002-11-0810-96/+131 * Deleted most of the internals until we devise a gconf schema and redesignJeffrey Stedfast2002-11-073-78/+13 * Converted to the glade-2 format.Jeffrey Stedfast2002-11-062-933/+1240 * use G_STRUCT_OFFSET instead of GTK_SIGNAL_OFFSETJeffrey Stedfast2002-11-062-4/+4 * more build fixesJeffrey Stedfast2002-11-063-39/+39 * a ton more build fixesJeffrey Stedfast2002-11-067-114/+91 * more build fixesJeffrey Stedfast2002-11-064-12/+8 * don't #include gnome-defs.hJeffrey Stedfast2002-11-061-1/+0 * fixed gnome-stock stuffJeffrey Stedfast2002-11-062-33/+19 * more build fixesJeffrey Stedfast2002-11-062-9/+7 * build fixesJeffrey Stedfast2002-11-062-36/+27 * some build fixesJeffrey Stedfast2002-11-065-21/+22 * Ported.Jeffrey Stedfast2002-11-069-212/+202 * Ported.Jeffrey Stedfast2002-11-0610-320/+304 * oopsJeffrey Stedfast2002-11-061-14/+13 * Ported.Jeffrey Stedfast2002-11-065-171/+173 * Ported.Jeffrey Stedfast2002-11-068-202/+192 * Ported.Jeffrey Stedfast2002-11-055-124/+117 * Also ported.Jeffrey Stedfast2002-11-055-234/+225 * Ported this too.Jeffrey Stedfast2002-11-025-171/+171 * Ported to glib2/GObject.Jeffrey Stedfast2002-11-023-359/+370 * Ported to GObject.Jeffrey Stedfast2002-11-0211-426/+433 * Ported to GObject.Jeffrey Stedfast2002-11-027-165/+175 * Ported to GObject.Jeffrey Stedfast2002-11-029-355/+362 * Adjust default rule editor size to accomodate the menu widening caused byDan Winship2002-11-012-1/+7 * Removed the Run Once filter action.Jeffrey Stedfast2002-10-113-28/+26 * Sync for 1.1.2.Ettore Perazzoli2002-10-081-22/+22 * It's a grand old string-review! Nitpicky and minor changes; details in the ap...Aaron Weber2002-10-013-3/+10 * Use "mail/*" as the allowed folder type.Dan Winship2002-09-263-2/+9 * add empty statement after label to make it ANSI.Dan Winship2002-09-232-0/+6 * Changed source account, use header-source rather than (= (get-source) ...)Not Zed2002-09-192-2/+7 * Add a Run Once action to run a command only once rather than for eachJeffrey Stedfast2002-09-143-0/+11 * Dont allow duplicate names. (edit_editor_clicked): Same here. For #24803.Not Zed2002-08-082-2/+34 * Don't need to save temp/backup files anymore, e_xml_save_file() nowJeffrey Stedfast2002-08-072-15/+10 * Use e_xml_save_file(). (xml_doc_save): Removed this code and added it toJeffrey Stedfast2002-08-072-300/+11 * New internal function to replace xmlSaveFile. Does proper error checkingJeffrey Stedfast2002-08-062-4/+317 * Added a datespec editor window.Not Zed2002-08-024-478/+485 * If the value was unset, initialize it to now.Peter Williams2002-08-022-11/+16 * (xml_create): Remove unused variable.Ettore Perazzoli2002-08-012-1/+4 * Translate the rule name when filling in the name entry.Peter Williams2002-07-312-1/+6 * Add xml to unset system flags.Jeffrey Stedfast2002-07-293-0/+28 * Use fs->type in xmlGetProp since we already free'd 'type'. Fixes bugJeffrey Stedfast2002-07-276-34/+30 * Use GtkType (I only changed this one because I turned on debugging for aJeffrey Stedfast2002-07-255-7/+24 * Do some minimalistic validation of command-lines (ie, make sure it isn'tJeffrey Stedfast2002-07-254-20/+38 * Use the U_() macro to get the UTF-8 translation.Jeffrey Stedfast2002-07-183-21/+28 * cvs remove.Not Zed2002-07-167-132/+203 * Changelog is pending some other patch approval so i'm not commiting.Not Zed2002-07-153-290/+0 * ** fixes for #10781Not Zed2002-07-1524-139/+496 * Make the sound type for (play-sound ) a "file" type rather than "string"Jeffrey Stedfast2002-07-094-3/+20 * fixed a spelling mistakeJeffrey Stedfast2002-05-251-1/+1 * *** empty log message ***Ettore Perazzoli2002-05-251-1/+1 * Add libfilter-i18n.h.Ettore Perazzoli2002-05-251-0/+1 * Fix English grammar.Ettore Perazzoli2002-05-252-1/+5 * Added a label definition.Jeffrey Stedfast2002-05-1712-7/+445 * Set the path in the entry widget.Jeffrey Stedfast2002-05-102-0/+4 * Add filter-file.[c,h] to the build.Jeffrey Stedfast2002-05-106-20/+66 * New filter widgets for choosing files and/or command-line's (?). Not yetJeffrey Stedfast2002-05-103-0/+375 * Changed to return a GList *, a list of the names of the rules affected byNot Zed2002-05-085-42/+126 * Get rid of ibex stuff, we no longer use it.Jeffrey Stedfast2002-04-272-1/+4 * The score "is" rule should have a value of "is" and not "less-than".Jeffrey Stedfast2002-04-192-1/+6 * Fixed a grammer mistake, or so according to bug #23376. Whatever.Jeffrey Stedfast2002-04-133-19/+25 * Fix "Follow Up" searches by comparing to the empty string, rather than justRussell Steinthal2002-04-123-4/+16 * Check that there is a value to setup. Fixes #15470.Not Zed2002-04-102-1/+4 * This needs to return a gboolean (TRUE). (rule_edit): UsingJeffrey Stedfast2002-04-102-5/+15 * Added closing ) for "not starts with" subject rule. Added closing ) forNot Zed2002-04-102-5/+6 * Added closing ) for "not starts with" subject rule.Not Zed2002-04-103-19/+24 * Remove the #ifndef SHELL part. Use an EvolutionFolderSelectorButton.Dan Winship2002-04-056-126/+40 * Set 're' as the parent window rather than as the parent widget.Jeffrey Stedfast2002-04-023-7/+14 * Free account_name so we don't leak. Also after getting the source uri, useJeffrey Stedfast2002-03-192-34/+72 * updated i18n headerJeffrey Stedfast2002-03-071-18/+20 * Added beep and play-sound actions.Jeffrey Stedfast2002-03-072-0/+13 * Copy values across to new part.Not Zed2002-02-269-18/+126 * Re-added contains and not-contains. Also added filter/vfolder rules forJeffrey Stedfast2002-02-134-2/+43 * Re-added contains and not-contains.Jeffrey Stedfast2002-02-134-1/+20 * NeedsReply no longer existsJeffrey Stedfast2002-02-082-6/+0 * Same here.Jeffrey Stedfast2002-02-053-66/+9 * Final cleanup for the CFLAGS and LIBS in the Makefiles.Ettore Perazzoli2002-01-282-5/+6 * check if re->edit != NULL before trying to unref it. Fixes a segfault whenMikael Hallendal2002-01-272-1/+10 * If we write "" to an xml file, we read back NULL. So if we read back NULL,Not Zed2002-01-152-4/+13 * Get the account name because that is the string we'd like to use forJeffrey Stedfast2002-01-043-27/+40 * Make the date comparisons read the same as the ones in filtertypes.xmlJeffrey Stedfast2002-01-033-36/+39 * Add new action to execute a shell command.Jeffrey Stedfast2001-12-183-18/+29 * Oops... this didn't get committed before.Jon Trowbridge2001-12-101-0/+8 * Implements marking messages as "Need Reply".Jon Trowbridge2001-12-102-0/+6 * Removed U_. Fixes #15415.Zbigniew Chyla2001-11-282-1/+5 * Hook onto destroy event. (edit_editor_destroyed): IF we get destroyed,Not Zed2001-11-285-27/+76 * Force the user to name the filter.Jeffrey Stedfast2001-11-133-9/+35 * Require gal 0.15.99.8Joe Shaw2001-10-301-1/+1 * Need to ref rule since add doesn't. This doesn't crash anymore but doesn't92001-10-292-0/+3 * Fixed previous fix.Michael Zucci2001-10-292-1/+2 * Some debug printf fixes for printf's that dont like null %s's.92001-10-292-2/+7 * Fix enable undo logic.Michael Zucci2001-10-292-1/+2 * Implement, change any folder uri's that have been renamed, to the new one.82001-10-287-8/+160 * Add undo for move. (rule_editor_add_undo): Add extra rank item.82001-10-286-12/+217 * Fix the address of the FSF in the licensing comments.Ettore Perazzoli2001-10-282-2/+0 * Fixing the license text.Ettore Perazzoli2001-10-2846-517/+508 * Fixing the license text.Ettore Perazzoli2001-10-282-2/+0 * Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-272-4/+4 * Desensitize the parent dialog. (rule_edit): Same. (add_editor_clicked):Jeffrey Stedfast2001-10-262-0/+13 * Keep track of the current editor dialog window so that on exit, we canJeffrey Stedfast2001-10-263-33/+60 * added a missing close parenJeffrey Stedfast2001-10-261-1/+1 * Add a changed signal. Emits if the order changes or if you add or remove a42001-10-244-10/+109 * Translate the rule names. (Bug #13082)Jon Trowbridge2001-10-212-1/+7 * Fix the WM problems related to the folder selection dialog beingEttore Perazzoli2001-10-193-0/+8 * Kludge to raise the filter dialog when the folder-selection window isJeffrey Stedfast2001-10-162-1/+7 * If we have no node content, dont append any value or try to decode it.52001-10-162-4/+11 * And again here.Jeffrey Stedfast2001-10-054-4/+13 * "safe" save code, first save to .#name, then rename to name if it worked,42001-10-052-5/+31 * Emit changed events when we change it. (vfolder_rule_remove_source): "82001-09-292-0/+9 * Set the item label to the new rule name, not the old rule name. Fixes bugJeffrey Stedfast2001-09-292-8/+17 * Use g_strdup for the uri, not the xml memory.72001-09-284-1586/+12 * Emit changed events.32001-09-156-7/+108 * Clone the current rule before editing it so that changes can be undone.Jeffrey Stedfast2001-09-137-30/+150 * Remove the match-all from the not body-contains, so we can use the new22001-09-132-1/+6 * Encode the score as an integer string, not as a string of integers. #5098.02001-09-112-4/+6 * Allow the dialog's title to be translated.Jeffrey Stedfast2001-09-112-1/+6 * #include <sys/types.h> for regex_t on freebsd.Chris Toshok2001-08-202-0/+5 * Added key accelerators.Jeffrey Stedfast2001-08-183-30/+52 * in default_user:Peter Williams2001-08-152-1/+6 * New function. Convert a time_t to a gchar * (with i18n) (describe_button):Peter Williams2001-08-142-2/+17 * Add a gettext around our static strings.Peter Williams2001-08-132-1/+6 * Removed comment about the need to resolve nicknames properly, because weJon Trowbridge2001-08-111-18/+18 * Make this compile again.Peter Williams2001-08-102-3/+7 * No need to gtk_widget_show() the gnome dialog widget twice...Jeffrey Stedfast2001-08-103-146/+158 * don't mix g_free and xmlAlloc (xml_decode): don't mix g_free and xmlAllocRadek Doulik2001-08-095-9/+29 * use xmlStrdup rather than g_strdupRadek Doulik2001-08-083-2/+9 * Properly free the list of parts, and the private data.Not Zed2001-08-087-37/+82 * Reverted my previous change, I fixed the filter code to handle this theJeffrey Stedfast2001-08-082-0/+33 * Removed the "is" and "is not" rules from the xml file for address matchingJeffrey Stedfast2001-08-082-27/+5 * Do an evil kludgy hack so that the Rule Name entry widget gets focusedJeffrey Stedfast2001-08-042-3/+14 * Wrap some debug printf's with d().Jeffrey Stedfast2001-08-034-93/+98 * Sync for the release.Ettore Perazzoli2001-08-011-1/+0 * Added a validate function that checks to make sure that vfolders that haveJon Trowbridge2001-07-243-0/+40 * Change the butt-ugly UI to a saner (and just as flexible) one. Instead ofPeter Williams2001-07-242-98/+114 * Removed the "Forward To" filter action.Jeffrey Stedfast2001-07-213-45/+44 * Return -1 if we don't find it? This is what most of the code expected butJeffrey Stedfast2001-07-193-31/+41 * Marked string for translation.Chyla Zbigniew2001-07-132-1/+5 * Users should not be able to filter on "Status is Deleted" since we don'tJeffrey Stedfast2001-07-133-21/+23 * Copied the "Attachments" rule part over from filtertypes.xml, would be aJason Leach2001-07-112-0/+26 * Put a match-all around the not-body-contains to make it work per-message.Peter Williams2001-07-113-2/+9 * Set the focus on the title of the filter rule.Jeffrey Stedfast2001-07-102-6/+13 * 2001-07-09 Anna Marie DirksAnna Dirks2001-07-102-0/+6 * Bonobo-conf-ified. Removed /home/trow hard-wiring. :) (xml_encode): EncodeJon Trowbridge2001-07-094-73/+94 * Select the most appropriate filter rule.Jeffrey Stedfast2001-07-063-2/+12 * oops, forgot to commit ChangeLogJeffrey Stedfast2001-07-061-6/+9 * Fix bug #4043: s/colour/colorJeffrey Stedfast2001-07-062-1/+5 * Prevent crashing while we work this out.Peter Williams2001-07-043-2/+15 * Added an integer type for filtering values. used for size.Sam Creasey2001-07-037-0/+321 * Changed "Add criterion" button to have normal button relief in response toAnna Marie Dirks2001-07-033-2/+10 * Set the filter-rule dialog to be user-resizable.Jeffrey Stedfast2001-06-303-28/+44 * Make "Move" the default action.Jeffrey Stedfast2001-06-282-5/+9 * Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-2339-44/+44 * Deleted Gediminas patch.Not Zed2001-05-081-0/+4 * Fix for #2253 (search names not translated), mail-search i18n fixes.Gediminas Paulauskas2001-05-081-0/+7 * Set the default size of the dialog to 600x400, which seems to be a niceJeffrey Stedfast2001-04-272-2/+12 * Remove UNICODE_CFLAGSDan Winship2001-04-262-1/+4 * Blah blah fix for xml1 broken utf8 encoding, and use "g" memory for allNot Zed2001-04-262-16/+36 * Pull up fix for translation of filter direction drop down menu from theKjartan Maraas2001-04-212-1/+12 * Plug memory leaks.Dan Winship2001-04-1914-21/+62 * s/Is/is/ and s/Is Not/is not/ to be more consistant with the rest.Jeffrey Stedfast2001-04-163-22/+25 * Oops --- I forgot to add these files before my last commit.Jon Trowbridge2001-04-142-0/+408 * Make the (previously unused) get-source command actually do the rightJon Trowbridge2001-04-147-3/+42 * Here goes my additional simple include fixes.Gediminas Paulauskas2001-04-051-9/+0 * Fix headers. Same here. Same here. Same here. Same here. Same here. SameKjartan Maraas2001-04-0510-0/+37 * Set the newpart on the container object. (less_parts): Remove the rule thtJeffrey Stedfast2001-04-034-90/+125 * Fix headers. Remove unneccesary ones and replace with more finegrainedKjartan Maraas2001-03-3043-66/+122 * Oops, an unspecified date is '0', not -1.Jeffrey Stedfast2001-03-232-1/+6 * Validate the rule before closing.Jeffrey Stedfast2001-03-224-13/+24 * Set the editor dialog modal rather than setting the filter dialogJeffrey Stedfast2001-03-212-118/+130 * Since we are now using filter-option widgets in place of system-flag, weJeffrey Stedfast2001-03-183-4/+14 * If the filter type is a "system-flag", use the optionlist type as typeJeffrey Stedfast2001-03-182-1/+6 * Remove the menu that is in the glade file because we want to replace itJeffrey Stedfast2001-03-174-5/+51 * removed these blasted filesJeffrey Stedfast2001-03-174-602/+0 * Removed filter-url.[c,h] and filter-system-flag.[c,h]Jeffrey Stedfast2001-03-175-32/+37 * Changed the edit_filter to be a standalone window rather than a widget, soNot Zed2001-03-1514-928/+943 * create doc/devel/executive-summary/MakefileGediminas Paulauskas2001-03-152-1/+5 * Added an "Attachments" filter option where you can filter messages thatJeffrey Stedfast2001-03-134-121/+35 * Make sure we have something selected first ;-)Jeffrey Stedfast2001-03-09