1 /*
2  * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA  02110-1301, USA.
18  */
19 
20 #ifndef __GDAUI_DATA_CELL_RENDERER_TEXTUAL_H__
21 #define __GDAUI_DATA_CELL_RENDERER_TEXTUAL_H__
22 
23 #include <gtk/gtk.h>
24 #include <pango/pango.h>
25 #include <libgda/gda-data-handler.h>
26 
27 G_BEGIN_DECLS
28 
29 #define GDAUI_TYPE_DATA_CELL_RENDERER_TEXTUAL		(gdaui_data_cell_renderer_textual_get_type ())
30 #define GDAUI_DATA_CELL_RENDERER_TEXTUAL(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), GDAUI_TYPE_DATA_CELL_RENDERER_TEXTUAL, GdauiDataCellRendererTextual))
31 #define GDAUI_DATA_CELL_RENDERER_TEXTUAL_CLASS(klass)	(G_TYPE_CHECK_CLASS_CAST ((klass), GDAUI_TYPE_DATA_CELL_RENDERER_TEXTUAL, GdauiDataCellRendererTextualClass))
32 #define GDAUI_IS_DATA_CELL_RENDERER_TEXTUAL(obj)		(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDAUI_TYPE_DATA_CELL_RENDERER_TEXTUAL))
33 #define GDAUI_IS_DATA_CELL_RENDERER_TEXTUAL_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass), GDAUI_TYPE_DATA_CELL_RENDERER_TEXTUAL))
34 #define GDAUI_DATA_CELL_RENDERER_TEXTUAL_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GDAUI_TYPE_DATA_CELL_RENDERER_TEXTUAL, GdauiDataCellRendererTextualClass))
35 
36 typedef struct _GdauiDataCellRendererTextual        GdauiDataCellRendererTextual;
37 typedef struct _GdauiDataCellRendererTextualClass   GdauiDataCellRendererTextualClass;
38 typedef struct _GdauiDataCellRendererTextualPrivate GdauiDataCellRendererTextualPrivate;
39 
40 struct _GdauiDataCellRendererTextual
41 {
42 	GtkCellRendererText                    parent;
43 
44 	GdauiDataCellRendererTextualPrivate *priv;
45 };
46 
47 struct _GdauiDataCellRendererTextualClass
48 {
49 	GtkCellRendererTextClass               parent_class;
50 
51 	void (* changed) (GdauiDataCellRendererTextual  *cell_renderer_textual,
52 			  const gchar         *path,
53 			  const GValue      *new_value);
54 };
55 
56 GType            gdaui_data_cell_renderer_textual_get_type (void) G_GNUC_CONST;
57 GtkCellRenderer *gdaui_data_cell_renderer_textual_new      (GdaDataHandler *dh, GType type,
58 							    const gchar *options);
59 
60 
61 G_END_DECLS
62 
63 #endif
64