udapted vi.po
[rhythmbox.git] / widgets / rb-cell-renderer-pixbuf.h
blobcfc2388a5a451bac1f88a8d8f7df7e23618c8c08
1 /* rbcellrendererpixbuf.h
3 * arch-tag: Header for Rhythmbox pixbuf GtkTreeView cell renderer
5 * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
6 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library 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 GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21 * Boston, MA 02110-1301 USA.
24 #ifndef __RB_CELL_RENDERER_PIXBUF_H__
25 #define __RB_CELL_RENDERER_PIXBUF_H__
27 #include <gtk/gtkcellrenderer.h>
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
33 #define RB_TYPE_CELL_RENDERER_PIXBUF (rb_cell_renderer_pixbuf_get_type ())
34 #define RB_CELL_RENDERER_PIXBUF(obj) (GTK_CHECK_CAST ((obj), RB_TYPE_CELL_RENDERER_PIXBUF, RBCellRendererPixbuf))
35 #define RB_CELL_RENDERER_PIXBUF_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), RB_TYPE_CELL_RENDERER_PIXBUF, RBCellRendererPixbufClass))
36 #define RB_IS_CELL_RENDERER_PIXBUF(obj) (GTK_CHECK_TYPE ((obj), RB_TYPE_CELL_RENDERER_PIXBUF))
37 #define RB_IS_CELL_RENDERER_PIXBUF_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), RB_TYPE_CELL_RENDERER_PIXBUF))
38 #define RB_CELL_RENDERER_PIXBUF_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), RB_TYPE_CELL_RENDERER_PIXBUF, RBCellRendererPixbufClass))
40 typedef struct _RBCellRendererPixbuf RBCellRendererPixbuf;
41 typedef struct _RBCellRendererPixbufClass RBCellRendererPixbufClass;
43 struct _RBCellRendererPixbuf
45 GtkCellRenderer parent;
47 GdkPixbuf *pixbuf;
50 struct _RBCellRendererPixbufClass
52 GtkCellRendererClass parent_class;
54 void (*pixbuf_clicked) (RBCellRendererPixbuf *renderer, GtkTreePath *path);
57 GtkType rb_cell_renderer_pixbuf_get_type (void);
58 GtkCellRenderer *rb_cell_renderer_pixbuf_new (void);
60 #ifdef __cplusplus
62 #endif /* __cplusplus */
64 #endif /* __RB_CELL_RENDERER_PIXBUF_H__ */