/** * gimp_color_selection_set_config: * @selection: * @config: * * Sets the color management configuration to use with this color selection. * * Since: GIMP 2.4 */ void gimp_color_selection_set_config (GimpColorSelection *selection, GimpColorConfig *config) { g_return_if_fail (GIMP_IS_COLOR_SELECTION (selection)); g_return_if_fail (config == NULL || GIMP_IS_COLOR_CONFIG (config)); gimp_color_selector_set_config (GIMP_COLOR_SELECTOR (selection->notebook), config); gimp_color_selector_set_config (GIMP_COLOR_SELECTOR (selection->scales), config); }
static void gimp_color_selector_dispose (GObject *object) { gimp_color_selector_set_config (GIMP_COLOR_SELECTOR (object), NULL); G_OBJECT_CLASS (parent_class)->dispose (object); }
static void gimp_color_notebook_set_config (GimpColorSelector *selector, GimpColorConfig *config) { GimpColorNotebook *notebook = GIMP_COLOR_NOTEBOOK (selector); GList *list; for (list = notebook->selectors; list; list = g_list_next (list)) { GimpColorSelector *child = list->data; gimp_color_selector_set_config (child, config); } }