mirror of https://github.com/GNOME/gimp.git
app: apply constraining to opacity scales as well.
In paint options as well in layer list. I also updated an opacity spin scale in GimpBrushSelect core widget, but this one doesn't look like it is used anywhere anymore.
This commit is contained in:
parent
3c7fc5527f
commit
f7c94a8a8c
|
@ -130,6 +130,7 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
|
|||
/* the opacity scale */
|
||||
scale = gimp_prop_spin_scale_new (config, "opacity", NULL,
|
||||
0.01, 0.1, 0);
|
||||
gimp_spin_scale_set_constrain_drag (GIMP_SPIN_SCALE (scale), TRUE);
|
||||
gimp_prop_widget_set_factor (scale, 100.0, 0.0, 0.0, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
|
||||
gtk_widget_show (scale);
|
||||
|
|
|
@ -173,6 +173,7 @@ gimp_brush_select_constructed (GObject *object)
|
|||
|
||||
scale = gimp_spin_scale_new (select->opacity_data,
|
||||
_("Opacity"), 1);
|
||||
gimp_spin_scale_set_constrain_drag (GIMP_SPIN_SCALE (scale), TRUE);
|
||||
gtk_box_pack_end (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
|
||||
gtk_widget_show (scale);
|
||||
|
||||
|
|
|
@ -284,6 +284,7 @@ gimp_layer_tree_view_init (GimpLayerTreeView *view)
|
|||
view->priv->opacity_adjustment = gtk_adjustment_new (100.0, 0.0, 100.0,
|
||||
1.0, 10.0, 0.0);
|
||||
scale = gimp_spin_scale_new (view->priv->opacity_adjustment, _("Opacity"), 1);
|
||||
gimp_spin_scale_set_constrain_drag (GIMP_SPIN_SCALE (scale), TRUE);
|
||||
gimp_help_set_help_data (scale, NULL,
|
||||
GIMP_HELP_LAYER_DIALOG_OPACITY_SCALE);
|
||||
gimp_item_tree_view_add_options (GIMP_ITEM_TREE_VIEW (view),
|
||||
|
|
Loading…
Reference in New Issue