Commit 4bd54b32 authored by Ulrich Pegelow's avatar Ulrich Pegelow

blending: make use of new dtgtk_button_set_active() function

parent a16e23b0
......@@ -315,7 +315,7 @@ static void _blendop_masks_mode_callback(GtkWidget *combo, dt_iop_gui_blend_data
if(dt_iop_module_colorspace(data->module) == iop_cs_RAW)
{
data->module->request_mask_display = DT_DEV_PIXELPIPE_DISPLAY_NONE;
dtgtk_button_set_paint(DTGTK_BUTTON(data->showmask), dtgtk_cairo_paint_showmask, CPF_STYLE_FLAT | CPF_DO_NOT_USE_BORDER);
dtgtk_button_set_active(DTGTK_BUTTON(data->showmask), 0);
gtk_widget_hide(GTK_WIDGET(data->showmask));
}
else
......@@ -328,7 +328,7 @@ static void _blendop_masks_mode_callback(GtkWidget *combo, dt_iop_gui_blend_data
else
{
data->module->request_mask_display = DT_DEV_PIXELPIPE_DISPLAY_NONE;
dtgtk_button_set_paint(DTGTK_BUTTON(data->showmask), dtgtk_cairo_paint_showmask, CPF_STYLE_FLAT | CPF_DO_NOT_USE_BORDER);
dtgtk_button_set_active(DTGTK_BUTTON(data->showmask), 0);
data->module->suppress_mask = 0;
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(data->suppress), 0);
......@@ -558,9 +558,9 @@ static void _blendop_blendif_showmask_clicked(GtkWidget *button, GdkEventButton
module->request_mask_display |= (has_mask_display ? 0 : DT_DEV_PIXELPIPE_DISPLAY_MASK);
if(module->request_mask_display & (DT_DEV_PIXELPIPE_DISPLAY_MASK | DT_DEV_PIXELPIPE_DISPLAY_CHANNEL))
dtgtk_button_set_paint(DTGTK_BUTTON(button), dtgtk_cairo_paint_showmask, CPF_STYLE_FLAT | CPF_DO_NOT_USE_BORDER | CPF_ACTIVE);
dtgtk_button_set_active(DTGTK_BUTTON(button), 1);
else
dtgtk_button_set_paint(DTGTK_BUTTON(button), dtgtk_cairo_paint_showmask, CPF_STYLE_FLAT | CPF_DO_NOT_USE_BORDER);
dtgtk_button_set_active(DTGTK_BUTTON(button), 0);
if(module->off) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(module->off), 1);
......@@ -1592,7 +1592,7 @@ void dt_iop_gui_update_blending(dt_iop_module_t *module)
if(dt_iop_module_colorspace(module) == iop_cs_RAW)
{
module->request_mask_display = DT_DEV_PIXELPIPE_DISPLAY_NONE;
dtgtk_button_set_paint(DTGTK_BUTTON(bd->showmask), dtgtk_cairo_paint_showmask, CPF_STYLE_FLAT | CPF_DO_NOT_USE_BORDER);
dtgtk_button_set_active(DTGTK_BUTTON(bd->showmask), 0);
gtk_widget_hide(GTK_WIDGET(bd->showmask));
}
else
......@@ -1605,7 +1605,7 @@ void dt_iop_gui_update_blending(dt_iop_module_t *module)
else
{
module->request_mask_display = DT_DEV_PIXELPIPE_DISPLAY_NONE;
dtgtk_button_set_paint(DTGTK_BUTTON(bd->showmask), dtgtk_cairo_paint_showmask, CPF_STYLE_FLAT | CPF_DO_NOT_USE_BORDER);
dtgtk_button_set_active(DTGTK_BUTTON(bd->showmask), 0);
module->suppress_mask = 0;
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(bd->suppress), 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment