From 53c4d987bc005106b5430f5758a3c9dddff245a0 Mon Sep 17 00:00:00 2001 From: Simon Budig Date: Wed, 4 Aug 2004 18:53:04 +0000 Subject: [PATCH] changed the default colors for the first invocation to the current 2004-08-04 Simon Budig * plug-ins/common/grid.c: changed the default colors for the first invocation to the current foregroud color which is more likely to be useful than the blue shades. --- ChangeLog | 6 ++++++ plug-ins/common/grid.c | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8d92fe871c..47e8555ad0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-04 Simon Budig + + * plug-ins/common/grid.c: changed the default colors for the + first invocation to the current foregroud color which is more + likely to be useful than the blue shades. + 2004-08-04 Sven Neumann * themes/Default/images/Makefile.am diff --git a/plug-ins/common/grid.c b/plug-ins/common/grid.c index 4b9386deaf..9d2f53151f 100644 --- a/plug-ins/common/grid.c +++ b/plug-ins/common/grid.c @@ -106,9 +106,9 @@ typedef struct Config grid_cfg = { - 1, 16, 8, { 0.0, 0.0, 0.5, 1.0 }, /* horizontal */ - 1, 16, 8, { 0.0, 0.0, 0.5, 1.0 }, /* vertical */ - 0, 2, 6, { 0.0, 0.0, 1.0, 1.0 }, /* intersection */ + 1, 16, 8, { 0.0, 0.0, 0.0, 1.0 }, /* horizontal */ + 1, 16, 8, { 0.0, 0.0, 0.0, 1.0 }, /* vertical */ + 0, 2, 6, { 0.0, 0.0, 0.0, 1.0 }, /* intersection */ }; @@ -218,6 +218,9 @@ run (const gchar *name, } else { + gimp_palette_get_foreground (&grid_cfg.hcolor); + grid_cfg.vcolor = grid_cfg.icolor = grid_cfg.hcolor; + /* Possibly retrieve data */ gimp_get_data ("plug_in_grid", &grid_cfg); }