Commit 4f7168f6 authored by Pierre Wieser's avatar Pierre Wieser

Validate core/

parent dfe8df52
...@@ -3,6 +3,6 @@ src/core ...@@ -3,6 +3,6 @@ src/core
This is the core dynamic library for FileManager-Actions. This is the core dynamic library for FileManager-Actions.
Come here which is not in the API and should yet be shared between several Come here which is not in the API and should yet be shared between several
N-A components. FileManager-Actions components.
P. Wieser, last updated on sept. 2015 P. Wieser, last updated on sept. 2015
...@@ -65,6 +65,7 @@ fma_about_display( GtkWindow *toplevel ) ...@@ -65,6 +65,7 @@ fma_about_display( GtkWindow *toplevel )
}; };
static const gchar *documenters[] = { static const gchar *documenters[] = {
"Pierre Wieser <pwieser@trychlos.org>",
NULL NULL
}; };
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
/* @title NAAbout /* @title NAAbout
* @short_description: The #NAAbout API * @short_description: The #NAAbout API
* @include: runtime/fma-about.h * @include: core/fma-about.h
* *
* These functions displays the 'About FileManager-Actions' dialog box, * These functions displays the 'About FileManager-Actions' dialog box,
* and provides contant informations about the application. * and provides contant informations about the application.
......
...@@ -62,7 +62,7 @@ typedef struct { ...@@ -62,7 +62,7 @@ typedef struct {
*/ */
struct _FMADataBoxedPrivate { struct _FMADataBoxedPrivate {
gboolean dispose_has_run; gboolean dispose_has_run;
const FMADataDef *data_def ; const FMADataDef *data_def ;
const DataBoxedDef *boxed_def; const DataBoxedDef *boxed_def;
}; };
......
...@@ -43,11 +43,11 @@ struct _FMAExportFormatClassPrivate { ...@@ -43,11 +43,11 @@ struct _FMAExportFormatClassPrivate {
/* private instance data /* private instance data
*/ */
struct _FMAExportFormatPrivate { struct _FMAExportFormatPrivate {
gboolean dispose_has_run; gboolean dispose_has_run;
gchar *format; gchar *format;
gchar *label; gchar *label;
gchar *description; gchar *description;
GdkPixbuf *pixbuf; GdkPixbuf *pixbuf;
FMAIExporter *provider; FMAIExporter *provider;
}; };
......
...@@ -48,7 +48,6 @@ typedef struct { ...@@ -48,7 +48,6 @@ typedef struct {
NAExporterFormatStr; NAExporterFormatStr;
static NAExporterFormatStr st_format_ask = { static NAExporterFormatStr st_format_ask = {
EXPORTER_FORMAT_ASK, EXPORTER_FORMAT_ASK,
N_( "_Ask me" ), N_( "_Ask me" ),
N_( "You will be asked for the format to choose each time an item " \ N_( "You will be asked for the format to choose each time an item " \
......
...@@ -59,8 +59,8 @@ enum { ...@@ -59,8 +59,8 @@ enum {
typedef struct { typedef struct {
FMAIFactoryObject *object; FMAIFactoryObject *object;
FMAIFactoryProvider *reader; FMAIFactoryProvider *reader;
void *reader_data; void *reader_data;
GSList **messages; GSList **messages;
} }
NafoReadIter; NafoReadIter;
...@@ -68,16 +68,16 @@ typedef struct { ...@@ -68,16 +68,16 @@ typedef struct {
*/ */
typedef struct { typedef struct {
FMAIFactoryProvider *writer; FMAIFactoryProvider *writer;
void *writer_data; void *writer_data;
GSList **messages; GSList **messages;
guint code; guint code;
} }
NafoWriteIter; NafoWriteIter;
/* while iterating on is_valid /* while iterating on is_valid
*/ */
typedef struct { typedef struct {
FMAIFactoryObject *object; FMAIFactoryObject *object;
gboolean is_valid; gboolean is_valid;
} }
NafoValidIter; NafoValidIter;
...@@ -92,24 +92,24 @@ typedef struct { ...@@ -92,24 +92,24 @@ typedef struct {
extern gboolean ifactory_object_initialized; extern gboolean ifactory_object_initialized;
extern gboolean ifactory_object_finalized; extern gboolean ifactory_object_finalized;
static gboolean define_class_properties_iter( const FMADataDef *def, GObjectClass *class ); static gboolean define_class_properties_iter( const FMADataDef *def, GObjectClass *class );
static gboolean set_defaults_iter( FMADataDef *def, NafoDefaultIter *data ); static gboolean set_defaults_iter( FMADataDef *def, NafoDefaultIter *data );
static gboolean is_valid_mandatory_iter( const FMADataDef *def, NafoValidIter *data ); static gboolean is_valid_mandatory_iter( const FMADataDef *def, NafoValidIter *data );
static gboolean read_data_iter( FMADataDef *def, NafoReadIter *iter ); static gboolean read_data_iter( FMADataDef *def, NafoReadIter *iter );
static gboolean write_data_iter( const FMAIFactoryObject *object, FMADataBoxed *boxed, NafoWriteIter *iter ); static gboolean write_data_iter( const FMAIFactoryObject *object, FMADataBoxed *boxed, NafoWriteIter *iter );
static FMADataGroup *v_get_groups( const FMAIFactoryObject *object ); static FMADataGroup *v_get_groups( const FMAIFactoryObject *object );
static void v_copy( FMAIFactoryObject *target, const FMAIFactoryObject *source ); static void v_copy( FMAIFactoryObject *target, const FMAIFactoryObject *source );
static gboolean v_are_equal( const FMAIFactoryObject *a, const FMAIFactoryObject *b ); static gboolean v_are_equal( const FMAIFactoryObject *a, const FMAIFactoryObject *b );
static gboolean v_is_valid( const FMAIFactoryObject *object ); static gboolean v_is_valid( const FMAIFactoryObject *object );
static void v_read_start( FMAIFactoryObject *serializable, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages ); static void v_read_start( FMAIFactoryObject *serializable, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages );
static void v_read_done( FMAIFactoryObject *serializable, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages ); static void v_read_done( FMAIFactoryObject *serializable, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages );
static guint v_write_start( FMAIFactoryObject *serializable, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages ); static guint v_write_start( FMAIFactoryObject *serializable, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages );
static guint v_write_done( FMAIFactoryObject *serializable, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages ); static guint v_write_done( FMAIFactoryObject *serializable, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages );
static void attach_boxed_to_object( FMAIFactoryObject *object, FMADataBoxed *boxed ); static void attach_boxed_to_object( FMAIFactoryObject *object, FMADataBoxed *boxed );
static void free_data_boxed_list( FMAIFactoryObject *object ); static void free_data_boxed_list( FMAIFactoryObject *object );
static void iter_on_data_defs( const FMADataGroup *idgroups, guint mode, FMADataDefIterFunc pfn, void *user_data ); static void iter_on_data_defs( const FMADataGroup *idgroups, guint mode, FMADataDefIterFunc pfn, void *user_data );
/* /*
* fma_factory_object_define_properties: * fma_factory_object_define_properties:
......
...@@ -43,8 +43,8 @@ struct _FMAIDuplicableInterfacePrivate { ...@@ -43,8 +43,8 @@ struct _FMAIDuplicableInterfacePrivate {
*/ */
typedef struct { typedef struct {
FMAIDuplicable *origin; FMAIDuplicable *origin;
gboolean modified; gboolean modified;
gboolean valid; gboolean valid;
} }
DuplicableStr; DuplicableStr;
...@@ -59,8 +59,8 @@ enum { ...@@ -59,8 +59,8 @@ enum {
}; };
static FMAIDuplicableInterface *st_interface = NULL; static FMAIDuplicableInterface *st_interface = NULL;
static guint st_initializations = 0; static guint st_initializations = 0;
static gint st_signals[ LAST_SIGNAL ] = { 0 }; static gint st_signals[ LAST_SIGNAL ] = { 0 };
static GType register_type( void ); static GType register_type( void );
static void interface_base_init( FMAIDuplicableInterface *klass ); static void interface_base_init( FMAIDuplicableInterface *klass );
......
...@@ -90,11 +90,11 @@ static FMAImportModeStr st_import_ask_mode = { ...@@ -90,11 +90,11 @@ static FMAImportModeStr st_import_ask_mode = {
}; };
static FMAImporterResult *import_from_uri( const FMAPivot *pivot, GList *modules, const gchar *uri ); static FMAImporterResult *import_from_uri( const FMAPivot *pivot, GList *modules, const gchar *uri );
static void manage_import_mode( FMAImporterParms *parms, GList *results, FMAImporterAskUserParms *ask_parms, FMAImporterResult *result ); static void manage_import_mode( FMAImporterParms *parms, GList *results, FMAImporterAskUserParms *ask_parms, FMAImporterResult *result );
static FMAObjectItem *is_importing_already_exists( FMAImporterParms *parms, GList *results, FMAImporterResult *result ); static FMAObjectItem *is_importing_already_exists( FMAImporterParms *parms, GList *results, FMAImporterResult *result );
static void renumber_label_item( FMAObjectItem *item ); static void renumber_label_item( FMAObjectItem *item );
static guint ask_user_for_mode( const FMAObjectItem *importing, const FMAObjectItem *existing, FMAImporterAskUserParms *parms ); static guint ask_user_for_mode( const FMAObjectItem *importing, const FMAObjectItem *existing, FMAImporterAskUserParms *parms );
static guint get_id_from_string( const gchar *str ); static guint get_id_from_string( const gchar *str );
static FMAIOption *get_mode_from_struct( const FMAImportModeStr *str ); static FMAIOption *get_mode_from_struct( const FMAImportModeStr *str );
/* i18n: '%s' stands for the file URI */ /* i18n: '%s' stands for the file URI */
......
...@@ -50,12 +50,12 @@ struct _FMAIOProviderClassPrivate { ...@@ -50,12 +50,12 @@ struct _FMAIOProviderClassPrivate {
/* private instance data /* private instance data
*/ */
struct _FMAIOProviderPrivate { struct _FMAIOProviderPrivate {
gboolean dispose_has_run; gboolean dispose_has_run;
gchar *id; gchar *id;
FMAIIOProvider *provider; FMAIIOProvider *provider;
gulong item_changed_handler; gulong item_changed_handler;
gboolean writable; gboolean writable;
guint reason; guint reason;
}; };
/* FMAIOProvider properties /* FMAIOProvider properties
...@@ -66,40 +66,40 @@ enum { ...@@ -66,40 +66,40 @@ enum {
#define IO_PROVIDER_PROP_ID "fma-io-provider-prop-id" #define IO_PROVIDER_PROP_ID "fma-io-provider-prop-id"
static const gchar *st_enter_bug = N_( "Please, be kind enough to fill out a bug report on " static const gchar *st_enter_bug = N_( "Please, be kind enough to fill out a bug report on "
"https://bugzilla.gnome.org/enter_bug.cgi?product=filemanager-actions." ); "https://bugzilla.gnome.org/enter_bug.cgi?product=filemanager-actions." );
static GObjectClass *st_parent_class = NULL; static GObjectClass *st_parent_class = NULL;
static GList *st_io_providers = NULL; static GList *st_io_providers = NULL;
static GType register_type( void ); static GType register_type( void );
static void class_init( FMAIOProviderClass *klass ); static void class_init( FMAIOProviderClass *klass );
static void instance_init( GTypeInstance *instance, gpointer klass ); static void instance_init( GTypeInstance *instance, gpointer klass );
static void instance_constructed( GObject *object ); static void instance_constructed( GObject *object );
static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec ); static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec );
static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec ); static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec );
static void instance_dispose( GObject *object ); static void instance_dispose( GObject *object );
static void instance_finalize( GObject *object ); static void instance_finalize( GObject *object );
#if 0 #if 0
static void dump( const FMAIOProvider *provider ); static void dump( const FMAIOProvider *provider );
static void dump_providers_list( GList *providers ); static void dump_providers_list( GList *providers );
#endif #endif
static FMAIOProvider *io_provider_new( const FMAPivot *pivot, FMAIIOProvider *module, const gchar *id ); static FMAIOProvider *io_provider_new( const FMAPivot *pivot, FMAIIOProvider *module, const gchar *id );
static GList *io_providers_list_add_from_plugins( const FMAPivot *pivot, GList *list ); static GList *io_providers_list_add_from_plugins( const FMAPivot *pivot, GList *list );
static GList *io_providers_list_add_from_prefs( const FMAPivot *pivot, GList *objects_list ); static GList *io_providers_list_add_from_prefs( const FMAPivot *pivot, GList *objects_list );
static GSList *io_providers_get_from_prefs( void ); static GSList *io_providers_get_from_prefs( void );
static GList *io_providers_list_add_from_write_order( const FMAPivot *pivot, GList *objects_list ); static GList *io_providers_list_add_from_write_order( const FMAPivot *pivot, GList *objects_list );
static GList *io_providers_list_append_object( const FMAPivot *pivot, GList *list, FMAIIOProvider *module, const gchar *id ); static GList *io_providers_list_append_object( const FMAPivot *pivot, GList *list, FMAIIOProvider *module, const gchar *id );
static void io_providers_list_set_module( const FMAPivot *pivot, FMAIOProvider *provider_object, FMAIIOProvider *provider_module ); static void io_providers_list_set_module( const FMAPivot *pivot, FMAIOProvider *provider_object, FMAIIOProvider *provider_module );
static gboolean is_conf_writable( const FMAIOProvider *provider, const FMAPivot *pivot, gboolean *mandatory ); static gboolean is_conf_writable( const FMAIOProvider *provider, const FMAPivot *pivot, gboolean *mandatory );
static gboolean is_finally_writable( const FMAIOProvider *provider, const FMAPivot *pivot, guint *reason ); static gboolean is_finally_writable( const FMAIOProvider *provider, const FMAPivot *pivot, guint *reason );
static GList *load_items_filter_unwanted_items( const FMAPivot *pivot, GList *merged, guint loadable_set ); static GList *load_items_filter_unwanted_items( const FMAPivot *pivot, GList *merged, guint loadable_set );
static GList *load_items_filter_unwanted_items_rec( GList *merged, guint loadable_set ); static GList *load_items_filter_unwanted_items_rec( GList *merged, guint loadable_set );
static GList *load_items_get_merged_list( const FMAPivot *pivot, guint loadable_set, GSList **messages ); static GList *load_items_get_merged_list( const FMAPivot *pivot, guint loadable_set, GSList **messages );
static GList *load_items_hierarchy_build( GList **tree, GSList *level_zero, gboolean list_if_empty, FMAObjectItem *parent ); static GList *load_items_hierarchy_build( GList **tree, GSList *level_zero, gboolean list_if_empty, FMAObjectItem *parent );
static GList *load_items_hierarchy_sort( const FMAPivot *pivot, GList *tree, GCompareFunc fn ); static GList *load_items_hierarchy_sort( const FMAPivot *pivot, GList *tree, GCompareFunc fn );
static gint peek_item_by_id_compare( const FMAObject *obj, const gchar *id ); static gint peek_item_by_id_compare( const FMAObject *obj, const gchar *id );
static FMAIOProvider *peek_provider_by_id( const GList *providers, const gchar *id ); static FMAIOProvider *peek_provider_by_id( const GList *providers, const gchar *id );
GType GType
......
...@@ -79,7 +79,7 @@ static void ioptions_list_free_options( const FMAIOptionsList *instance, ...@@ -79,7 +79,7 @@ static void ioptions_list_free_options( const FMAIOptionsList *instance,
static void ioptions_list_free_ask_option( const FMAIOptionsList *instance, GtkWidget *container_parent, FMAIOption *option ); static void ioptions_list_free_ask_option( const FMAIOptionsList *instance, GtkWidget *container_parent, FMAIOption *option );
static GList *options_list_get_options( const FMAIOptionsList *instance, GtkWidget *container_parent ); static GList *options_list_get_options( const FMAIOptionsList *instance, GtkWidget *container_parent );
static void options_list_free_options( const FMAIOptionsList *instance, GtkWidget *container_parent, GList *options ); static void options_list_free_options( const FMAIOptionsList *instance, GtkWidget *container_parent, GList *options );
static FMAIOption *options_list_get_ask_option( const FMAIOptionsList *instance, GtkWidget *container_parent ); static FMAIOption *options_list_get_ask_option( const FMAIOptionsList *instance, GtkWidget *container_parent );
static void options_list_free_ask_option( const FMAIOptionsList *instance, GtkWidget *container_parent, FMAIOption *ask_option ); static void options_list_free_ask_option( const FMAIOptionsList *instance, GtkWidget *container_parent, FMAIOption *ask_option );
static gboolean get_options_list_container_initialized( GtkWidget *container_parent ); static gboolean get_options_list_container_initialized( GtkWidget *container_parent );
static void set_options_list_container_initialized( GtkWidget *container_parent, gboolean initialized ); static void set_options_list_container_initialized( GtkWidget *container_parent, gboolean initialized );
...@@ -89,7 +89,7 @@ static GtkWidget *get_options_list_first_button( GtkWidget *container ); ...@@ -89,7 +89,7 @@ static GtkWidget *get_options_list_first_button( GtkWidget *container );
static void set_options_list_first_button( GtkWidget *container, GtkWidget *button ); static void set_options_list_first_button( GtkWidget *container, GtkWidget *button );
static gboolean get_options_list_instance_initialized( const FMAIOptionsList *instance ); static gboolean get_options_list_instance_initialized( const FMAIOptionsList *instance );
static void set_options_list_instance_initialized( const FMAIOptionsList *instance, gboolean initialized ); static void set_options_list_instance_initialized( const FMAIOptionsList *instance, gboolean initialized );
static FMAIOption *get_options_list_option( GtkWidget *container ); static FMAIOption *get_options_list_option( GtkWidget *container );
static void set_options_list_option( GtkWidget *container, FMAIOption *option ); static void set_options_list_option( GtkWidget *container, FMAIOption *option );
static const gchar *get_options_list_option_id( GtkWidget *container ); static const gchar *get_options_list_option_id( GtkWidget *container );
static void set_options_list_option_id( GtkWidget *container, const gchar *id ); static void set_options_list_option_id( GtkWidget *container, const gchar *id );
......
...@@ -62,21 +62,21 @@ struct _FMAModulePrivate { ...@@ -62,21 +62,21 @@ struct _FMAModulePrivate {
static GTypeModuleClass *st_parent_class = NULL; static GTypeModuleClass *st_parent_class = NULL;
static GType register_type( void ); static GType register_type( void );
static void class_init( FMAModuleClass *klass ); static void class_init( FMAModuleClass *klass );
static void instance_init( GTypeInstance *instance, gpointer klass ); static void instance_init( GTypeInstance *instance, gpointer klass );
static void instance_dispose( GObject *object ); static void instance_dispose( GObject *object );
static void instance_finalize( GObject *object ); static void instance_finalize( GObject *object );
static FMAModule *module_new( const gchar *filename ); static FMAModule *module_new( const gchar *filename );
static gboolean on_module_load( GTypeModule *gmodule ); static gboolean on_module_load( GTypeModule *gmodule );
static gboolean is_a_na_plugin( FMAModule *module ); static gboolean is_a_na_plugin( FMAModule *module );
static gboolean plugin_check( FMAModule *module, const gchar *symbol, gpointer *pfn ); static gboolean plugin_check( FMAModule *module, const gchar *symbol, gpointer *pfn );
static void register_module_types( FMAModule *module ); static void register_module_types( FMAModule *module );
static void add_module_type( FMAModule *module, GType type ); static void add_module_type( FMAModule *module, GType type );
static void object_weak_notify( FMAModule *module, GObject *object ); static void object_weak_notify( FMAModule *module, GObject *object );
static void on_module_unload( GTypeModule *gmodule ); static void on_module_unload( GTypeModule *gmodule );
GType GType
fma_module_get_type( void ) fma_module_get_type( void )
......
...@@ -63,35 +63,35 @@ extern FMADataDef data_def_action_v1 []; /* defined in fma-object-action-fact ...@@ -63,35 +63,35 @@ extern FMADataDef data_def_action_v1 []; /* defined in fma-object-action-fact
static FMAObjectItemClass *st_parent_class = NULL; static FMAObjectItemClass *st_parent_class = NULL;
static GType register_type( void ); static GType register_type( void );
static void class_init( FMAObjectActionClass *klass ); static void class_init( FMAObjectActionClass *klass );
static void instance_init( GTypeInstance *instance, gpointer klass ); static void instance_init( GTypeInstance *instance, gpointer klass );
static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec ); static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec );
static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec ); static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec );
static void instance_dispose( GObject *object ); static void instance_dispose( GObject *object );
static void instance_finalize( GObject *object ); static void instance_finalize( GObject *object );
static void object_dump( const FMAObject *object ); static void object_dump( const FMAObject *object );
static gboolean object_are_equal( const FMAObject *a, const FMAObject *b ); static gboolean object_are_equal( const FMAObject *a, const FMAObject *b );
static gboolean object_is_valid( const FMAObject *object ); static gboolean object_is_valid( const FMAObject *object );
static void ifactory_object_iface_init( FMAIFactoryObjectInterface *iface, void *user_data ); static void ifactory_object_iface_init( FMAIFactoryObjectInterface *iface, void *user_data );
static guint ifactory_object_get_version( const FMAIFactoryObject *instance ); static guint ifactory_object_get_version( const FMAIFactoryObject *instance );
static FMADataGroup *ifactory_object_get_groups( const FMAIFactoryObject *instance ); static FMADataGroup *ifactory_object_get_groups( const FMAIFactoryObject *instance );
static void ifactory_object_read_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages ); static void ifactory_object_read_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages );
static guint ifactory_object_write_start( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages ); static guint ifactory_object_write_start( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages );
static guint ifactory_object_write_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages ); static guint ifactory_object_write_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages );
static void icontext_iface_init( FMAIContextInterface *iface, void *user_data ); static void icontext_iface_init( FMAIContextInterface *iface, void *user_data );
static gboolean icontext_is_candidate( FMAIContext *object, guint target, GList *selection ); static gboolean icontext_is_candidate( FMAIContext *object, guint target, GList *selection );
static FMAObjectProfile *read_done_convert_v1_to_v2( FMAIFactoryObject *instance ); static FMAObjectProfile *read_done_convert_v1_to_v2( FMAIFactoryObject *instance );
static void read_done_deals_with_toolbar_label( FMAIFactoryObject *instance ); static void read_done_deals_with_toolbar_label( FMAIFactoryObject *instance );
static guint write_done_write_profiles( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages ); static guint write_done_write_profiles( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages );
static gboolean is_valid_label( const FMAObjectAction *action ); static gboolean is_valid_label( const FMAObjectAction *action );
static gboolean is_valid_toolbar_label( const FMAObjectAction *action ); static gboolean is_valid_toolbar_label( const FMAObjectAction *action );
GType GType
fma_object_action_get_type( void ) fma_object_action_get_type( void )
......
...@@ -60,25 +60,25 @@ extern FMADataGroup menu_data_groups []; /* defined in na-item-menu-factory.c ...@@ -60,25 +60,25 @@ extern FMADataGroup menu_data_groups []; /* defined in na-item-menu-factory.c
static FMAObjectItemClass *st_parent_class = NULL; static FMAObjectItemClass *st_parent_class = NULL;
static GType register_type( void ); static GType register_type( void );
static void class_init( FMAObjectMenuClass *klass ); static void class_init( FMAObjectMenuClass *klass );
static void instance_init( GTypeInstance *instance, gpointer klass ); static void instance_init( GTypeInstance *instance, gpointer klass );
static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec ); static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec );
static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec ); static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec );
static void instance_dispose( GObject *object ); static void instance_dispose( GObject *object );
static void instance_finalize( GObject *object ); static void instance_finalize( GObject *object );
static void object_dump( const FMAObject *object ); static void object_dump( const FMAObject *object );
static void ifactory_object_iface_init( FMAIFactoryObjectInterface *iface, void *user_data ); static void ifactory_object_iface_init( FMAIFactoryObjectInterface *iface, void *user_data );
static guint ifactory_object_get_version( const FMAIFactoryObject *instance ); static guint ifactory_object_get_version( const FMAIFactoryObject *instance );
static FMADataGroup *ifactory_object_get_groups( const FMAIFactoryObject *instance ); static FMADataGroup *ifactory_object_get_groups( const FMAIFactoryObject *instance );
static void ifactory_object_read_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages ); static void ifactory_object_read_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages );
static guint ifactory_object_write_start( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages ); static guint ifactory_object_write_start( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages );
static guint ifactory_object_write_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages ); static guint ifactory_object_write_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages );
static void icontext_iface_init( FMAIContextInterface *iface, void *user_data ); static void icontext_iface_init( FMAIContextInterface *iface, void *user_data );
static gboolean icontext_is_candidate( FMAIContext *object, guint target, GList *selection ); static gboolean icontext_is_candidate( FMAIContext *object, guint target, GList *selection );
GType GType
fma_object_menu_get_type( void ) fma_object_menu_get_type( void )
......
...@@ -68,35 +68,35 @@ extern FMADataGroup profile_data_groups []; /* defined in na-item-profile-factor ...@@ -68,35 +68,35 @@ extern FMADataGroup profile_data_groups []; /* defined in na-item-profile-factor
static FMAObjectIdClass *st_parent_class = NULL; static FMAObjectIdClass *st_parent_class = NULL;
static GType register_type( void ); static GType register_type( void );
static void class_init( FMAObjectProfileClass *klass ); static void class_init( FMAObjectProfileClass *klass );
static void instance_init( GTypeInstance *instance, gpointer klass ); static void instance_init( GTypeInstance *instance, gpointer klass );
static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec ); static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec );
static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec ); static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec );
static void instance_dispose( GObject *object ); static void instance_dispose( GObject *object );
static void instance_finalize( GObject *object ); static void instance_finalize( GObject *object );
static void object_dump( const FMAObject *object ); static void object_dump( const FMAObject *object );
static gboolean object_is_valid( const FMAObject *object ); static gboolean object_is_valid( const FMAObject *object );
static void ifactory_object_iface_init( FMAIFactoryObjectInterface *iface, void *user_data ); static void ifactory_object_iface_init( FMAIFactoryObjectInterface *iface, void *user_data );
static guint ifactory_object_get_version( const FMAIFactoryObject *instance ); static guint ifactory_object_get_version( const FMAIFactoryObject *instance );
static FMADataGroup *ifactory_object_get_groups( const FMAIFactoryObject *instance ); static FMADataGroup *ifactory_object_get_groups( const FMAIFactoryObject *instance );
static void ifactory_object_read_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages ); static void ifactory_object_read_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *reader, void *reader_data, GSList **messages );
static guint ifactory_object_write_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages ); static guint ifactory_object_write_done( FMAIFactoryObject *instance, const FMAIFactoryProvider *writer, void *writer_data, GSList **messages );
static void icontext_iface_init( FMAIContextInterface *iface, void *user_data ); static void icontext_iface_init( FMAIContextInterface *iface, void *user_data );
static gboolean icontext_is_candidate( FMAIContext *object, guint target, GList *selection ); static gboolean icontext_is_candidate( FMAIContext *object, guint target, GList *selection );
static gboolean convert_pre_v3_parameters( FMAObjectProfile *profile ); static gboolean convert_pre_v3_parameters( FMAObjectProfile *profile );
static gboolean convert_pre_v3_parameters_str( gchar *str ); static gboolean convert_pre_v3_parameters_str( gchar *str );
static gboolean convert_pre_v3_multiple( FMAObjectProfile *profile ); static gboolean convert_pre_v3_multiple( FMAObjectProfile *profile );
static gboolean convert_pre_v3_isfiledir( FMAObjectProfile *profile ); static gboolean convert_pre_v3_isfiledir( FMAObjectProfile *profile );
static void read_done_ending( FMAObjectProfile *profile ); static void read_done_ending( FMAObjectProfile *profile );
static void split_path_parameters( FMAObjectProfile *profile ); static void split_path_parameters( FMAObjectProfile *profile );
static gboolean is_valid_path_parameters( const FMAObjectProfile *profile ); static gboolean is_valid_path_parameters( const FMAObjectProfile *profile );
static gchar *object_id_new_id( const FMAObjectId *item, const FMAObjectId *new_parent ); static gchar *object_id_new_id( const FMAObjectId *item, const FMAObjectId *new_parent );
GType GType
fma_object_profile_get_type( void ) fma_object_profile_get_type( void )
......
...@@ -63,7 +63,7 @@ struct _FMAPivotPrivate { ...@@ -63,7 +63,7 @@ struct _FMAPivotPrivate {
/* timeout to manage i/o providers 'item-changed' burst /* timeout to manage i/o providers 'item-changed' burst
*/ */
FMATimeout change_timeout; FMATimeout change_timeout;
}; };
/* FMAPivot properties /* FMAPivot properties
...@@ -85,23 +85,23 @@ enum { ...@@ -85,23 +85,23 @@ enum {
LAST_SIGNAL LAST_SIGNAL
}; };
static GObjectClass *st_parent_class = NULL; static GObjectClass *st_parent_class = NULL;
static gint st_burst_timeout = 100; /* burst timeout in msec */ static gint st_burst_timeout = 100; /* burst timeout in msec */
static gint st_signals[ LAST_SIGNAL ] = { 0 }; static gint st_signals[ LAST_SIGNAL ] = { 0 };
static GType register_type( void ); static GType register_type( void );
static void class_init( FMAPivotClass *klass ); static void class_init( FMAPivotClass *klass );
static void instance_init( GTypeInstance *instance, gpointer klass ); static void instance_init( GTypeInstance *instance, gpointer klass );
static void instance_constructed( GObject *object ); static void instance_constructed( GObject *object );
static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec ); static void instance_get_property( GObject *object, guint property_id, GValue *value, GParamSpec *spec );
static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec ); static void instance_set_property( GObject *object, guint property_id, const GValue *value, GParamSpec *spec );
static void instance_dispose( GObject *object ); static void instance_dispose( GObject *object );
static void instance_finalize( GObject *object ); static void instance_finalize( GObject *object );
static FMAObjectItem *get_item_from_tree( const FMAPivot *pivot, GList *tree, const gchar *id ); static FMAObjectItem *get_item_from_tree( const FMAPivot *pivot, GList *tree, const gchar *id );
/* FMAIIOProvider management */ /* FMAIIOProvider management */
static void on_items_changed_timeout( FMAPivot *pivot ); static void on_items_changed_timeout( FMAPivot *pivot );
GType GType
fma_pivot_get_type( void ) fma_pivot_get_type( void )
......
...@@ -67,17 +67,17 @@ struct _FMASelectedInfoPrivate { ...@@ -67,17 +67,17 @@ struct _FMASelectedInfoPrivate {
static GObjectClass *st_parent_class = NULL; static GObjectClass *st_parent_class = NULL;
static GType register_type( void ); static GType register_type( void );
static void class_init( FMASelectedInfoClass *klass ); static void class_init( FMASelectedInfoClass *klass );
static void instance_init( GTypeInstance *instance, gpointer klass ); static void instance_init( GTypeInstance *instance, gpointer klass );
static void instance_dispose( GObject *object ); static void instance_dispose( GObject *object );
static void instance_finalize( GObject *object ); static void instance_finalize( GObject *object );
static void dump( const FMASelectedInfo *nsi ); static void dump( const FMASelectedInfo *nsi );
static const char *dump_file_type( GFileType type ); static const char *dump_file_type( GFileType type );
static FMASelectedInfo *new_from_nautilus_file_info( NautilusFileInfo *item ); static FMASelectedInfo *new_from_nautilus_file_info( NautilusFileInfo *item );
static FMASelectedInfo *new_from_uri( const gchar *uri, const gchar *mimetype, gchar **errmsg ); static FMASelectedInfo *new_from_uri( const gchar *uri, const gchar *mimetype, gchar **errmsg );
static void query_file_attributes( FMASelectedInfo *info, GFile *location, gchar **errmsg ); static void query_file_attributes( FMASelectedInfo *info, GFile *location, gchar **errmsg );
GType GType
fma_selected_info_get_type( void ) fma_selected_info_get_type( void )
......
...@@ -54,7 +54,7 @@ typedef struct _FMASettingsPrivate FMASettingsPrivate; ...@@ -54,7 +54,7 @@ typedef struct _FMASettingsPrivate FMASettingsPrivate;
typedef struct { typedef struct {
/*< private >*/ /*< private >*/
GObject parent; GObject parent;
FMASettingsPrivate *private; FMASettingsPrivate *private;
} }
FMASettings; FMASettings;
...@@ -63,7 +63,7 @@ typedef struct _FMASettingsClassPrivate FMASettingsClassPrivate; ...@@ -63,7 +63,7 @@ typedef struct _FMASettingsClassPrivate FMASettingsClassPrivate;
typedef struct { typedef struct {
/*< private >*/ /*< private >*/
GObjectClass parent; GObjectClass parent;
FMASettingsClassPrivate *private; FMASettingsClassPrivate *private;
} }
FMASettingsClass; FMASettingsClass;
...@@ -109,11 +109,11 @@ typedef struct { ...@@ -109,11 +109,11 @@ typedef struct {
/* private instance data /* private instance data
*/ */
struct _FMASettingsPrivate { struct _FMASettingsPrivate {