/*
- * Copyright (C) 2015-2020 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2023 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
ZakFormCgiFormElementSelectPrivate *priv = zak_form_cgi_form_element_select_get_instance_private (element);
- va_start (ap, content);
- ht_attrs = zak_cgi_commons_valist_to_ghashtable (ap);
- if (ht_attrs == NULL)
- {
- ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
- }
+ ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
+ /* va_start (ap, content); */
+ /* ht_attrs = zak_cgi_commons_valist_to_ghashtable (ap); */
+ /* if (ht_attrs == NULL) */
+ /* { */
+ /* ht_attrs = g_hash_table_new (g_str_hash, g_str_equal); */
+ /* } */
g_hash_table_replace (ht_attrs, "zak-cgi-content", g_strdup (content));
g_hash_table_replace (ht_attrs, "value", g_strdup (value));
g_ptr_array_add (priv->ar_options, ht_attrs);
}
+GPtrArray
+*zak_form_cgi_form_element_select_get_options (ZakFormCgiFormElementSelect *element)
+{
+ ZakFormCgiFormElementSelectPrivate *priv = zak_form_cgi_form_element_select_get_instance_private (element);
+
+ return priv->ar_options;
+}
+
void
zak_form_cgi_form_element_select_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
/*
- * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2023 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
ZakFormCgiFormElement *zak_form_cgi_form_element_select_new_attrs (const gchar *id, ...);
void zak_form_cgi_form_element_select_add_option (ZakFormCgiFormElementSelect *element, const gchar *value, const gchar *content, ...);
+GPtrArray *zak_form_cgi_form_element_select_get_options (ZakFormCgiFormElementSelect *element);
void zak_form_cgi_form_element_select_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);