hide VipsFormat and VipsWrap7 classes
This commit is contained in:
parent
1d74aaecc3
commit
30eff079f1
8
TODO
8
TODO
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
- mark VipsForeign and VipsWrap7 as deprecated, if they're not
|
|
||||||
|
|
||||||
don't display them in vips list classes
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- can we use postbuild elsewhere? look at use of "preclose" / "written", etc.
|
- can we use postbuild elsewhere? look at use of "preclose" / "written", etc.
|
||||||
|
|
||||||
|
|
||||||
|
@ -321,6 +321,10 @@ vips_format_class_init( VipsFormatClass *class )
|
|||||||
object_class->nickname = "format";
|
object_class->nickname = "format";
|
||||||
object_class->description = _( "VIPS file formats" );
|
object_class->description = _( "VIPS file formats" );
|
||||||
object_class->summary_class = vips_format_summary_class;
|
object_class->summary_class = vips_format_summary_class;
|
||||||
|
|
||||||
|
/* Hide from UI.
|
||||||
|
*/
|
||||||
|
object_class->deprecated = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -540,6 +540,13 @@ struct _VipsObjectClass {
|
|||||||
GSList *argument_table_traverse;
|
GSList *argument_table_traverse;
|
||||||
GType argument_table_traverse_gtype;
|
GType argument_table_traverse_gtype;
|
||||||
|
|
||||||
|
/* This class is deprecated and therefore hidden from various UI bits.
|
||||||
|
*
|
||||||
|
* VipsOperation has a deprecated flag, use that in preference to this
|
||||||
|
* if you can.
|
||||||
|
*/
|
||||||
|
gboolean deprecated;
|
||||||
|
|
||||||
/* Reserved for future expansion.
|
/* Reserved for future expansion.
|
||||||
*/
|
*/
|
||||||
void (*_vips_reserved1)( void );
|
void (*_vips_reserved1)( void );
|
||||||
|
@ -173,9 +173,18 @@ list_function( im_function *func )
|
|||||||
static void *
|
static void *
|
||||||
list_class( GType type )
|
list_class( GType type )
|
||||||
{
|
{
|
||||||
|
VipsObjectClass *class = VIPS_OBJECT_CLASS( g_type_class_ref( type ) );
|
||||||
int depth = vips_type_depth( type );
|
int depth = vips_type_depth( type );
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if( class->deprecated )
|
||||||
|
return( NULL );
|
||||||
|
if( VIPS_IS_OPERATION_CLASS( class ) &&
|
||||||
|
(VIPS_OPERATION_CLASS( class )->flags &
|
||||||
|
VIPS_OPERATION_DEPRECATED) )
|
||||||
|
return( NULL );
|
||||||
|
|
||||||
for( i = 0; i < depth * 2; i++ )
|
for( i = 0; i < depth * 2; i++ )
|
||||||
printf( " " );
|
printf( " " );
|
||||||
vips_object_print_summary_class(
|
vips_object_print_summary_class(
|
||||||
|
Loading…
Reference in New Issue
Block a user