aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-group-leaf.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-03-21 00:22:30 +0800
committerChris Lahey <clahey@src.gnome.org>2001-03-21 00:22:30 +0800
commit451c410dec4efdef1562417066fd7b7464b14004 (patch)
tree8cc5fb50f634a2b806cc8c39c5104237af023283 /widgets/table/e-table-group-leaf.c
parent726712806ea9f61f69d8c4e42ac2dedf1d7afdf2 (diff)
downloadgsoc2013-evolution-451c410dec4efdef1562417066fd7b7464b14004.tar.gz
gsoc2013-evolution-451c410dec4efdef1562417066fd7b7464b14004.tar.zst
gsoc2013-evolution-451c410dec4efdef1562417066fd7b7464b14004.zip
Bumped the version number to 05.99.9.
2001-03-20 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 05.99.9. From gal/e-table/ChangeLog: 2001-03-20 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c: Turn on the vertical grid. * e-table-group-container.c, e-table-group-container.h, e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c, e-table-item.h: Replaced the "drawgrid" argument with "horizontal_draw_grid" and "vertical_draw_grid" arguments. * e-table-specification.c, e-table-specifcation: Replaced the draw_grid setting with the horizontal_draw_grid and vertical_draw_grid settings. If the draw-grid property is set in a ETableSpecification it is still obeyed and overrides the vertical-draw-grid and horizontal-draw-grid properties. * e-table.c, e-table.h, e-tree.c, e-tree.h: Deal with the horizontal_draw_grid and vertical_draw_grid changes. * e-tree-model.h: Added a missing include. svn path=/trunk/; revision=8846
Diffstat (limited to 'widgets/table/e-table-group-leaf.c')
-rw-r--r--widgets/table/e-table-group-leaf.c30
1 files changed, 22 insertions, 8 deletions
diff --git a/widgets/table/e-table-group-leaf.c b/widgets/table/e-table-group-leaf.c
index 35e7ef4f45..314d80e3de 100644
--- a/widgets/table/e-table-group-leaf.c
+++ b/widgets/table/e-table-group-leaf.c
@@ -29,7 +29,8 @@ enum {
ARG_WIDTH,
ARG_MINIMUM_WIDTH,
ARG_FROZEN,
- ARG_TABLE_DRAW_GRID,
+ ARG_TABLE_HORIZONTAL_DRAW_GRID,
+ ARG_TABLE_VERTICAL_DRAW_GRID,
ARG_TABLE_DRAW_FOCUS,
ARG_CURSOR_MODE,
ARG_LENGTH_THRESHOLD,
@@ -175,7 +176,8 @@ etgl_realize (GnomeCanvasItem *item)
e_table_item_get_type (),
"ETableHeader", E_TABLE_GROUP(etgl)->header,
"ETableModel", etgl->ets,
- "drawgrid", etgl->draw_grid,
+ "horizontal_draw_grid", etgl->horizontal_draw_grid,
+ "vertical_draw_grid", etgl->vertical_draw_grid,
"drawfocus", etgl->draw_focus,
"cursor_mode", etgl->cursor_mode,
"minimum_width", etgl->minimum_width,
@@ -335,11 +337,20 @@ etgl_set_arg (GtkObject *object, GtkArg *arg, guint arg_id)
NULL);
}
- case ARG_TABLE_DRAW_GRID:
- etgl->draw_grid = GTK_VALUE_BOOL (*arg);
+ case ARG_TABLE_HORIZONTAL_DRAW_GRID:
+ etgl->horizontal_draw_grid = GTK_VALUE_BOOL (*arg);
if (etgl->item) {
gnome_canvas_item_set (GNOME_CANVAS_ITEM(etgl->item),
- "drawgrid", GTK_VALUE_BOOL (*arg),
+ "horizontal_draw_grid", GTK_VALUE_BOOL (*arg),
+ NULL);
+ }
+ break;
+
+ case ARG_TABLE_VERTICAL_DRAW_GRID:
+ etgl->vertical_draw_grid = GTK_VALUE_BOOL (*arg);
+ if (etgl->item) {
+ gnome_canvas_item_set (GNOME_CANVAS_ITEM(etgl->item),
+ "vertical_draw_grid", GTK_VALUE_BOOL (*arg),
NULL);
}
break;
@@ -417,8 +428,10 @@ etgl_class_init (GtkObjectClass *object_class)
e_group_class->get_printable = etgl_get_printable;
e_group_class->compute_location = etgl_compute_location;
- gtk_object_add_arg_type ("ETableGroupLeaf::drawgrid", GTK_TYPE_BOOL,
- GTK_ARG_WRITABLE, ARG_TABLE_DRAW_GRID);
+ gtk_object_add_arg_type ("ETableGroupLeaf::horizontal_draw_grid", GTK_TYPE_BOOL,
+ GTK_ARG_WRITABLE, ARG_TABLE_HORIZONTAL_DRAW_GRID);
+ gtk_object_add_arg_type ("ETableGroupLeaf::vertical_draw_grid", GTK_TYPE_BOOL,
+ GTK_ARG_WRITABLE, ARG_TABLE_VERTICAL_DRAW_GRID);
gtk_object_add_arg_type ("ETableGroupLeaf::drawfocus", GTK_TYPE_BOOL,
GTK_ARG_WRITABLE, ARG_TABLE_DRAW_FOCUS);
gtk_object_add_arg_type ("ETableGroupLeaf::cursor_mode", GTK_TYPE_INT,
@@ -450,7 +463,8 @@ etgl_init (GtkObject *object)
etgl->ets = NULL;
etgl->item = NULL;
- etgl->draw_grid = 1;
+ etgl->horizontal_draw_grid = 1;
+ etgl->vertical_draw_grid = 1;
etgl->draw_focus = 1;
etgl->cursor_mode = E_CURSOR_SIMPLE;
etgl->length_threshold = -1;