2 * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
3 * Copyright (C) 2008 - 2016 The Geeqie Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include <gtk/gtk.h> /* To define GTK_CHECK_VERSION */
22 #include "cellrenderericon.h"
26 #define FIXED_ICON_SIZE_MAX 512
28 #define TOGGLE_WIDTH 13
29 #define TOGGLE_SPACING 18
32 static void gqv_cell_renderer_icon_get_property(GObject *object,
36 static void gqv_cell_renderer_icon_set_property(GObject *object,
40 static void gqv_cell_renderer_icon_init(GQvCellRendererIcon *celltext);
41 static void gqv_cell_renderer_icon_class_init(GQvCellRendererIconClass *class);
42 static void gqv_cell_renderer_icon_finalize(GObject *object);
43 #if GTK_CHECK_VERSION(3,0,0)
44 static void gqv_cell_renderer_icon_get_size(GtkCellRenderer *cell,
46 const GdkRectangle *rectangle,
52 static void gqv_cell_renderer_icon_get_size(GtkCellRenderer *cell,
54 GdkRectangle *rectangle,
60 #if GTK_CHECK_VERSION(3,0,0)
61 static void gqv_cell_renderer_icon_render(GtkCellRenderer *cell,
64 const GdkRectangle *background_area,
65 const GdkRectangle *cell_area,
66 GtkCellRendererState flags);
68 static void gqv_cell_renderer_icon_render(GtkCellRenderer *cell,
71 GdkRectangle *background_area,
72 GdkRectangle *cell_area,
73 GdkRectangle *expose_area,
74 GtkCellRendererState flags);
78 #if GTK_CHECK_VERSION(3,0,0)
79 static gboolean gqv_cell_renderer_icon_activate(GtkCellRenderer *cell,
83 const GdkRectangle *background_area,
84 const GdkRectangle *cell_area,
85 GtkCellRendererState flags);
87 static gboolean gqv_cell_renderer_icon_activate(GtkCellRenderer *cell,
91 GdkRectangle *background_area,
92 GdkRectangle *cell_area,
93 GtkCellRendererState flags);
120 static guint toggle_cell_signals[LAST_SIGNAL] = { 0 };
122 static gpointer parent_class;
125 gqv_cell_renderer_icon_get_type(void)
127 static GType cell_icon_type = 0;
131 static const GTypeInfo cell_icon_info =
133 sizeof(GQvCellRendererIconClass), /* class_size */
134 NULL, /* base_init */
135 NULL, /* base_finalize */
136 (GClassInitFunc) gqv_cell_renderer_icon_class_init, /* class_init */
137 NULL, /* class_finalize */
138 NULL, /* class_data */
139 sizeof(GQvCellRendererIcon), /* instance_size */
141 (GInstanceInitFunc) gqv_cell_renderer_icon_init, /* instance_init */
142 NULL, /* value_table */
145 cell_icon_type = g_type_register_static(GTK_TYPE_CELL_RENDERER,
146 "GQvCellRendererIcon",
150 return cell_icon_type;
154 gqv_cell_renderer_icon_init(GQvCellRendererIcon *cellicon)
156 g_object_set(G_OBJECT(cellicon), "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL);
157 gtk_cell_renderer_set_padding(GTK_CELL_RENDERER(cellicon), 2, 2);
161 gqv_cell_renderer_icon_class_init(GQvCellRendererIconClass *class)
163 GObjectClass *object_class = G_OBJECT_CLASS(class);
164 GtkCellRendererClass *cell_class = GTK_CELL_RENDERER_CLASS(class);
166 parent_class = g_type_class_peek_parent(class);
168 object_class->finalize = gqv_cell_renderer_icon_finalize;
170 object_class->get_property = gqv_cell_renderer_icon_get_property;
171 object_class->set_property = gqv_cell_renderer_icon_set_property;
173 cell_class->get_size = gqv_cell_renderer_icon_get_size;
174 cell_class->render = gqv_cell_renderer_icon_render;
175 cell_class->activate = gqv_cell_renderer_icon_activate;
177 g_object_class_install_property(object_class,
179 g_param_spec_object("pixbuf",
181 "The pixbuf to render",
185 g_object_class_install_property(object_class,
187 g_param_spec_string("text",
193 g_object_class_install_property(object_class,
195 g_param_spec_boxed("background_gdk",
197 "Background color as a GdkColor",
201 g_object_class_install_property(object_class,
203 g_param_spec_boxed("foreground_gdk",
205 "Foreground color as a GdkColor",
209 g_object_class_install_property(object_class,
211 g_param_spec_boolean("has_focus",
213 "Draw focus indicator",
217 g_object_class_install_property(object_class,
219 g_param_spec_int("fixed_width",
222 -1, FIXED_ICON_SIZE_MAX,
226 g_object_class_install_property(object_class,
228 g_param_spec_int("fixed_height",
230 "Height of icon excluding text",
231 -1, FIXED_ICON_SIZE_MAX,
235 g_object_class_install_property(object_class,
237 g_param_spec_boolean("background_set",
239 "Whether this tag affects the background color",
243 g_object_class_install_property(object_class,
245 g_param_spec_boolean("foreground_set",
247 "Whether this tag affects the foreground color",
251 g_object_class_install_property(object_class,
253 g_param_spec_boolean("show_text",
255 "Whether the text is displayed",
259 g_object_class_install_property(object_class,
261 g_param_spec_boolean("show_marks",
263 "Whether the marks are displayed",
267 g_object_class_install_property(object_class,
269 g_param_spec_int("num_marks",
276 g_object_class_install_property(object_class,
278 g_param_spec_uint("marks",
285 g_object_class_install_property(object_class,
287 g_param_spec_uint("toggled_mark",
293 toggle_cell_signals[TOGGLED] =
294 g_signal_new("toggled",
295 G_OBJECT_CLASS_TYPE (object_class),
297 G_STRUCT_OFFSET (GQvCellRendererIconClass, toggled),
299 g_cclosure_marshal_VOID__STRING,
306 gqv_cell_renderer_icon_finalize(GObject *object)
308 GQvCellRendererIcon *cellicon = GQV_CELL_RENDERER_ICON(object);
310 if (cellicon->pixbuf) g_object_unref(cellicon->pixbuf);
312 g_free(cellicon->text);
314 (*(G_OBJECT_CLASS(parent_class))->finalize)(object);
318 gqv_cell_renderer_icon_get_property(GObject *object,
323 GQvCellRendererIcon *cellicon = GQV_CELL_RENDERER_ICON(object);
328 g_value_set_object(value, cellicon->pixbuf ? G_OBJECT(cellicon->pixbuf) : NULL);
331 g_value_set_string(value, cellicon->text);
333 case PROP_BACKGROUND_GDK:
337 color.red = cellicon->background.red;
338 color.green = cellicon->background.green;
339 color.blue = cellicon->background.blue;
341 g_value_set_boxed(value, &color);
344 case PROP_FOREGROUND_GDK:
348 color.red = cellicon->foreground.red;
349 color.green = cellicon->foreground.green;
350 color.blue = cellicon->foreground.blue;
352 g_value_set_boxed(value, &color);
356 g_value_set_boolean(value, cellicon->focused);
358 case PROP_FIXED_WIDTH:
359 g_value_set_int(value, cellicon->fixed_width);
361 case PROP_FIXED_HEIGHT:
362 g_value_set_int(value, cellicon->fixed_height);
364 case PROP_BACKGROUND_SET:
365 g_value_set_boolean(value, cellicon->background_set);
367 case PROP_FOREGROUND_SET:
368 g_value_set_boolean(value, cellicon->foreground_set);
371 g_value_set_boolean(value, cellicon->show_text);
373 case PROP_SHOW_MARKS:
374 g_value_set_boolean(value, cellicon->show_marks);
377 g_value_set_int(value, cellicon->num_marks);
380 g_value_set_uint(value, cellicon->marks);
383 g_value_set_uint(value, cellicon->toggled_mark);
386 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, param_id, pspec);
392 set_bg_color(GQvCellRendererIcon *cellicon,
397 if (!cellicon->background_set)
399 cellicon->background_set = TRUE;
400 g_object_notify(G_OBJECT(cellicon), "background_set");
403 cellicon->background.red = color->red;
404 cellicon->background.green = color->green;
405 cellicon->background.blue = color->blue;
409 if (cellicon->background_set)
411 cellicon->background_set = FALSE;
412 g_object_notify(G_OBJECT(cellicon), "background_set");
417 static void set_fg_color(GQvCellRendererIcon *cellicon,
422 if (!cellicon->foreground_set)
424 cellicon->foreground_set = TRUE;
425 g_object_notify(G_OBJECT(cellicon), "foreground_set");
428 cellicon->foreground.red = color->red;
429 cellicon->foreground.green = color->green;
430 cellicon->foreground.blue = color->blue;
434 if (cellicon->foreground_set)
436 cellicon->foreground_set = FALSE;
437 g_object_notify(G_OBJECT(cellicon), "foreground_set");
443 gqv_cell_renderer_icon_set_property(GObject *object,
448 GQvCellRendererIcon *cellicon = GQV_CELL_RENDERER_ICON(object);
456 pixbuf = (GdkPixbuf *) g_value_get_object(value);
457 if (pixbuf) g_object_ref(pixbuf);
458 if (cellicon->pixbuf) g_object_unref(cellicon->pixbuf);
459 cellicon->pixbuf = pixbuf;
466 text = cellicon->text;
467 cellicon->text = g_strdup(g_value_get_string(value));
470 g_object_notify(object, "text");
473 case PROP_BACKGROUND_GDK:
474 set_bg_color(cellicon, g_value_get_boxed(value));
476 case PROP_FOREGROUND_GDK:
477 set_fg_color(cellicon, g_value_get_boxed(value));
480 cellicon->focused = g_value_get_boolean(value);
482 case PROP_FIXED_WIDTH:
483 cellicon->fixed_width = g_value_get_int(value);
485 case PROP_FIXED_HEIGHT:
486 cellicon->fixed_height = g_value_get_int(value);
488 case PROP_BACKGROUND_SET:
489 cellicon->background_set = g_value_get_boolean(value);
491 case PROP_FOREGROUND_SET:
492 cellicon->foreground_set = g_value_get_boolean(value);
495 cellicon->show_text = g_value_get_boolean(value);
497 case PROP_SHOW_MARKS:
498 cellicon->show_marks = g_value_get_boolean(value);
501 cellicon->num_marks = g_value_get_int(value);
504 cellicon->marks = g_value_get_uint(value);
507 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, param_id, pspec);
513 gqv_cell_renderer_icon_get_layout(GQvCellRendererIcon *cellicon, GtkWidget *widget, gboolean will_render)
518 width = (cellicon->fixed_width > 0) ? cellicon->fixed_width * PANGO_SCALE : -1;
520 layout = gtk_widget_create_pango_layout(widget, cellicon->text);
521 pango_layout_set_width(layout, width);
522 pango_layout_set_alignment(layout, PANGO_ALIGN_CENTER);
523 pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR);
527 PangoAttrList *attr_list;
529 attr_list = pango_attr_list_new();
531 if (cellicon->foreground_set)
534 PangoAttribute *attr;
536 color = cellicon->foreground;
538 attr = pango_attr_foreground_new(color.red, color.green, color.blue);
540 attr->start_index = 0;
541 attr->end_index = G_MAXINT;
542 pango_attr_list_insert(attr_list, attr);
545 pango_layout_set_attributes(layout, attr_list);
546 pango_attr_list_unref(attr_list);
553 * gqv_cell_renderer_icon_new:
555 * Creates a new #GQvCellRendererIcon. Adjust rendering
556 * parameters using object properties. Object properties can be set
557 * globally (with g_object_set()). Also, with #GtkTreeViewColumn, you
558 * can bind a property to a value in a #GtkTreeModel. For example, you
559 * can bind the "pixbuf" property on the cell renderer to a pixbuf value
560 * in the model, thus rendering a different image in each row of the
563 * Return value: the new cell renderer
566 gqv_cell_renderer_icon_new(void)
568 return g_object_new(GQV_TYPE_CELL_RENDERER_ICON, NULL);
571 #if GTK_CHECK_VERSION(3,0,0)
572 static void gqv_cell_renderer_icon_get_size(GtkCellRenderer *cell,
574 const GdkRectangle *cell_area,
580 static void gqv_cell_renderer_icon_get_size(GtkCellRenderer *cell,
582 GdkRectangle *cell_area,
589 GQvCellRendererIcon *cellicon = (GQvCellRendererIcon *) cell;
593 gfloat xalign, yalign;
595 gtk_cell_renderer_get_padding(cell, &xpad, &ypad);
596 gtk_cell_renderer_get_alignment(cell, &xalign, &yalign);
598 if (cellicon->fixed_width > 0)
600 calc_width = cellicon->fixed_width;
604 calc_width = (cellicon->pixbuf) ? gdk_pixbuf_get_width(cellicon->pixbuf) : 0;
607 if (cellicon->fixed_height > 0)
609 calc_height = cellicon->fixed_height;
613 calc_height = (cellicon->pixbuf) ? gdk_pixbuf_get_height(cellicon->pixbuf) : 0;
616 if (cellicon->show_text && cellicon->text)
621 layout = gqv_cell_renderer_icon_get_layout(cellicon, widget, FALSE);
622 pango_layout_get_pixel_extents(layout, NULL, &rect);
623 g_object_unref(layout);
625 calc_width = MAX(calc_width, rect.width);
626 calc_height += rect.height;
629 if (cellicon->show_marks)
631 calc_height += TOGGLE_SPACING;
632 calc_width = MAX(calc_width, TOGGLE_SPACING * cellicon->num_marks);
635 calc_width += xpad * 2;
636 calc_height += ypad * 2;
638 if (x_offset) *x_offset = 0;
639 if (y_offset) *y_offset = 0;
641 if (cell_area && calc_width > 0 && calc_height > 0)
645 *x_offset = (xalign * (cell_area->width - calc_width - 2 * xpad));
646 *x_offset = MAX(*x_offset, 0) + xpad;
650 *y_offset = (yalign * (cell_area->height - calc_height - 2 * ypad));
651 *y_offset = MAX(*y_offset, 0) + ypad;
655 if (width) *width = calc_width;
656 if (height) *height = calc_height;
659 #if GTK_CHECK_VERSION(3,0,0)
660 static void gqv_cell_renderer_icon_render(GtkCellRenderer *cell,
663 const GdkRectangle *background_area,
664 const GdkRectangle *cell_area,
665 GtkCellRendererState flags)
668 GtkStyleContext *context = gtk_widget_get_style_context(widget);
671 gqv_cell_renderer_icon_render(GtkCellRenderer *cell,
674 GdkRectangle *background_area,
675 GdkRectangle *cell_area,
676 GdkRectangle *expose_area,
677 GtkCellRendererState flags)
680 cairo_t *cr = gdk_cairo_create(window);
682 GQvCellRendererIcon *cellicon = (GQvCellRendererIcon *) cell;
685 GdkRectangle cell_rect;
690 pixbuf = cellicon->pixbuf;
691 text = cellicon->text;
693 if (!pixbuf && !text)
695 #if !GTK_CHECK_VERSION(3,0,0)
701 gtk_cell_renderer_get_padding(cell, &xpad, &ypad);
703 gqv_cell_renderer_icon_get_size(cell, widget, cell_area,
704 &cell_rect.x, &cell_rect.y,
705 &cell_rect.width, &cell_rect.height);
709 cell_rect.width -= xpad * 2;
710 cell_rect.height -= ypad * 2;
712 if ((flags & GTK_CELL_RENDERER_SELECTED) == GTK_CELL_RENDERER_SELECTED)
714 if (gtk_widget_has_focus(widget))
715 state = GTK_STATE_SELECTED;
717 state = GTK_STATE_ACTIVE;
721 if (gtk_widget_get_state(widget) == GTK_STATE_INSENSITIVE)
722 state = GTK_STATE_INSENSITIVE;
724 state = GTK_STATE_NORMAL;
727 #if GTK_CHECK_VERSION(3,0,0)
728 gtk_style_context_set_state(context, state);
733 GdkRectangle pix_rect;
734 GdkRectangle draw_rect;
736 pix_rect.width = gdk_pixbuf_get_width(pixbuf);
737 pix_rect.height = gdk_pixbuf_get_height(pixbuf);
739 pix_rect.x = cell_area->x + (cell_area->width - pix_rect.width) / 2;
741 if (cellicon->fixed_height > 0)
743 pix_rect.y = cell_area->y + ypad + (cellicon->fixed_height - pix_rect.height) / 2;
747 pix_rect.y = cell_area->y + cell_rect.y;
750 if (gdk_rectangle_intersect(cell_area, &pix_rect, &draw_rect)
751 #if !GTK_CHECK_VERSION(3,0,0)
752 && gdk_rectangle_intersect(expose_area, &draw_rect, &draw_rect)
756 gdk_cairo_set_source_pixbuf(cr, pixbuf, pix_rect.x, pix_rect.y);
767 if (cellicon->show_text && text)
770 PangoRectangle text_rect;
771 GdkRectangle pix_rect;
772 GdkRectangle draw_rect;
773 layout = gqv_cell_renderer_icon_get_layout(cellicon, widget, TRUE);
774 pango_layout_get_pixel_extents(layout, NULL, &text_rect);
776 pix_rect.width = text_rect.width;
777 pix_rect.height = text_rect.height;
778 pix_rect.x = cell_area->x + xpad + (cell_rect.width - text_rect.width + 1) / 2;
779 pix_rect.y = cell_area->y + ypad + (cell_rect.height - text_rect.height);
781 if (cellicon->show_marks)
783 pix_rect.y -= TOGGLE_SPACING;
786 if (gdk_rectangle_intersect(cell_area, &pix_rect, &draw_rect)
787 #if !GTK_CHECK_VERSION(3,0,0)
788 && gdk_rectangle_intersect(expose_area, &draw_rect, &draw_rect)
792 #if GTK_CHECK_VERSION(3,0,0)
793 gtk_render_layout(context, cr, pix_rect.x - text_rect.x, pix_rect.y, layout);
796 gtk_paint_layout(gtk_widget_get_style(widget), window,
800 pix_rect.x - text_rect.x, pix_rect.y,
804 g_object_unref(layout);
807 if (cellicon->show_marks)
809 GdkRectangle pix_rect;
810 GdkRectangle draw_rect;
813 pix_rect.width = TOGGLE_SPACING * cellicon->num_marks;
814 pix_rect.height = TOGGLE_SPACING;
815 pix_rect.x = cell_area->x + xpad + (cell_rect.width - pix_rect.width + 1) / 2 + (TOGGLE_SPACING - TOGGLE_WIDTH) / 2;
816 pix_rect.y = cell_area->y + ypad + (cell_rect.height - pix_rect.height) + (TOGGLE_SPACING - TOGGLE_WIDTH) / 2;
818 if (gdk_rectangle_intersect(cell_area, &pix_rect, &draw_rect)
819 #if !GTK_CHECK_VERSION(3,0,0)
820 && gdk_rectangle_intersect(expose_area, &draw_rect, &draw_rect)
824 for (i = 0; i < cellicon->num_marks; i++)
826 #if GTK_CHECK_VERSION(3,0,0)
827 #if GTK_CHECK_VERSION(3,14,0)
828 state &= ~(GTK_STATE_FLAG_CHECKED);
830 if ((cellicon->marks & (1 << i)))
831 state |= GTK_STATE_FLAG_CHECKED;
833 state &= ~(GTK_STATE_FLAG_ACTIVE);
835 if ((cellicon->marks & (1 << i)))
836 state |= GTK_STATE_FLAG_ACTIVE;
841 pix_rect.x + i * TOGGLE_SPACING + (TOGGLE_WIDTH - TOGGLE_SPACING) / 2,
843 TOGGLE_WIDTH, TOGGLE_WIDTH);
846 gtk_style_context_save(context);
847 gtk_style_context_set_state(context, state);
849 gtk_style_context_add_class(context, GTK_STYLE_CLASS_CHECK);
851 gtk_style_context_add_class(context, "marks");
852 GtkStyleProvider *provider;
853 provider = (GtkStyleProvider *)gtk_css_provider_new();
854 gtk_css_provider_load_from_data(GTK_CSS_PROVIDER(provider),
856 "border-color: #808080;\n"
857 "border-style: solid;\n"
858 "border-width: 1px;\n"
859 "border-radius: 0px;\n"
862 gtk_style_context_add_provider(context, provider,
863 GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
865 gtk_render_check(context, cr,
866 pix_rect.x + i * TOGGLE_SPACING + (TOGGLE_WIDTH - TOGGLE_SPACING) / 2,
868 TOGGLE_WIDTH, TOGGLE_WIDTH);
869 gtk_render_frame(context, cr,
870 pix_rect.x + i * TOGGLE_SPACING + (TOGGLE_WIDTH - TOGGLE_SPACING) / 2,
872 TOGGLE_WIDTH, TOGGLE_WIDTH);
874 if (cellicon->focused && gtk_widget_has_focus(widget))
876 gtk_render_focus(context, cr,
877 pix_rect.x + i * TOGGLE_SPACING + (TOGGLE_WIDTH - TOGGLE_SPACING) / 2,
878 pix_rect.y, TOGGLE_WIDTH, TOGGLE_WIDTH);
880 gtk_style_context_restore(context);
884 gtk_paint_check(gtk_widget_get_style(widget), window,
885 state, (cellicon->marks & (1 << i)) ? GTK_SHADOW_IN : GTK_SHADOW_OUT,
886 cell_area, widget, "cellcheck",
887 pix_rect.x + i * TOGGLE_SPACING + (TOGGLE_WIDTH - TOGGLE_SPACING) / 2,
889 TOGGLE_WIDTH, TOGGLE_WIDTH);
895 #if !GTK_CHECK_VERSION(3,0,0)
896 if (cellicon->focused && gtk_widget_has_focus(widget))
898 gtk_paint_focus(gtk_widget_get_style(widget), window,
902 cell_area->x, cell_area->y,
903 cell_area->width, cell_area->height);
909 #if GTK_CHECK_VERSION(3,0,0)
910 static gboolean gqv_cell_renderer_icon_activate(GtkCellRenderer *cell,
914 const GdkRectangle *background_area,
915 const GdkRectangle *cell_area,
916 GtkCellRendererState flags)
918 static gboolean gqv_cell_renderer_icon_activate(GtkCellRenderer *cell,
922 GdkRectangle *background_area,
923 GdkRectangle *cell_area,
924 GtkCellRendererState flags)
927 GQvCellRendererIcon *cellicon = (GQvCellRendererIcon *) cell;
928 GdkEventButton *bevent = &event->button;
930 if (cellicon->show_marks &&
931 event->type == GDK_BUTTON_PRESS &&
932 !(bevent->state & GDK_SHIFT_MASK ) &&
933 !(bevent->state & GDK_CONTROL_MASK ))
936 GdkRectangle cell_rect;
940 gtk_cell_renderer_get_padding(cell, &xpad, &ypad);
942 gqv_cell_renderer_icon_get_size(cell, widget, cell_area,
943 &cell_rect.x, &cell_rect.y,
944 &cell_rect.width, &cell_rect.height);
948 cell_rect.width -= xpad * 2;
949 cell_rect.height -= ypad * 2;
951 rect.width = TOGGLE_WIDTH;
952 rect.height = TOGGLE_WIDTH;
953 rect.y = cell_area->y + ypad + (cell_rect.height - TOGGLE_SPACING) + (TOGGLE_SPACING - TOGGLE_WIDTH) / 2;
954 for (i = 0; i < cellicon->num_marks; i++)
956 rect.x = cell_area->x + xpad + (cell_rect.width - TOGGLE_SPACING * cellicon->num_marks + 1) / 2 + i * TOGGLE_SPACING;
958 if (bevent->x >= rect.x && bevent->x < rect.x + rect.width &&
959 bevent->y >= rect.y && bevent->y < rect.y + rect.height)
961 cellicon->toggled_mark = i;
962 g_signal_emit(cell, toggle_cell_signals[TOGGLED], 0, path);
969 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */