diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-11-02 07:22:57 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-11-02 07:22:57 +0800 |
commit | e033f54a9044a4288c923e9b2c6d9477da076d26 (patch) | |
tree | e49c07744c18ba0663e15418843a5cc8e6485842 /filter/filter-datespec.h | |
parent | 9bfc63718a9752a4e55cf03f5440dd82df63a758 (diff) | |
download | gsoc2013-evolution-e033f54a9044a4288c923e9b2c6d9477da076d26.tar.gz gsoc2013-evolution-e033f54a9044a4288c923e9b2c6d9477da076d26.tar.zst gsoc2013-evolution-e033f54a9044a4288c923e9b2c6d9477da076d26.zip |
Ported to GObject.
2002-11-01 Jeffrey Stedfast <fejj@ximian.com>
* filter-element.c: Ported to GObject.
* filter-input.c: Same.
* filter-code.c: This too.
* filter-colour.c: And this.
* filter-datespec.c: You guessed it.
* filter-file.c: And again...
svn path=/trunk/; revision=18493
Diffstat (limited to 'filter/filter-datespec.h')
-rw-r--r-- | filter/filter-datespec.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/filter/filter-datespec.h b/filter/filter-datespec.h index 5d20380a47..6290ab34b5 100644 --- a/filter/filter-datespec.h +++ b/filter/filter-datespec.h @@ -1,7 +1,9 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * Copyright (C) 2000 Ximian Inc. + * Copyright (C) 2000-2002 Ximian Inc. * * Authors: Not Zed <notzed@lostzed.mmc.com.au> + * Jeffrey Stedfast <fejj@ximian.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public @@ -18,18 +20,22 @@ * Boston, MA 02111-1307, USA. */ + #ifndef _FILTER_DATESPEC_H #define _FILTER_DATESPEC_H #include <time.h> #include "filter-element.h" -#define FILTER_DATESPEC(obj) GTK_CHECK_CAST (obj, filter_datespec_get_type (), FilterDatespec) -#define FILTER_DATESPEC_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, filter_datespec_get_type (), FilterDatespecClass) -#define IS_FILTER_DATESPEC(obj) GTK_CHECK_TYPE (obj, filter_datespec_get_type ()) +#define FILTER_TYPE_DATESPEC (filter_datespec_get_type ()) +#define FILTER_DATESPEC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FILTER_TYPE_DATESPEC, FilterDatespec)) +#define FILTER_DATESPEC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FILTER_TYPE_DATESPEC, FilterDatespecClass)) +#define IS_FILTER_DATESPEC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FILTER_TYPE_DATESPEC)) +#define IS_FILTER_DATESPEC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FILTER_TYPE_DATESPEC)) +#define FILTER_DATESPEC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FILTER_TYPE_DATESPEC, FilterDatespecClass)) -typedef struct _FilterDatespec FilterDatespec; -typedef struct _FilterDatespecClass FilterDatespecClass; +typedef struct _FilterDatespec FilterDatespec; +typedef struct _FilterDatespecClass FilterDatespecClass; typedef enum _FilterDatespec_type { FDST_UNKNOWN = -1, @@ -41,14 +47,14 @@ typedef enum _FilterDatespec_type { struct _FilterDatespec { FilterElement parent; struct _FilterDatespecPrivate *priv; - + FilterDatespec_type type; - + /* either a timespan, an absolute time, or 0 * depending on type -- the above mapping to * (X_AGO, SPECIFIED, NOW) */ - + time_t value; }; @@ -60,10 +66,9 @@ struct _FilterDatespecClass { /* signals */ }; -guint filter_datespec_get_type (void); -FilterDatespec *filter_datespec_new (void); +GType filter_datespec_get_type (void); +FilterDatespec *filter_datespec_new (void); /* methods */ #endif /* ! _FILTER_DATESPEC_H */ - |