In the paint tools, when the current paint mode is invalid, i.e., when it requires an alpha channel, but the the current drawable has no alpha channel, or its alpha channel is locked, blink the paint- mode box widget in the tool options, in addition to showing an error message in the status bar, to hint at the source of the error.
28 lines
1.0 KiB
C
28 lines
1.0 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995-1999 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __GIMP_PAINT_OPTIONS_GUI_H__
|
|
#define __GIMP_PAINT_OPTIONS_GUI_H__
|
|
|
|
|
|
GtkWidget * gimp_paint_options_gui (GimpToolOptions *tool_options);
|
|
|
|
GtkWidget * gimp_paint_options_gui_get_paint_mode_box (GtkWidget *options_gui);
|
|
|
|
|
|
#endif /* __GIMP_PAINT_OPTIONS_GUI_H__ */
|