@@ -612,66 +612,6 @@ plug_in_bump_map_invoker (GimpProcedure *procedure,
612
612
error ? * error : NULL );
613
613
}
614
614
615
- static GimpValueArray *
616
- plug_in_cubism_invoker (GimpProcedure * procedure ,
617
- Gimp * gimp ,
618
- GimpContext * context ,
619
- GimpProgress * progress ,
620
- const GimpValueArray * args ,
621
- GError * * error )
622
- {
623
- gboolean success = TRUE;
624
- GimpDrawable * drawable ;
625
- gdouble tile_size ;
626
- gdouble tile_saturation ;
627
- gint bg_color ;
628
-
629
- drawable = g_value_get_object (gimp_value_array_index (args , 2 ));
630
- tile_size = g_value_get_double (gimp_value_array_index (args , 3 ));
631
- tile_saturation = g_value_get_double (gimp_value_array_index (args , 4 ));
632
- bg_color = g_value_get_int (gimp_value_array_index (args , 5 ));
633
-
634
- if (success )
635
- {
636
- if (gimp_pdb_item_is_attached (GIMP_ITEM (drawable ), NULL ,
637
- GIMP_PDB_ITEM_CONTENT , error ) &&
638
- gimp_pdb_item_is_not_group (GIMP_ITEM (drawable ), error ))
639
- {
640
- GeglColor * color ;
641
- GeglNode * node ;
642
-
643
- if (bg_color )
644
- {
645
- color = gegl_color_duplicate (gimp_context_get_background (context ));
646
- gimp_color_set_alpha (color , 0.0 );
647
- }
648
- else
649
- {
650
- color = gegl_color_new ("black" );
651
- gegl_color_set_rgba_with_space (color , 0.0 , 0.0 , 0.0 , 0.0 , NULL );
652
- }
653
-
654
- node = gegl_node_new_child (NULL ,
655
- "operation" , "gegl:cubism" ,
656
- "tile-size" , tile_size ,
657
- "tile-saturation" , tile_saturation ,
658
- "bg-color" , color ,
659
- NULL );
660
- g_object_unref (color );
661
-
662
- gimp_drawable_apply_operation (drawable , progress ,
663
- C_ ("undo-type" , "Cubism" ),
664
- node );
665
- g_object_unref (node );
666
- }
667
- else
668
- success = FALSE;
669
- }
670
-
671
- return gimp_procedure_get_return_values (procedure , success ,
672
- error ? * error : NULL );
673
- }
674
-
675
615
static GimpValueArray *
676
616
plug_in_displace_invoker (GimpProcedure * procedure ,
677
617
Gimp * gimp ,
@@ -1535,60 +1475,6 @@ register_plug_in_compat_procs (GimpPDB *pdb)
1535
1475
gimp_pdb_register_procedure (pdb , procedure );
1536
1476
g_object_unref (procedure );
1537
1477
1538
- /*
1539
- * gimp-plug-in-cubism
1540
- */
1541
- procedure = gimp_procedure_new (plug_in_cubism_invoker );
1542
- gimp_object_set_static_name (GIMP_OBJECT (procedure ),
1543
- "plug-in-cubism" );
1544
- gimp_procedure_set_static_help (procedure ,
1545
- "Convert the image into randomly rotated square blobs" ,
1546
- "Convert the image into randomly rotated square blobs." ,
1547
- NULL );
1548
- gimp_procedure_set_static_attribution (procedure ,
1549
- "Compatibility procedure. Please see 'gegl:cubism' for credits." ,
1550
- "Compatibility procedure. Please see 'gegl:cubism' for credits." ,
1551
- "2013" );
1552
- gimp_procedure_add_argument (procedure ,
1553
- g_param_spec_enum ("run-mode" ,
1554
- "run mode" ,
1555
- "The run mode" ,
1556
- GIMP_TYPE_RUN_MODE ,
1557
- GIMP_RUN_INTERACTIVE ,
1558
- GIMP_PARAM_READWRITE ));
1559
- gimp_procedure_add_argument (procedure ,
1560
- gimp_param_spec_image ("image" ,
1561
- "image" ,
1562
- "Input image (unused)" ,
1563
- FALSE,
1564
- GIMP_PARAM_READWRITE ));
1565
- gimp_procedure_add_argument (procedure ,
1566
- gimp_param_spec_drawable ("drawable" ,
1567
- "drawable" ,
1568
- "Input drawable" ,
1569
- FALSE,
1570
- GIMP_PARAM_READWRITE ));
1571
- gimp_procedure_add_argument (procedure ,
1572
- g_param_spec_double ("tile-size" ,
1573
- "tile size" ,
1574
- "Average diameter of each tile (in pixels)" ,
1575
- 0.0 , 100.0 , 0.0 ,
1576
- GIMP_PARAM_READWRITE ));
1577
- gimp_procedure_add_argument (procedure ,
1578
- g_param_spec_double ("tile-saturation" ,
1579
- "tile saturation" ,
1580
- "Expand tiles by this amount" ,
1581
- 0.0 , 10.0 , 0.0 ,
1582
- GIMP_PARAM_READWRITE ));
1583
- gimp_procedure_add_argument (procedure ,
1584
- g_param_spec_int ("bg-color" ,
1585
- "bg color" ,
1586
- "Background color { BLACK (0), BG (1) }" ,
1587
- 0 , 1 , 0 ,
1588
- GIMP_PARAM_READWRITE ));
1589
- gimp_pdb_register_procedure (pdb , procedure );
1590
- g_object_unref (procedure );
1591
-
1592
1478
/*
1593
1479
* gimp-plug-in-displace
1594
1480
*/
0 commit comments