gtkcellrendererprogress.h

00001 /* gtkxcellrendererprogress.h
00002  * Pidgin is the legal property of its developers, whose names are too numerous
00003  * to list here.  Please refer to the COPYRIGHT file distributed with this
00004  * source distribution.
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00019  *
00020  */
00021 #ifndef _PIDGINCELLRENDERERPROGRESS_H_
00022 #define _PIDGINCELLRENDERERPROGRESS_H_
00023 
00024 #include <gtk/gtkcellrenderer.h>
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif /* __cplusplus */
00029 
00030 
00031 #define PIDGIN_TYPE_GTK_CELL_RENDERER_PROGRESS         (pidgin_cell_renderer_progress_get_type())
00032 #define PIDGIN_CELL_RENDERER_PROGRESS(obj)         (G_TYPE_CHECK_INSTANCE_CAST((obj), PIDGIN_TYPE_GTK_CELL_RENDERER_PROGRESS, PidginCellRendererProgress))
00033 #define PIDGIN_CELL_RENDERER_PROGRESS_CLASS(klass)  (G_TYPE_CHECK_CLASS_CAST ((klass), PIDGIN_TYPE_GTK_CELL_RENDERER_PROGRESS, PidginCellRendererProgressClass))
00034 #define PIDGIN_IS_GTK_CELL_PROGRESS_PROGRESS(obj)       (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_GTK_CELL_RENDERER_PROGRESS))
00035 #define PIDGIN_IS_GTK_CELL_PROGRESS_PROGRESS_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), PIDGIN_TYPE_GTK_CELL_RENDERER_PROGRESS))
00036 #define PIDGIN_CELL_RENDERER_PROGRESS_GET_CLASS(obj)         (G_TYPE_INSTANCE_GET_CLASS ((obj), PIDGIN_TYPE_GTK_CELL_RENDERER_PROGRESS, PidginCellRendererProgressClass))
00037 
00038 typedef struct _PidginCellRendererProgress PidginCellRendererProgress;
00039 typedef struct _PidginCellRendererProgressClass PidginCellRendererProgressClass;
00040 
00041 struct _PidginCellRendererProgress {
00042     GtkCellRenderer parent;
00043 
00044     gdouble progress;
00045     gchar *text;
00046     gboolean text_set;
00047 };
00048 
00049 struct _PidginCellRendererProgressClass {
00050     GtkCellRendererClass parent_class;
00051 };
00052 
00053 GType            pidgin_cell_renderer_progress_get_type     (void);
00054 GtkCellRenderer  *pidgin_cell_renderer_progress_new          (void);
00055 
00056 
00057 #ifdef __cplusplus
00058 }
00059 #endif /* __cplusplus */
00060 
00061 #endif /* _PIDGINCELLRENDERERPROGRESS_H_ */