mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00

While there are cases when you want to edit the mask straight away (this is often the case when starting with a white or black mask), in many other cases, the mask may be already as you want it per its initialization (e.g. when initializing with a channel, selection, the alpha channel, etc.). Until now, the Add Mask dialog was always switching to the "Edit Layer Mask" mode by default, which forced an additional unneeded click each time you created a mask (and were in a case where you initialize the mask as you want it directly). Now adding "Edit mask immediately" feature in the "Add Layer Mask dialog": * It's checked by default to keep historical behavior. * As most other dialogs, the last value is remembered, allowing people with repetitive workflow not to have to repeatedly set the settings each and every time. * This default is also visible and settable in Preferences > Interface > Dialog Defaults.
41 lines
1.8 KiB
C
41 lines
1.8 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 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 __LAYER_ADD_MASK_DIALOG_H__
|
|
#define __LAYER_ADD_MASK_DIALOG_H__
|
|
|
|
|
|
typedef void (* GimpAddMaskCallback) (GtkWidget *dialog,
|
|
GList *layers,
|
|
GimpAddMaskType add_mask_type,
|
|
GimpChannel *channel,
|
|
gboolean invert,
|
|
gboolean edit_mask,
|
|
gpointer user_data);
|
|
|
|
|
|
GtkWidget * layer_add_mask_dialog_new (GList *layers,
|
|
GimpContext *context,
|
|
GtkWidget *parent,
|
|
GimpAddMaskType add_mask_type,
|
|
gboolean invert,
|
|
gboolean edit_mask,
|
|
GimpAddMaskCallback callback,
|
|
gpointer user_data);
|
|
|
|
|
|
#endif /* __LAYER_ADD_MASK_DIALOG_H__ */
|