aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-specification.h
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2002-11-05 00:18:45 +0800
committerMike Kestner <mkestner@src.gnome.org>2002-11-05 00:18:45 +0800
commit65269c688256d025bbd5da06af484dcc536c178d (patch)
treee1edd70c0410ebc4d9dda363b2debf45c8edd5f8 /widgets/table/e-table-specification.h
parentdcb12b11c9f4e35d614629c487643ace47068c32 (diff)
downloadgsoc2013-evolution-65269c688256d025bbd5da06af484dcc536c178d.tar.gz
gsoc2013-evolution-65269c688256d025bbd5da06af484dcc536c178d.tar.zst
gsoc2013-evolution-65269c688256d025bbd5da06af484dcc536c178d.zip
use GObject api for ETableHeader use GObject api on ETableHeader
2002-11-04 Mike Kestner <mkestner@ximian.com> * e-table-group.c : use GObject api for ETableHeader * e-table-header-item.c : use GObject api on ETableHeader * e-table-header.[ch] : GObjectify * e-table-item.c : use GObject api on ETableHeader * e-table-search.[ch] : GObjectify * e-table-sorted.c : use GObject api for ETableHeader * e-table-sorter.c : use GObject api for ETableHeader * e-table-specification.[ch] : GObjectify * e-table-utils.c : use GObject api for ETableHeader * e-tree-sorted.c : use GObject api for ETableHeader * e-tree.c : use GObject api on Header, Spec, and Search svn path=/trunk/; revision=18531
Diffstat (limited to 'widgets/table/e-table-specification.h')
-rw-r--r--widgets/table/e-table-specification.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/widgets/table/e-table-specification.h b/widgets/table/e-table-specification.h
index 92f52a4f42..961752b9b8 100644
--- a/widgets/table/e-table-specification.h
+++ b/widgets/table/e-table-specification.h
@@ -24,25 +24,24 @@
#ifndef _E_TABLE_SPECIFICATION_H_
#define _E_TABLE_SPECIFICATION_H_
-#include <gtk/gtkobject.h>
+#include <glib-object.h>
#include <libxml/tree.h>
#include <gal/widgets/e-selection-model.h>
#include <gal/e-table/e-table-state.h>
#include <gal/e-table/e-table-column-specification.h>
#include <gal/e-table/e-table-defines.h>
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
#define E_TABLE_SPECIFICATION_TYPE (e_table_specification_get_type ())
-#define E_TABLE_SPECIFICATION(o) (GTK_CHECK_CAST ((o), E_TABLE_SPECIFICATION_TYPE, ETableSpecification))
-#define E_TABLE_SPECIFICATION_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_TABLE_SPECIFICATION_TYPE, ETableSpecificationClass))
-#define E_IS_TABLE_SPECIFICATION(o) (GTK_CHECK_TYPE ((o), E_TABLE_SPECIFICATION_TYPE))
-#define E_IS_TABLE_SPECIFICATION_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_TABLE_SPECIFICATION_TYPE))
+#define E_TABLE_SPECIFICATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TABLE_SPECIFICATION_TYPE, ETableSpecification))
+#define E_TABLE_SPECIFICATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_TABLE_SPECIFICATION_TYPE, ETableSpecificationClass))
+#define E_IS_TABLE_SPECIFICATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TABLE_SPECIFICATION_TYPE))
+#define E_IS_TABLE_SPECIFICATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TABLE_SPECIFICATION_TYPE))
+#define E_TABLE_SPECIFICATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), E_TABLE_SPECIFICATION_TYPE, ETableSpecificationClass))
typedef struct {
- GtkObject base;
+ GObject base;
ETableColumnSpecification **columns;
ETableState *state;
@@ -65,10 +64,10 @@ typedef struct {
} ETableSpecification;
typedef struct {
- GtkObjectClass parent_class;
+ GObjectClass parent_class;
} ETableSpecificationClass;
-GtkType e_table_specification_get_type (void);
+GType e_table_specification_get_type (void);
ETableSpecification *e_table_specification_new (void);
gboolean e_table_specification_load_from_file (ETableSpecification *specification,
@@ -85,8 +84,6 @@ xmlNode *e_table_specification_save_to_node (ETableSpecificatio
xmlDoc *doc);
ETableSpecification *e_table_specification_duplicate (ETableSpecification *spec);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
#endif /* _E_TABLE_SPECIFICATION_H_ */