]> git.street.me.uk Git - andy/viking.git/blob - src/gtkcellrendererprogress.h
Refactoring: retrieve the VikWindow from the VikViewport via its GtkWidget nature
[andy/viking.git] / src / gtkcellrendererprogress.h
1 /* gtkcellrendererprogress.h
2  * Taken from Gaim 0.77.
3  *
4  * Gaim is the legal property of its developers, whose names are too numerous
5  * to list here.  Please refer to the COPYRIGHT file distributed with this
6  * source distribution.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  * 
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  *
22  */
23
24 #ifndef __GTK_CELL_RENDERER_PROGRESS_H__
25 #define __GTK_CELL_RENDERER_PROGRESS_H__
26
27 #include <gtk/gtkcellrenderer.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32
33
34 #define GTK_TYPE_CELL_RENDERER_PROGRESS         (gtk_cell_renderer_progress_get_type())
35 #define GTK_CELL_RENDERER_PROGRESS(obj)         (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgress))
36 #define GTK_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass))
37 #define GTK_IS_CELL_PROGRESS_PROGRESS(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS))
38 #define GTK_IS_CELL_PROGRESS_PROGRESS_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS))
39 #define GTK_CELL_RENDERER_PROGRESS_GET_CLASS(obj)         (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass))
40
41 typedef struct _GtkCellRendererProgress GtkCellRendererProgress;
42 typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass;
43
44         struct _GtkCellRendererProgress {
45                 GtkCellRenderer parent;
46
47                 gdouble progress;
48                 gchar *text;
49                 gboolean text_set;
50         };
51
52         struct _GtkCellRendererProgressClass {
53                 GtkCellRendererClass parent_class;
54         };
55
56         GType            gtk_cell_renderer_progress_get_type     (void);
57         GtkCellRenderer  *gtk_cell_renderer_progress_new          (void);
58
59
60 #ifdef __cplusplus
61 }
62 #endif /* __cplusplus */
63
64 #endif /* __GTK_CELL_RENDERER_PROGRESS_H__ */