diff options
author | nobody <nobody@localhost> | 2003-04-02 01:15:53 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2003-04-02 01:15:53 +0800 |
commit | 2e5b2bbb530b642dda56b332cfd93810ac415098 (patch) | |
tree | e2b63c11a404a5dd99d407c989c8846fd0d5379d /e-util/e-config-listener.h | |
parent | 5cda225087bfdc66e19edb703689e8af655e171c (diff) | |
download | gsoc2013-evolution-EVOLUTION_1_2_4.tar gsoc2013-evolution-EVOLUTION_1_2_4.tar.gz gsoc2013-evolution-EVOLUTION_1_2_4.tar.bz2 gsoc2013-evolution-EVOLUTION_1_2_4.tar.lz gsoc2013-evolution-EVOLUTION_1_2_4.tar.xz gsoc2013-evolution-EVOLUTION_1_2_4.tar.zst gsoc2013-evolution-EVOLUTION_1_2_4.zip |
This commit was manufactured by cvs2svn to create tagEVOLUTION_1_2_4
'EVOLUTION_1_2_4'.
svn path=/tags/EVOLUTION_1_2_4/; revision=20614
Diffstat (limited to 'e-util/e-config-listener.h')
-rw-r--r-- | e-util/e-config-listener.h | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/e-util/e-config-listener.h b/e-util/e-config-listener.h index 9b331a7c8a..a393350ce4 100644 --- a/e-util/e-config-listener.h +++ b/e-util/e-config-listener.h @@ -11,48 +11,46 @@ #ifndef __E_CONFIG_LISTENER_H__ #define __E_CONFIG_LISTENER_H__ -#include <glib-object.h> +#include <gtk/gtkobject.h> +#include <libgnome/gnome-defs.h> +#include <bonobo-conf/bonobo-config-database.h> -G_BEGIN_DECLS +BEGIN_GNOME_DECLS #define E_CONFIG_LISTENER_TYPE (e_config_listener_get_type ()) -#define E_CONFIG_LISTENER(o) (G_TYPE_CHECK_INSTANCECAST ((o), E_CONFIG_LISTENER_TYPE, EConfigListener)) -#define E_CONFIG_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_CONFIG_LISTENER_TYPE, EConfigListenerClass)) -#define E_IS_CONFIG_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_CONFIG_LISTENER_TYPE)) -#define E_IS_CONFIG_LISTENER_CLASS(k) (GT_TYPE_CHECK_CLASS_TYPE ((k), E_CONFIG_LISTENER_TYPE)) +#define E_CONFIG_LISTENER(o) (GTK_CHECK_CAST ((o), E_CONFIG_LISTENER_TYPE, EConfigListener)) +#define E_CONFIG_LISTENER_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_CONFIG_LISTENER_TYPE, EConfigListenerClass)) +#define E_IS_CONFIG_LISTENER(o) (GTK_CHECK_TYPE ((o), E_CONFIG_LISTENER_TYPE)) +#define E_IS_CONFIG_LISTENER_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CONFIG_LISTENER_TYPE)) typedef struct _EConfigListenerPrivate EConfigListenerPrivate; typedef struct { - GObject object; + GtkObject object; EConfigListenerPrivate *priv; } EConfigListener; typedef struct { - GObjectClass parent_class; + GtkObjectClass parent_class; void (* key_changed) (EConfigListener *cl, const char *key); } EConfigListenerClass; -GType e_config_listener_get_type (void); +GtkType e_config_listener_get_type (void); EConfigListener *e_config_listener_new (void); -gboolean e_config_listener_get_boolean (EConfigListener *cl, const char *key); gboolean e_config_listener_get_boolean_with_default (EConfigListener *cl, const char *key, gboolean def, gboolean *used_default); -float e_config_listener_get_float (EConfigListener *cl, const char *key); float e_config_listener_get_float_with_default (EConfigListener *cl, const char *key, float def, gboolean *used_default); -long e_config_listener_get_long (EConfigListener *cl, const char *key); long e_config_listener_get_long_with_default (EConfigListener *cl, const char *key, long def, gboolean *used_default); -char *e_config_listener_get_string (EConfigListener *cl, const char *key); char *e_config_listener_get_string_with_default (EConfigListener *cl, const char *key, const char *def, @@ -70,11 +68,10 @@ void e_config_listener_set_string (EConfigListener *cl, const char *key, const char *value); -void e_config_listener_remove_value (EConfigListener *cl, - const char *key); -void e_config_listener_remove_dir (EConfigListener *cl, - const char *dir); +void e_config_listener_remove_dir (EConfigListener *cl, const char *dir); -G_END_DECLS +Bonobo_ConfigDatabase e_config_listener_get_db (EConfigListener *cl); + +END_GNOME_DECLS #endif |