libgimpwidgets: add GimpColorSelectorClass::icon_name

and deprecate its stock_id.
This commit is contained in:
Michael Natterer
2014-05-10 08:33:29 +02:00
parent 23ec10b2c6
commit 1ec64abb8b
10 changed files with 21 additions and 14 deletions

View File

@ -117,7 +117,7 @@ colorsel_cmyk_class_init (ColorselCmykClass *klass)
selector_class->name = _("CMYK");
selector_class->help_id = "gimp-colorselector-cmyk";
selector_class->stock_id = GTK_STOCK_PRINT; /* FIXME */
selector_class->icon_name = GTK_STOCK_PRINT; /* FIXME */
selector_class->set_color = colorsel_cmyk_set_color;
selector_class->set_config = colorsel_cmyk_set_config;
}

View File

@ -115,9 +115,9 @@ colorsel_water_class_init (ColorselWaterClass *klass)
{
GimpColorSelectorClass *selector_class = GIMP_COLOR_SELECTOR_CLASS (klass);
selector_class->name = _("Watercolor");
selector_class->help_id = "gimp-colorselector-watercolor";
selector_class->stock_id = GIMP_STOCK_TOOL_PAINTBRUSH;
selector_class->name = _("Watercolor");
selector_class->help_id = "gimp-colorselector-watercolor";
selector_class->icon_name = GIMP_STOCK_TOOL_PAINTBRUSH;
}
static void

View File

@ -101,7 +101,7 @@ colorsel_wheel_class_init (ColorselWheelClass *klass)
selector_class->name = _("Wheel");
selector_class->help_id = "gimp-colorselector-triangle";
selector_class->stock_id = GIMP_STOCK_COLOR_TRIANGLE;
selector_class->icon_name = GIMP_STOCK_COLOR_TRIANGLE;
selector_class->set_color = colorsel_wheel_set_color;
}