aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-10 03:19:36 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-10 03:19:36 +0800
commit7f36752a67c274640378ec096f37e690fd5ca8ed (patch)
treedcc3124da275074dcf11803bb553d2af384858db /addressbook/gui/component
parent59d329b5b090175e2ea5ffd06cb20dfcd41a7688 (diff)
downloadgsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar.gz
gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar.zst
gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.zip
Initial support for creating/removing folders. This implies some new
IDL methods and new functions to implement on the component side. I have also added a simple folder creation dialog in the shell. It's quite unfinished and untested. svn path=/trunk/; revision=3491
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook-component.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index c3c7a14d60..793e168c18 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -50,17 +50,24 @@ static const EvolutionShellComponentFolderType folder_types[] = {
/* EvolutionShellComponent methods and signals. */
-static BonoboControl *
+static EvolutionShellComponentResult
create_view (EvolutionShellComponent *shell_component,
const char *physical_uri,
+ const char *type,
+ BonoboControl **control_return,
void *closure)
{
BonoboControl *control;
+ if (g_strcasecmp (type, "contacts") != 0)
+ return EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDTYPE;
+
control = addressbook_factory_new_control ();
bonobo_control_set_property (control, "folder_uri", physical_uri, NULL);
- return control;
+ *control_return = control;
+
+ return EVOLUTION_SHELL_COMPONENT_OK;
}
static int owner_count = 0;
@@ -92,7 +99,7 @@ factory_fn (BonoboGenericFactory *factory,
{
EvolutionShellComponent *shell_component;
- shell_component = evolution_shell_component_new (folder_types, create_view, NULL);
+ shell_component = evolution_shell_component_new (folder_types, create_view, NULL, NULL, NULL);
gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set",
GTK_SIGNAL_FUNC (owner_set_cb), NULL);
/span> * Chase the glib20 update, and bump all affected ports' PORTREVISIONs.marcus2004-04-051-1/+1 * - Add SIZE to GNOME portspav2004-03-181-0/+1 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * Update to 1.3.8bland2003-11-187-78/+15 * Update to 1.3.7bland2003-08-268-56/+28 * Fix some other build problems with GCC 3.3.1. Since these patches affectmarcus2003-07-234-3/+72 * Fix build with GCC 3.3.1.marcus2003-07-231-0/+10 * Fix problems with g++-2.9x and virtual interfaces.marcus2003-06-203-1/+23 * * Remove the need for X, and instal this port in ${LOCALBASE}marcus2003-06-192-2/+4 * Update to 1.3.6, shlib bump, utilize USE_GNOME, and make gnome@adamw2003-06-173-7/+6 * Update to version 1.3.5naddy2003-04-267-1115/+61 * Remove USE_GNOMENG.marcus2003-04-201-1/+0 * De-pkg-comment.knu2003-02-212-1/+1 * Fix build in -current and unmark broken.pat2002-12-153-2/+1046 * Fix PORTCOMMENTs that were killing INDEX builds.adamw2002-11-072-2/+1 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-072-1/+2 * ${PERL} -> ${REINPLACE_CMD}dwcjr2002-09-021-2/+3 * Convert USE_GLIB into USE_GNOMENG+USE_GNOME.sobomax2002-07-161-1/+2 * BROKEN: Does not buildkris2002-05-181-0/+2 * Update to 0.30.4ade2002-03-125-30/+12 * First round of auto* cleanups:will2002-01-061-1/+1 * Backout previous change - it seems that new revision of the patch doesn'tsobomax2001-12-201-17/+8 * Don't filter libc_r on 5-CURRENT.sobomax2001-12-201-8/+17 * - Add patch-Makefile.buildvars to add ${LOCALBASE}/include to INCLUDEDIRSwjv2001-11-156-30/+42 * Don't link in libc - FreeBSD doesn't need this.sobomax2001-10-311-1/+11