diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/pglist.h | 4 | ||||
-rw-r--r-- | src/plugins/plugin-int.h | 2 | ||||
-rw-r--r-- | src/plugins/plugin.c | 5 | ||||
-rw-r--r-- | src/plugins/plugin.h | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/src/plugins/pglist.h b/src/plugins/pglist.h index c55c6da..76f3180 100644 --- a/src/plugins/pglist.h +++ b/src/plugins/pglist.h @@ -92,8 +92,8 @@ GPluginModule **get_all_plugins_for_action(PluginAction, size_t *); /* DPS_SETUP */ -#define include_plugin_theme(r, c) \ - process_all_plugins_for(PGA_GUI_THEME, g_plugin_module_include_theme, r, c) +#define include_plugin_theme(d, r, c) \ + process_all_plugins_for(PGA_GUI_THEME, g_plugin_module_include_theme, d, r, c) /* DPS_CONTENT */ diff --git a/src/plugins/plugin-int.h b/src/plugins/plugin-int.h index 4746867..99c6080 100644 --- a/src/plugins/plugin-int.h +++ b/src/plugins/plugin-int.h @@ -51,7 +51,7 @@ typedef void (* pg_handle_content_fc) (const GPluginModule *, PluginAction, GBin typedef void (* pg_handle_loaded_fc) (const GPluginModule *, PluginAction, GLoadedContent *, wgroup_id_t, GtkStatusStack *); /* Complète une liste de resources pour thème. */ -typedef void (* pg_include_theme_fc) (const GPluginModule *, PluginAction, char ***, size_t *); +typedef void (* pg_include_theme_fc) (const GPluginModule *, PluginAction, gboolean, char ***, size_t *); /* Assure l'interprétation d'un format en différé. */ typedef bool (* pg_handle_format_analysis_fc) (const GPluginModule *, PluginAction, GBinFormat *, wgroup_id_t, GtkStatusStack *); diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index 7423148..f7a52dd 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -1047,6 +1047,7 @@ void g_plugin_module_notify_native_loaded(GPluginModule *plugin, PluginAction ac * * * Paramètres : plugin = greffon à manipuler. * * action = type d'action attendue. * +* dark = indique une préférence pour la variante foncée. * * resources = liste de ressources à constituer. [OUT] * * count = taille de cette liste. [OUT] * * * @@ -1058,13 +1059,13 @@ void g_plugin_module_notify_native_loaded(GPluginModule *plugin, PluginAction ac * * ******************************************************************************/ -void g_plugin_module_include_theme(const GPluginModule *plugin, PluginAction action, char ***resources, size_t *count) +void g_plugin_module_include_theme(const GPluginModule *plugin, PluginAction action, gboolean dark, char ***resources, size_t *count) { GPluginModuleClass *class; /* Classe de l'instance active */ class = G_PLUGIN_MODULE_GET_CLASS(plugin); - class->include_theme(plugin, action, resources, count); + class->include_theme(plugin, action, dark, resources, count); } diff --git a/src/plugins/plugin.h b/src/plugins/plugin.h index 9b8d294..f6f0644 100644 --- a/src/plugins/plugin.h +++ b/src/plugins/plugin.h @@ -96,7 +96,7 @@ bool g_plugin_module_load(GPluginModule *, GPluginModule **, size_t); void g_plugin_module_notify_native_loaded(GPluginModule *, PluginAction, void *); /* Complète une liste de resources pour thème. */ -void g_plugin_module_include_theme(const GPluginModule *, PluginAction, char ***, size_t *); +void g_plugin_module_include_theme(const GPluginModule *, PluginAction, gboolean, char ***, size_t *); /* Procède à une opération liée à un contenu binaire. */ void g_plugin_module_handle_binary_content(const GPluginModule *, PluginAction, GBinContent *, wgroup_id_t, GtkStatusStack *); |