From 793f838a7be8618034e8544ca364c0f09457f316 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 2 Nov 2002 00:23:28 +0000 Subject: Ported to GObject. 2002-11-01 Jeffrey Stedfast * 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 --- filter/filter-int.h | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'filter/filter-int.h') 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 */ -- cgit