From 6b9b57a3f0742cbe39e2d28a4bff007c7c99d29b Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Thu, 1 Mar 2001 07:42:45 +0000 Subject: Added new ECellPixbuf -- takes a GdkPixbuf from the model and renders it * e-cell-pixbuf.c, e-cell-pixbuf.h, Makefile.am, Makefile.am, e-table-extras.c: Added new ECellPixbuf -- takes a GdkPixbuf from the model and renders it centered in the table cell. * gal/Makefile.am: added e-cell-pixbuf.lo svn path=/trunk/; revision=8440 --- widgets/table/e-cell-pixbuf.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 widgets/table/e-cell-pixbuf.h (limited to 'widgets/table/e-cell-pixbuf.h') diff --git a/widgets/table/e-cell-pixbuf.h b/widgets/table/e-cell-pixbuf.h new file mode 100644 index 0000000000..b300f410ba --- /dev/null +++ b/widgets/table/e-cell-pixbuf.h @@ -0,0 +1,38 @@ +/* + * e-cell-pixbuf.h: An ECell that displays a GdkPixbuf + * + * Copyright (C) 2001 Ximian, Inc. + * + * Authors: Vladimir Vukicevic + * + */ + +#ifndef _E_CELL_PIXBUF_H_ +#define _E_CELL_PIXBUF_H_ + +#include + +#include + +#define E_CELL_PIXBUF_TYPE (e_cell_pixbuf_get_type ()) +#define E_CELL_PIXBUF(o) (GTK_CHECK_CAST ((o), E_CELL_PIXBUF_TYPE, ECellPixbuf)) +#define E_CELL_PIXBUF_CLASS(k) (GTK_CHECK_CAST_CLASS ((k), E_CELL_PIXBUF_TYPE, ECellPixbufClass)) +#define E_IS_CELL_PIXBUF(o) (GTK_CHECK_TYPE ((o), E_CELL_PIXBUF_TYPE)) +#define E_IS_CELL_PIXBUF_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CELL_PIXBUF_TYPE)) + +typedef struct _ECellPixbuf ECellPixbuf; +typedef struct _ECellPixbufClass ECellPixbufClass; + +struct _ECellPixbuf { + ECell parent; +}; + +struct _ECellPixbufClass { + ECellClass parent_class; +}; + +GtkType e_cell_pixbuf_get_type (void); +ECell *e_cell_pixbuf_new (void); +void e_cell_pixbuf_construct (ECellPixbuf *ecp); + +#endif -- cgit