summaryrefslogtreecommitdiff
path: root/src/analysis/loaded.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-19 23:16:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-19 23:16:29 (GMT)
commit5093663eb4e4aa17edd97cbd864ccb4a3d48a803 (patch)
tree48192ae6b37e1803d78ed81f5658ad9d2756cfd1 /src/analysis/loaded.c
parent12abead3f60d6f72c0d41672af87215dfc13c8fc (diff)
Given their own structure to rendering options.
Diffstat (limited to 'src/analysis/loaded.c')
-rw-r--r--src/analysis/loaded.c48
1 files changed, 4 insertions, 44 deletions
diff --git a/src/analysis/loaded.c b/src/analysis/loaded.c
index 5359103..28aea43 100644
--- a/src/analysis/loaded.c
+++ b/src/analysis/loaded.c
@@ -135,14 +135,6 @@ static void g_loaded_content_default_init(GLoadedContentInterface *iface)
g_cclosure_marshal_VOID__BOOLEAN,
G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
- g_signal_new("display-changed",
- G_TYPE_LOADED_CONTENT,
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET(GLoadedContentIface, display_changed),
- NULL, NULL,
- g_cclosure_user_marshal_VOID__ENUM_ENUM,
- G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT);
-
}
@@ -471,60 +463,28 @@ unsigned int g_loaded_content_get_view_index(GLoadedContent *content, GtkWidget
* *
* Description : Fournit toutes les options d'affichage pour un contenu. *
* *
-* Retour : Tableau de paramètres en accès libre. *
+* Retour : Gestionnaire de paramètres. *
* *
* Remarques : - *
* *
******************************************************************************/
-bool * const g_loaded_content_get_all_display_options(const GLoadedContent *content, unsigned int index)
+GDisplayOptions *g_loaded_content_get_display_options(const GLoadedContent *content, unsigned int index)
{
- bool const *result; /* Accès aux options à renvoyer*/
+ GDisplayOptions *result; /* Accès aux options à renvoyer*/
GLoadedContentIface *iface; /* Interface utilisée */
assert(index <= g_loaded_content_count_views(content));
iface = G_LOADED_CONTENT_GET_IFACE(content);
- result = iface->get_all_options(content, index);
+ result = iface->get_options(content, index);
return result;
}
-/******************************************************************************
-* *
-* Paramètres : content = contenu chargé à consulter. *
-* index = composant graphique à cibler. *
-* option = type de paramètre à manipuler. *
-* state = valeur dudit paramètre. *
-* *
-* Description : Définit une option d'affichage pour un contenu chargé. *
-* *
-* Retour : - *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-void g_loaded_content_set_display_option(GLoadedContent *content, unsigned int index, unsigned int option, bool state)
-{
- GLoadedContentIface *iface; /* Interface utilisée */
- bool changed; /* Note un changement */
-
- assert(index <= g_loaded_content_count_views(content));
-
- iface = G_LOADED_CONTENT_GET_IFACE(content);
-
- changed = iface->set_option(content, index, option, state);
-
- if (changed)
- g_signal_emit_by_name(content, "display-changed", index, option);
-
-}
-
-
/* ---------------------------------------------------------------------------------- */
/* PHASE D'ANALYSE EN PARALLELE */