diff options
author | jstebbins <[email protected]> | 2008-06-17 15:40:49 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-06-17 15:40:49 +0000 |
commit | 8bbd36bcbe75a53b29f7cc62e5ae9d107f92eddc (patch) | |
tree | aafba8f8091293cc3faac87f0c61460cc6017c39 /gtk/src/renderer_button.h | |
parent | 01cf7f40ab14ce0961c5ea0c6e16580284c03945 (diff) |
LinGui: Initial import
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1517 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/renderer_button.h')
-rw-r--r-- | gtk/src/renderer_button.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gtk/src/renderer_button.h b/gtk/src/renderer_button.h new file mode 100644 index 000000000..dc898e4eb --- /dev/null +++ b/gtk/src/renderer_button.h @@ -0,0 +1,39 @@ +#ifndef _RENDERER_BUTTON_H_ +#define _RENDERER_BUTTON_H_ + +#include <gtk/gtk.h> + +/* Some boilerplate GObject type check and type cast macros. +* 'klass' is used here instead of 'class', because 'class' +* is a c++ keyword */ +#define CUSTOM_TYPE_CELL_RENDERER_BUTTON (custom_cell_renderer_button_get_type()) +#define CUSTOM_CELL_RENDERER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CUSTOM_TYPE_CELL_RENDERER_BUTTON, CustomCellRendererButton)) +#define CUSTOM_CELL_RENDERER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CUSTOM_TYPE_CELL_RENDERER_BUTTON, CustomCellRendererButtonClass)) +#define CUSTOM_IS_CELL_BUTTON_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_TYPE_CELL_RENDERER_BUTTON)) +#define CUSTOM_IS_CELL_BUTTON_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_TYPE_CELL_RENDERER_BUTTON)) +#define CUSTOM_CELL_RENDERER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_TYPE_CELL_RENDERER_BUTTON, CustomCellRendererButtonClass)) + +typedef struct _CustomCellRendererButton CustomCellRendererButton; +typedef struct _CustomCellRendererButtonClass CustomCellRendererButtonClass; + +/* CustomCellRendererProgress: Our custom cell renderer +* structure. Extend according to need */ +struct _CustomCellRendererButton +{ + GtkCellRendererPixbuf parent; +}; + +struct _CustomCellRendererButtonClass +{ + GtkCellRendererPixbufClass parent_class; + + void (* clicked) (CustomCellRendererButton *cell_renderer_button, + const gchar *path); +}; + +GType custom_cell_renderer_button_get_type (void); +GtkCellRenderer *custom_cell_renderer_button_new (void); + + +#endif // _RENDERER_BUTTON_H_ + |