summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 094b93e)
raw | patch | inline | side by side (parent: 094b93e)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 17 Apr 2007 18:03:58 +0000 (18:03 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Tue, 17 Apr 2007 18:03:58 +0000 (18:03 +0000) |
src/display/canvas-grid.cpp | patch | blob | history |
index 7db2d4020dfd46642ee1557c680e1426df08d358..25700b2a600682f3427288b3883301a90322dff6 100644 (file)
namespace Inkscape {
+#define DEFAULTGRIDCOLOR 0x0000FF20
+#define DEFAULTGRIDEMPCOLOR 0x0000FF40
+
+
static void grid_canvasitem_class_init (GridCanvasItemClass *klass);
static void grid_canvasitem_init (GridCanvasItem *grid);
static void grid_canvasitem_destroy (GtkObject *object);
: CanvasGrid(nv, in_repr), table(1, 1)
{
origin[NR::X] = origin[NR::Y] = 0.0;
-// nv->gridcolor = (nv->gridcolor & 0xff) | (DEFAULTGRIDCOLOR & 0xffffff00);
-// case SP_ATTR_GRIDOPACITY:
-// nv->gridcolor = (nv->gridcolor & 0xffffff00) | (DEFAULTGRIDCOLOR & 0xff);
- color = 0xff3f3f20;
- empcolor = 0xFF3F3F40;
+ color = DEFAULTGRIDCOLOR;
+ empcolor = DEFAULTGRIDEMPCOLOR;
empspacing = 5;
spacing[NR::X] = spacing[NR::Y] = 8.0;
gridunit = &sp_unit_get_by_id(SP_UNIT_PX);
_wr.setUpdating (true);
-// _rrb_gridtype.setValue (nv->gridtype);
_rumg.setUnit (gridunit);
gdouble val;