Alex Foobarian's track duration patch
[viking/gosmore.git] / src / gtkcellrendererprogress.h
blob5915d767cc1b0eacf164bb5c497f2abc1a5269c0
1 /* gtkcellrendererprogress.h
2 * Taken from Gaim 0.77.
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.
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.
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.
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
24 #ifndef __GTK_CELL_RENDERER_PROGRESS_H__
25 #define __GTK_CELL_RENDERER_PROGRESS_H__
27 #include <gtk/gtkcellrenderer.h>
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
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))
41 typedef struct _GtkCellRendererProgress GtkCellRendererProgress;
42 typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass;
44 struct _GtkCellRendererProgress {
45 GtkCellRenderer parent;
47 gdouble progress;
48 gchar *text;
49 gboolean text_set;
52 struct _GtkCellRendererProgressClass {
53 GtkCellRendererClass parent_class;
56 GType gtk_cell_renderer_progress_get_type (void);
57 GtkCellRenderer *gtk_cell_renderer_progress_new (void);
60 #ifdef __cplusplus
62 #endif /* __cplusplus */
64 #endif /* __GTK_CELL_RENDERER_PROGRESS_H__ */