Exemplo n.º 1
0
static void
gimp_color_balance_config_reset (GimpConfig *config)
{
    GimpColorBalanceConfig *cb_config = GIMP_COLOR_BALANCE_CONFIG (config);
    GimpTransferMode        range;

    for (range = GIMP_TRANSFER_SHADOWS;
            range <= GIMP_TRANSFER_HIGHLIGHTS;
            range++)
    {
        cb_config->range = range;
        gimp_color_balance_config_reset_range (cb_config);
    }

    gimp_config_reset_property (G_OBJECT (config), "range");
    gimp_config_reset_property (G_OBJECT (config), "preserve-luminosity");
}
Exemplo n.º 2
0
static void
color_balance_range_reset_callback (GtkWidget            *widget,
                                    GimpColorBalanceTool *cb_tool)
{
  gimp_color_balance_config_reset_range (cb_tool->config);
}
Exemplo n.º 3
0
static void
color_balance_range_reset_callback (GtkWidget        *widget,
                                    GimpImageMapTool *im_tool)
{
  gimp_color_balance_config_reset_range (GIMP_COLOR_BALANCE_CONFIG (im_tool->config));
}