Mercurial > geeqie.yaz
annotate src/cellrenderericon.h @ 1553:626adbb26387
fixed tests for vd_find_row return value
author | nadvornik |
---|---|
date | Fri, 17 Apr 2009 20:26:22 +0000 |
parents | c9949c19a6d0 |
children |
rev | line source |
---|---|
9 | 1 /* cellrenderericon.h, based on: |
2 * | |
3 * gtkcellrendererpixbuf.h | |
4 * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> | |
5 * | |
6 * This library is free software; you can redistribute it and/or | |
7 * modify it under the terms of the GNU Library General Public | |
8 * License as published by the Free Software Foundation; either | |
9 * version 2 of the License, or (at your option) any later version. | |
10 * | |
11 * This library is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 * Library General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU Library General Public | |
17 * License along with this library; if not, write to the | |
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 * Boston, MA 02111-1307, USA. | |
20 */ | |
21 | |
22 #ifndef __GQV_CELL_RENDERER_ICON_H__ | |
23 #define __GQV_CELL_RENDERER_ICON_H__ | |
24 | |
25 #include <gtk/gtkcellrenderer.h> | |
26 | |
27 #ifdef __cplusplus | |
28 extern "C" { | |
29 #endif /* __cplusplus */ | |
30 | |
31 | |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
32 #define GQV_TYPE_CELL_RENDERER_ICON (gqv_cell_renderer_icon_get_type()) |
9 | 33 #define GQV_CELL_RENDERER_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIcon)) |
34 #define GQV_CELL_RENDERER_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIconClass)) | |
35 #define GQV_IS_CELL_RENDERER_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GQV_TYPE_CELL_RENDERER_ICON)) | |
36 #define GQV_IS_CELL_RENDERER_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GQV_TYPE_CELL_RENDERER_ICON)) | |
37 #define GQV_CELL_RENDERER_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GQV_TYPE_CELL_RENDERER_ICON, GQvCellRendererIconClass)) | |
38 | |
39 typedef struct _GQvCellRendererIcon GQvCellRendererIcon; | |
40 typedef struct _GQvCellRendererIconClass GQvCellRendererIconClass; | |
41 | |
42 struct _GQvCellRendererIcon | |
43 { | |
44 GtkCellRenderer parent; | |
45 | |
46 /*< private >*/ | |
47 GdkPixbuf *pixbuf; | |
48 gchar *text; | |
49 PangoColor foreground; | |
50 PangoColor background; | |
51 gboolean focused; | |
52 | |
53 gint fixed_width; | |
54 gint fixed_height; | |
55 | |
56 gboolean foreground_set; | |
57 gboolean background_set; | |
58 | |
852 | 59 gint num_marks; |
60 | |
9 | 61 gboolean show_text; |
852 | 62 gboolean show_marks; |
63 | |
64 guint marks; | |
966 | 65 guint toggled_mark; |
852 | 66 |
9 | 67 }; |
68 | |
69 struct _GQvCellRendererIconClass | |
70 { | |
71 GtkCellRendererClass parent_class; | |
72 | |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
73 void (*toggled)(GQvCellRendererIcon *cell_renderer, const gchar *path); |
966 | 74 |
9 | 75 /* Padding for future expansion */ |
512
f9bf33be53ff
Remove whitespace between function name and first parenthesis for the sake of consistency.
zas_
parents:
9
diff
changeset
|
76 void (*_gtk_reserved1)(void); |
f9bf33be53ff
Remove whitespace between function name and first parenthesis for the sake of consistency.
zas_
parents:
9
diff
changeset
|
77 void (*_gtk_reserved2)(void); |
f9bf33be53ff
Remove whitespace between function name and first parenthesis for the sake of consistency.
zas_
parents:
9
diff
changeset
|
78 void (*_gtk_reserved3)(void); |
f9bf33be53ff
Remove whitespace between function name and first parenthesis for the sake of consistency.
zas_
parents:
9
diff
changeset
|
79 void (*_gtk_reserved4)(void); |
9 | 80 }; |
81 | |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
82 GType gqv_cell_renderer_icon_get_type(void); |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
83 GtkCellRenderer *gqv_cell_renderer_icon_new(void); |
9 | 84 |
85 #ifdef __cplusplus | |
86 } | |
87 #endif /* __cplusplus */ | |
88 | |
89 #endif /* __GQV_CELL_RENDERER_ICON_H__ */ | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
966
diff
changeset
|
90 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |