diff options
author | nobody <nobody@localhost> | 2000-02-17 07:51:01 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-02-17 07:51:01 +0800 |
commit | 2b80feefead30f2b24a3c51c4b52373c5faacbac (patch) | |
tree | 646d019769a1d66081bd13dc9cab96c4417d8843 /calendar/gui/todo-conduit.h | |
parent | 5a80143a526ddc84b31e8458c525d40580c06810 (diff) | |
download | gsoc2013-evolution-GNOME_CORE_1_1_4.tar gsoc2013-evolution-GNOME_CORE_1_1_4.tar.gz gsoc2013-evolution-GNOME_CORE_1_1_4.tar.bz2 gsoc2013-evolution-GNOME_CORE_1_1_4.tar.lz gsoc2013-evolution-GNOME_CORE_1_1_4.tar.xz gsoc2013-evolution-GNOME_CORE_1_1_4.tar.zst gsoc2013-evolution-GNOME_CORE_1_1_4.zip |
This commit was manufactured by cvs2svn to create tagGNOME_CORE_1_1_4
'GNOME_CORE_1_1_4'.
svn path=/tags/GNOME_CORE_1_1_4/; revision=1807
Diffstat (limited to 'calendar/gui/todo-conduit.h')
-rw-r--r-- | calendar/gui/todo-conduit.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/calendar/gui/todo-conduit.h b/calendar/gui/todo-conduit.h deleted file mode 100644 index c224b2b1f3..0000000000 --- a/calendar/gui/todo-conduit.h +++ /dev/null @@ -1,59 +0,0 @@ -/* $Id$ */ - -#ifndef __TODO_CONDUIT_H__ -#define __TODO_CONDUIT_H__ - -#include <sys/types.h> -#include <fcntl.h> -#include <unistd.h> -#include <pi-todo.h> -#include <gnome.h> - -typedef struct _ConduitCfg ConduitCfg; - -struct _ConduitCfg { - gboolean open_secret; - guint32 pilotId; -}; - -#define GET_CONFIG(c) ((ConduitCfg*)gtk_object_get_data(GTK_OBJECT(c),"conduit_cfg")) - -typedef struct _ConduitData ConduitData; - -struct _ConduitData { - struct ToDoAppInfo ai; -}; - -#define GET_DATA(c) ((ConduitData*)gtk_object_get_data(GTK_OBJECT(c),"conduit_data")) - -static void load_configuration(ConduitCfg **c,guint32 pilotId) { - gchar prefix[256]; - g_snprintf(prefix,255,"/gnome-pilot.d/todod-conduit/Pilot_%u/",pilotId); - - *c = g_new0(ConduitCfg,1); - gnome_config_push_prefix(prefix); - (*c)->open_secret = gnome_config_get_bool("open secret=FALSE"); - gnome_config_pop_prefix(); - - (*c)->pilotId = pilotId; -} - -static void save_configuration(ConduitCfg *c) { - gchar prefix[256]; - - g_snprintf(prefix,255,"/gnome-pilot.d/todo-conduit/Pilot_%u/",c->pilotId); - - gnome_config_push_prefix(prefix); - gnome_config_set_bool("open secret",c->open_secret); - gnome_config_pop_prefix(); - - gnome_config_sync(); - gnome_config_drop_all(); -} - -static void destroy_configuration(ConduitCfg **c) { - g_free(*c); - *c = NULL; -} - -#endif __TODO_CONDUIT_H__ |