]> saetta.ns0.it Git - libgdaexgrid/commitdiff
Added function GdaExGridHtmlColumn::get_header.
authorAndrea Zagli <azagli@libero.it>
Sun, 28 Mar 2021 14:51:13 +0000 (16:51 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 28 Mar 2021 14:51:13 +0000 (16:51 +0200)
src/grid.c
src/gridcolumn.c
src/gridcolumn.h

index f5dbd72ec77fa96bd095ac34bd0cca1e687db7f5..486400ae33eed9882d1790429d1d9b241b789e08 100644 (file)
@@ -1105,8 +1105,8 @@ gchar
                {
                        gcolumn = (GdaExGridColumn *)g_ptr_array_index (priv->columns, col);
                        g_string_append_printf (str,
-                                               "\t<th>%s</th>\n",
-                                               gdaex_grid_column_get_title (gcolumn));
+                                               "\t%s\n",
+                                               gdaex_grid_html_column_get_header (gcolumn));
                }
 
        g_string_append (str, "</tr>\n");
index c66509c591015ed710586cdca5af7360853ebcd4..b6ba620591169c97f2ca9ea3fafa5a0e1f40312a 100644 (file)
@@ -551,6 +551,17 @@ GtkTreeViewColumn
        return priv->vcolumn;
 }
 
+gchar
+*gdaex_grid_html_column_get_header (GdaExGridColumn *column)
+{
+       gchar *ret;
+
+       ret = g_strdup_printf ("<th>%s</th>",
+                              gdaex_grid_column_get_title (column));
+
+       return ret;
+}
+
 /* PRIVATE */
 static void
 gdaex_grid_column_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
index 9b413889ea3e99bc3b88d35ee4a95a323e826d44..59fc006c729a0519a00f5a9268651d7b2bdd2f7e 100644 (file)
@@ -98,6 +98,8 @@ gint gdaex_grid_column_get_decimals (GdaExGridColumn *column);
 
 GtkTreeViewColumn *gdaex_grid_column_get_column (GdaExGridColumn *column);
 
+gchar *gdaex_grid_html_column_get_header (GdaExGridColumn *column);
+
 
 G_END_DECLS