@@ -916,47 +916,6 @@ plug_in_noisify_invoker (GimpProcedure *procedure,
916
916
error ? * error : NULL );
917
917
}
918
918
919
- static GimpValueArray *
920
- plug_in_threshold_alpha_invoker (GimpProcedure * procedure ,
921
- Gimp * gimp ,
922
- GimpContext * context ,
923
- GimpProgress * progress ,
924
- const GimpValueArray * args ,
925
- GError * * error )
926
- {
927
- gboolean success = TRUE;
928
- GimpDrawable * drawable ;
929
- gint threshold ;
930
-
931
- drawable = g_value_get_object (gimp_value_array_index (args , 2 ));
932
- threshold = g_value_get_int (gimp_value_array_index (args , 3 ));
933
-
934
- if (success )
935
- {
936
- if (gimp_pdb_item_is_attached (GIMP_ITEM (drawable ), NULL ,
937
- GIMP_PDB_ITEM_CONTENT , error ) &&
938
- gimp_pdb_item_is_not_group (GIMP_ITEM (drawable ), error ) &&
939
- gimp_drawable_has_alpha (drawable ))
940
- {
941
- GeglNode * node =
942
- gegl_node_new_child (NULL ,
943
- "operation" , "gimp:threshold-alpha" ,
944
- "value" , threshold / 255.0 ,
945
- NULL );
946
-
947
- gimp_drawable_apply_operation (drawable , progress ,
948
- C_ ("undo-type" , "Threshold Alpha" ),
949
- node );
950
- g_object_unref (node );
951
- }
952
- else
953
- success = FALSE;
954
- }
955
-
956
- return gimp_procedure_get_return_values (procedure , success ,
957
- error ? * error : NULL );
958
- }
959
-
960
919
static GimpValueArray *
961
920
plug_in_waves_invoker (GimpProcedure * procedure ,
962
921
Gimp * gimp ,
@@ -1553,48 +1512,6 @@ register_plug_in_compat_procs (GimpPDB *pdb)
1553
1512
gimp_pdb_register_procedure (pdb , procedure );
1554
1513
g_object_unref (procedure );
1555
1514
1556
- /*
1557
- * gimp-plug-in-threshold-alpha
1558
- */
1559
- procedure = gimp_procedure_new (plug_in_threshold_alpha_invoker );
1560
- gimp_object_set_static_name (GIMP_OBJECT (procedure ),
1561
- "plug-in-threshold-alpha" );
1562
- gimp_procedure_set_static_help (procedure ,
1563
- "Make transparency all-or-nothing" ,
1564
- "Make transparency all-or-nothing." ,
1565
- NULL );
1566
- gimp_procedure_set_static_attribution (procedure ,
1567
- "Spencer Kimball & Peter Mattis" ,
1568
- "Spencer Kimball & Peter Mattis" ,
1569
- "1997" );
1570
- gimp_procedure_add_argument (procedure ,
1571
- g_param_spec_enum ("run-mode" ,
1572
- "run mode" ,
1573
- "The run mode" ,
1574
- GIMP_TYPE_RUN_MODE ,
1575
- GIMP_RUN_INTERACTIVE ,
1576
- GIMP_PARAM_READWRITE ));
1577
- gimp_procedure_add_argument (procedure ,
1578
- gimp_param_spec_image ("image" ,
1579
- "image" ,
1580
- "Input image (unused)" ,
1581
- FALSE,
1582
- GIMP_PARAM_READWRITE ));
1583
- gimp_procedure_add_argument (procedure ,
1584
- gimp_param_spec_drawable ("drawable" ,
1585
- "drawable" ,
1586
- "Input drawable" ,
1587
- FALSE,
1588
- GIMP_PARAM_READWRITE ));
1589
- gimp_procedure_add_argument (procedure ,
1590
- g_param_spec_int ("threshold" ,
1591
- "threshold" ,
1592
- "Threshold" ,
1593
- 0 , 255 , 0 ,
1594
- GIMP_PARAM_READWRITE ));
1595
- gimp_pdb_register_procedure (pdb , procedure );
1596
- g_object_unref (procedure );
1597
-
1598
1515
/*
1599
1516
* gimp-plug-in-waves
1600
1517
*/
0 commit comments