modules: forgot to port this one to GSEAL_ENABLE

This commit is contained in:
Michael Natterer 2010-02-09 22:42:20 +01:00
parent 8afdbd8053
commit fe97de2a68
1 changed files with 8 additions and 5 deletions

View File

@ -218,25 +218,28 @@ colorsel_cmyk_adj_update (GtkAdjustment *adj,
ColorselCmyk *module) ColorselCmyk *module)
{ {
GimpColorSelector *selector = GIMP_COLOR_SELECTOR (module); GimpColorSelector *selector = GIMP_COLOR_SELECTOR (module);
gdouble value;
gint i; gint i;
for (i = 0; i < 4; i++) for (i = 0; i < 4; i++)
if (module->adj[i] == adj) if (module->adj[i] == adj)
break; break;
value = gtk_adjustment_get_value (adj);
switch (i) switch (i)
{ {
case 0: case 0:
module->cmyk.c = adj->value / 100.0; module->cmyk.c = value / 100.0;
break; break;
case 1: case 1:
module->cmyk.m = adj->value / 100.0; module->cmyk.m = value / 100.0;
break; break;
case 2: case 2:
module->cmyk.y = adj->value / 100.0; module->cmyk.y = value / 100.0;
break; break;
case 3: case 3:
module->cmyk.k = adj->value / 100.0; module->cmyk.k = value / 100.0;
break; break;
default: default:
return; return;
@ -254,7 +257,7 @@ colorsel_cmyk_pullout_update (GtkAdjustment *adj,
{ {
GimpColorSelector *selector = GIMP_COLOR_SELECTOR (module); GimpColorSelector *selector = GIMP_COLOR_SELECTOR (module);
module->pullout = adj->value / 100.0; module->pullout = gtk_adjustment_get_value (adj) / 100.0;
gimp_color_selector_set_color (selector, &selector->rgb, &selector->hsv); gimp_color_selector_set_color (selector, &selector->rgb, &selector->hsv);
} }