changed the default colors for the first invocation to the current

2004-08-04  Simon Budig  <simon@gimp.org>

	* 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.
This commit is contained in:
Simon Budig 2004-08-04 18:53:04 +00:00 committed by Simon Budig
parent 50c962af54
commit 53c4d987bc
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2004-08-04 Simon Budig <simon@gimp.org>
* 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 <sven@gimp.org>
* themes/Default/images/Makefile.am

View File

@ -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);
}