# Gimp.brushes_set_popup

    function brushes_set_popup(brush_callback: String, brush_name: String, opacity: Number(gdouble), spacing: Number(gint), paint_mode: Gimp.LayerMode): Boolean {
        // Gjs wrapper for gimp_brushes_set_popup()
    }

Sets the current brush in a brush selection dialog.

Sets the current brush in a brush selection dialog.

brush_callback

  The name of the callback registered for this pop-up.

brush_name

  The name of the brush to set as selected.

opacity

  The initial opacity of the brush.

spacing

  The initial spacing of the brush (if < 0 then use brush default spacing).

paint_mode

  The initial paint mode.

Returns

  TRUE on success.