summaryrefslogtreecommitdiff
path: root/src/glibext/gdisplayoptions.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-20 16:43:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-20 16:43:23 (GMT)
commita809d3517eb928d5d7a03d96a85f8af96daa1047 (patch)
tree451decffd5fc20d1a5237b2aa814a62aaba99316 /src/glibext/gdisplayoptions.c
parent5093663eb4e4aa17edd97cbd864ccb4a3d48a803 (diff)
Included dynamic items in the view menu.
Diffstat (limited to 'src/glibext/gdisplayoptions.c')
-rw-r--r--src/glibext/gdisplayoptions.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/glibext/gdisplayoptions.c b/src/glibext/gdisplayoptions.c
index 8641f59..9ab2063 100644
--- a/src/glibext/gdisplayoptions.c
+++ b/src/glibext/gdisplayoptions.c
@@ -263,6 +263,36 @@ void g_display_options_add(GDisplayOptions *options, const char *name, bool valu
* Paramètres : options = options à consulter. *
* index = indice de l'option concernée. *
* *
+* Description : Fournit la désignation d'une option donnée. *
+* *
+* Retour : Nom humainement lisible. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+const char *g_display_options_get_name(const GDisplayOptions *options, size_t index)
+{
+ char *result; /* Désignation à retourner */
+
+ assert(index < options->count);
+
+ if (index < options->count)
+ result = options->names[index];
+
+ else
+ result = NULL;
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : options = options à consulter. *
+* index = indice de l'option concernée. *
+* *
* Description : Fournit la valeur d'une option donnée. *
* *
* Retour : Valeur attribuée. *