diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-09-15 03:08:51 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-09-15 03:08:51 +0800 |
commit | 8ab84a1ebff365b8138623bc0da1dfec3bc385e5 (patch) | |
tree | 205e9f73cfd3cbbb1c62619b8840209114092034 /calendar/conduits/todo/todo-conduit-config.h | |
parent | dc5039bf5f71401879555beb6b61d04c5d809af5 (diff) | |
download | gsoc2013-evolution-8ab84a1ebff365b8138623bc0da1dfec3bc385e5.tar gsoc2013-evolution-8ab84a1ebff365b8138623bc0da1dfec3bc385e5.tar.gz gsoc2013-evolution-8ab84a1ebff365b8138623bc0da1dfec3bc385e5.tar.bz2 gsoc2013-evolution-8ab84a1ebff365b8138623bc0da1dfec3bc385e5.tar.lz gsoc2013-evolution-8ab84a1ebff365b8138623bc0da1dfec3bc385e5.tar.xz gsoc2013-evolution-8ab84a1ebff365b8138623bc0da1dfec3bc385e5.tar.zst gsoc2013-evolution-8ab84a1ebff365b8138623bc0da1dfec3bc385e5.zip |
Add headers with GPL notice and credit copyright to those appropriate
2000-09-14 JP Rosevear <jpr@helixcode.com>
* Add headers with GPL notice and credit copyright to those
appropriate
* conduits/todo/todo-conduit-control-applet.c (doHelp): Update
name,
authors, copyright for about dialog.
(activate_sync_type): Tidy
* conduits/todo/Makefile.am: Rename binaries and libs to e-todo*
to avoid conflicts.
* conduits/todo/e-todo.conduit.in: Reflect binary/lib name changes
* conduits/todo/e-todo-conduit-control-applet.desktop: ditto
* conduits/todo/todo.conduit.in: Removed
* conduits/todo/todo-conduit-control-applet.desktop: Removed
* conduits/todo/todo-conduit-config.h
(todoconduit_load_configuration):
The config file will now be called e-todo-conduit
(todoconduit_save_configuration): ditto
* conduits/todo/todo-conduit.c: Some renaming to keep consistent.
(pre_sync): Remove commented out function that does not exist.
* conduits/todo/todo-conduit-control-applet.c: ditto
* conduits/todo/todo-conduit-config.h: ditto
* conduits/todo/todo-conduit.h: ditto
svn path=/trunk/; revision=5433
Diffstat (limited to 'calendar/conduits/todo/todo-conduit-config.h')
-rw-r--r-- | calendar/conduits/todo/todo-conduit-config.h | 71 |
1 files changed, 51 insertions, 20 deletions
diff --git a/calendar/conduits/todo/todo-conduit-config.h b/calendar/conduits/todo/todo-conduit-config.h index fb4d35c7e8..18bb353b08 100644 --- a/calendar/conduits/todo/todo-conduit-config.h +++ b/calendar/conduits/todo/todo-conduit-config.h @@ -1,4 +1,26 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* Evolution calendar - ToDo Conduit Configuration + * + * Copyright (C) 1998 Free Software Foundation + * Copyright (C) 2000 Helix Code, Inc. + * + * Authors: Eskil Heyn Olsen <deity@eskil.dk> + * JP Rosevear <jpr@helixcode.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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + */ #ifndef __TODO_CONDUIT_CONFIG_H__ #define __TODO_CONDUIT_CONFIG_H__ @@ -8,24 +30,28 @@ #include <libgpilotdCM/gnome-pilot-conduit-config.h> /* This is the configuration of the GnomeCal conduit. */ -typedef struct _ToDoConduitCfg ToDoConduitCfg; -struct _ToDoConduitCfg { +typedef struct _EToDoConduitCfg EToDoConduitCfg; +struct _EToDoConduitCfg { gboolean open_secret; guint32 pilotId; GnomePilotConduitSyncType sync_type; /* only used by capplet */ }; static void -todoconduit_load_configuration (ToDoConduitCfg **c, guint32 pilotId) +todoconduit_load_configuration (EToDoConduitCfg **c, guint32 pilotId) { gchar prefix[256]; - g_snprintf (prefix,255,"/gnome-pilot.d/todo-conduit/Pilot_%u/",pilotId); + g_snprintf (prefix, 255, "/gnome-pilot.d/e-todo-conduit/Pilot_%u/", + pilotId); - *c = g_new0 (ToDoConduitCfg,1); + *c = g_new0 (EToDoConduitCfg,1); g_assert (*c != NULL); + gnome_config_push_prefix (prefix); (*c)->open_secret = gnome_config_get_bool ("open_secret=FALSE"); - (*c)->sync_type = GnomePilotConduitSyncTypeCustom; /* set in capplets main */ + + /* set in capplets main */ + (*c)->sync_type = GnomePilotConduitSyncTypeCustom; gnome_config_pop_prefix (); (*c)->pilotId = pilotId; @@ -33,38 +59,43 @@ todoconduit_load_configuration (ToDoConduitCfg **c, guint32 pilotId) /* Saves the configuration data. */ static void -todoconduit_save_configuration (ToDoConduitCfg *c) +todoconduit_save_configuration (EToDoConduitCfg *c) { gchar prefix[256]; - g_snprintf(prefix,255,"/gnome-pilot.d/todo-conduit/Pilot_%u/",c->pilotId); + g_snprintf (prefix, 255, "/gnome-pilot.d/e-todo-conduit/Pilot_%u/", + c->pilotId); - gnome_config_push_prefix(prefix); + gnome_config_push_prefix (prefix); gnome_config_set_bool ("open_secret", c->open_secret); - gnome_config_pop_prefix(); + gnome_config_pop_prefix (); - gnome_config_sync(); - gnome_config_drop_all(); + gnome_config_sync (); + gnome_config_drop_all (); } /* Creates a duplicate of the configuration data */ -static ToDoConduitCfg* -todoconduit_dupe_configuration (ToDoConduitCfg *c) +static EToDoConduitCfg* +todoconduit_dupe_configuration (EToDoConduitCfg *c) { - ToDoConduitCfg *retval; - g_return_val_if_fail (c!=NULL,NULL); - retval = g_new0 (ToDoConduitCfg,1); + EToDoConduitCfg *retval; + + g_return_val_if_fail (c != NULL, NULL); + + retval = g_new0 (EToDoConduitCfg, 1); retval->sync_type = c->sync_type; retval->open_secret = c->open_secret; retval->pilotId = c->pilotId; + return retval; } static void -todoconduit_destroy_configuration (ToDoConduitCfg **c) +todoconduit_destroy_configuration (EToDoConduitCfg **c) { - g_return_if_fail (c!=NULL); - g_return_if_fail (*c!=NULL); + g_return_if_fail (c != NULL); + g_return_if_fail (*c != NULL); + g_free (*c); *c = NULL; } |