1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 8 -*- */
2 /* prefs-cell-renderer.h
3  *
4  * Copyright (C) 2002 Dave Camp
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef PREFS_CELL_RENDERER_H
23 #define PREFS_CELL_RENDERER_H
24 
25 #include <gtk/gtk.h>
26 
27 G_BEGIN_DECLS
28 
29 #define ANJUTA_TYPE_CELL_RENDERER_CAPTIONED_IMAGE		(anjuta_cell_renderer_captioned_image_get_type ())
30 #define ANJUTA_CELL_RENDERER_CAPTIONED_IMAGE(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_CELL_RENDERER_CAPTIONED_IMAGE, AnjutaCellRendererCaptionedImage))
31 #define ANJUTA_CELL_RENDERER_CAPTIONED_IMAGE_CLASS(klass)	(G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_CELL_RENDERER_CAPTIONED_IMAGE, AnjutaCellRendererCaptionedImageClass))
32 #define ANJUTA_IS_CELL_RENDERER_CAPTIONED_IMAGE(obj)		(G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_CELL_RENDERER_CAPTIONED_IMAGE))
33 #define ANJUTA_IS_CELL_RENDERER_CAPTIONED_IMAGE_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_CELL_RENDERER_CAPTIONED_IMAGE))
34 #define ANJUTA_CELL_RENDERER_CAPTIONED_IMAGE_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_CELL_RENDERER_CAPTIONED_IMAGE, AnjutaCellRendererCaptionedImageClass))
35 
36 typedef struct _AnjutaCellRendererCaptionedImage        AnjutaCellRendererCaptionedImage;
37 typedef struct _AnjutaCellRendererCaptionedImageClass   AnjutaCellRendererCaptionedImageClass;
38 
39 struct _AnjutaCellRendererCaptionedImage {
40 	GtkCellRenderer parent;
41 
42 	GtkCellRenderer *image;
43 	GtkCellRenderer *caption;
44 };
45 
46 struct _AnjutaCellRendererCaptionedImageClass {
47 	GtkCellRendererClass parent_class;
48 };
49 
50 GType            anjuta_cell_renderer_captioned_image_get_type (void);
51 GtkCellRenderer *anjuta_cell_renderer_captioned_image_new      (void);
52 
53 G_END_DECLS
54 
55 #endif
56