diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-11-02 08:23:28 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-11-02 08:23:28 +0800 |
commit | 793f838a7be8618034e8544ca364c0f09457f316 (patch) | |
tree | 8ea3e85045955877d56edd31b40ef263ed11a637 /filter/filter-int.h | |
parent | e5f0f54052e2bec6f02d4f0c3169355ffdb4f7ec (diff) | |
download | gsoc2013-evolution-793f838a7be8618034e8544ca364c0f09457f316.tar.gz gsoc2013-evolution-793f838a7be8618034e8544ca364c0f09457f316.tar.zst gsoc2013-evolution-793f838a7be8618034e8544ca364c0f09457f316.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...
* filter-folder.c: Wheee! This is fun...
* filter-int.c: Gee, I wonder...
* filter-label.c: Also ported.
* filter-option.c: Yep, this too.
* filter-source.c: And finally this one.
svn path=/trunk/; revision=18495
Diffstat (limited to 'filter/filter-int.h')
-rw-r--r-- | filter/filter-int.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/filter/filter-int.h b/filter/filter-int.h index 833fd30bc8..caba992958 100644 --- a/filter/filter-int.h +++ b/filter/filter-int.h @@ -26,16 +26,19 @@ #include "filter-element.h" -#define FILTER_INT(obj) GTK_CHECK_CAST (obj, filter_int_get_type (), FilterInt) -#define FILTER_INT_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, filter_int_get_type (), FilterIntClass) -#define IS_FILTER_INT(obj) GTK_CHECK_TYPE (obj, filter_int_get_type ()) +#define FILTER_TYPE_INT (filter_int_get_type ()) +#define FILTER_INT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FILTER_TYPE_INT, FilterInt)) +#define FILTER_INT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FILTER_TYPE_INT, FilterIntClass)) +#define IS_FILTER_INT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FILTER_TYPE_INT)) +#define IS_FILTER_INT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FILTER_TYPE_INT)) +#define FILTER_INT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FILTER_TYPE_INT, FilterIntClass)) -typedef struct _FilterInt FilterInt; -typedef struct _FilterIntClass FilterIntClass; +typedef struct _FilterInt FilterInt; +typedef struct _FilterIntClass FilterIntClass; struct _FilterInt { - FilterElement parent; - + FilterElement parent_object; + char *type; int val; int min; @@ -50,10 +53,10 @@ struct _FilterIntClass { /* signals */ }; -GtkType filter_int_get_type (void); -FilterInt *filter_int_new (void); -FilterInt *filter_int_new_type(const char *type, int min, int max); -void filter_int_set_value(FilterInt *fi, int val); +GType filter_int_get_type (void); +FilterInt *filter_int_new (void); +FilterInt *filter_int_new_type (const char *type, int min, int max); +void filter_int_set_value (FilterInt *fi, int val); /* methods */ |