]> saetta.ns0.it Git - libgtkform/commitdiff
Bugfixes and added function GtkFormFieldDateTime::get_str_from_tm.
authorAndrea Zagli <azagli@libero.it>
Fri, 4 Sep 2009 18:03:18 +0000 (20:03 +0200)
committerAndrea Zagli <azagli@libero.it>
Fri, 4 Sep 2009 18:03:18 +0000 (20:03 +0200)
docs/reference/libgtkform-decl-list.txt
docs/reference/libgtkform-decl.txt
docs/reference/libgtkform-undeclared.txt
docs/reference/libgtkform-undocumented.txt
docs/reference/libgtkform-unused.txt
docs/reference/tmpl/field.sgml
docs/reference/tmpl/form.sgml
docs/reference/tmpl/key.sgml
docs/reference/tmpl/libgtkform-unused.sgml
src/fielddatetime.c
src/fielddatetime.h

index 7be037d87f80a340f59c3b5565ebd89a6ac78f36..3811719dc2df5119a5419f7cdada106ace58b333 100644 (file)
@@ -50,6 +50,7 @@ gtk_form_field_boolean_get_value_sql
 gtk_form_field_boolean_clear
 gtk_form_field_boolean_is_empty
 gtk_form_filed_boolean_is_changed
+gtk_form_field_boolean_set_as_origin
 gtk_form_field_boolean_set_from_datamodel
 gtk_form_field_boolean_str_to_boolean
 </SECTION>
@@ -69,6 +70,8 @@ gtk_form_widget_new
 gtk_form_widget_set_from_gtkbuilder
 gtk_form_widget_get_widget
 gtk_form_widget_get_widget_name
+gtk_form_widget_get_label
+gtk_form_widget_set_label
 gtk_form_widget_get_value_stringify
 gtk_form_widget_set_value_stringify
 gtk_form_widget_set_editable
@@ -92,6 +95,7 @@ gtk_form_field_text_get_value_sql
 gtk_form_field_text_clear
 gtk_form_field_text_is_empty
 gtk_form_field_text_is_changed
+gtk_form_field_text_set_as_origin
 gtk_form_field_text_set_from_datamodel
 </SECTION>
 
@@ -113,8 +117,10 @@ gtk_form_field_datetime_get_value_sql
 gtk_form_field_datetime_clear
 gtk_form_field_datetime_is_empty
 gtk_form_field_datetime_is_changed
+gtk_form_field_datetime_set_as_origin
 gtk_form_field_datetime_set_from_datamodel
 gtk_form_field_datetime_get_tm_from_str
+gtk_form_field_datetime_get_str_from_tm
 </SECTION>
 
 <SECTION>
@@ -151,6 +157,7 @@ gtk_form_field_float_get_value_sql
 gtk_form_field_float_clear
 gtk_form_field_float_is_empty
 gtk_form_field_float_is_changed
+gtk_form_field_float_set_as_origin
 gtk_form_field_float_set_from_datamodel
 </SECTION>
 
@@ -205,13 +212,14 @@ gtk_form_field_get_type
 gtk_form_field_new
 gtk_form_field_new_from_gtk_form_widget
 gtk_form_field_get_field_name
-gtk_form_field_get_gtk_form_widget
+gtk_form_field_get_form_widget
 gtk_form_field_get_value_stringify
 gtk_form_field_get_value
 gtk_form_field_get_value_sql
 gtk_form_field_clear
 gtk_form_field_is_empty
 gtk_form_field_is_changed
+gtk_form_field_set_as_origin
 gtk_form_field_set_from_datamodel
 </SECTION>
 
@@ -244,7 +252,9 @@ gtk_form_get_objects_by_name
 gtk_form_clear
 gtk_form_check
 gtk_form_is_changed
+gtk_form_set_as_origin
 gtk_form_set_sensitive
+gtk_form_set_sensitive_by_name
 gtk_form_set_editable
 GtkFormSqlType
 gtk_form_get_sql
@@ -303,6 +313,7 @@ gtk_form_field_integer_get_value_sql
 gtk_form_field_integer_clear
 gtk_form_field_integer_is_empty
 gtk_form_field_integer_is_changed
+gtk_form_field_integer_set_as_origin
 gtk_form_field_integer_set_from_datamodel
 </SECTION>
 
index 49ca0854bbfd2cd7a84a12d80055546ca6508ba5..e418092832c26592939e3840f61143cf33ba8e1d 100644 (file)
@@ -221,6 +221,11 @@ GtkFormField *field
 GtkFormField *field
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_field_boolean_set_as_origin</NAME>
+<RETURNS>void </RETURNS>
+GtkFormField *field
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_field_boolean_set_from_datamodel</NAME>
 <RETURNS>gboolean </RETURNS>
 GtkFormField *field, GdaDataModel *dm, gint row
@@ -306,6 +311,16 @@ GtkFormWidget *fwidget
 GtkFormWidget *fwidget
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_widget_get_label</NAME>
+<RETURNS>GtkWidget *</RETURNS>
+GtkFormWidget *fwidget
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_form_widget_set_label</NAME>
+<RETURNS>void </RETURNS>
+GtkFormWidget *fwidget, GtkLabel *label
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_widget_get_value_stringify</NAME>
 <RETURNS>const gchar *</RETURNS>
 GtkFormWidget *fwidget
@@ -405,6 +420,11 @@ GtkFormField *field
 GtkFormField *field
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_field_text_set_as_origin</NAME>
+<RETURNS>void </RETURNS>
+GtkFormField *field
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_field_text_set_from_datamodel</NAME>
 <RETURNS>gboolean </RETURNS>
 GtkFormField *field, GdaDataModel *dm, gint row
@@ -494,6 +514,11 @@ GtkFormField *field
 GtkFormField *field
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_field_datetime_set_as_origin</NAME>
+<RETURNS>void </RETURNS>
+GtkFormField *field
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_field_datetime_set_from_datamodel</NAME>
 <RETURNS>gboolean </RETURNS>
 GtkFormField *field, GdaDataModel *dm, gint row
@@ -503,6 +528,11 @@ GtkFormField *field, GdaDataModel *dm, gint row
 <RETURNS>struct tm *</RETURNS>
 const gchar *str
 </FUNCTION>
+<FUNCTION>
+<NAME>gtk_form_field_datetime_get_str_from_tm</NAME>
+<RETURNS>gchar *</RETURNS>
+struct tm *datetime, const gchar *format
+</FUNCTION>
 <MACRO>
 <NAME>TYPE_GTK_FORM_WIDGET_LABEL</NAME>
 #define TYPE_GTK_FORM_WIDGET_LABEL                 (gtk_form_widget_label_get_type ())
@@ -652,6 +682,11 @@ GtkFormField *field
 GtkFormField *field
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_field_float_set_as_origin</NAME>
+<RETURNS>void </RETURNS>
+GtkFormField *field
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_field_float_set_from_datamodel</NAME>
 <RETURNS>gboolean </RETURNS>
 GtkFormField *field, GdaDataModel *dm, gint row
@@ -728,7 +763,7 @@ GtkFormKey *gtk_form_key, ...
 <FUNCTION>
 <NAME>gtk_form_key_check</NAME>
 <RETURNS>gboolean </RETURNS>
-GtkFormKey *gtk_form_key
+GtkFormKey *gtk_form_key, GtkFormWidget **form_widget
 </FUNCTION>
 <FUNCTION>
 <NAME>gtk_form_key_get_sql</NAME>
@@ -859,6 +894,7 @@ struct _GtkFormFieldClass
                gboolean (*clear) (GtkFormField *field);
                gboolean (*is_empty) (GtkFormField *field);
                gboolean (*is_changed) (GtkFormField *field);
+               void (*set_as_origin) (GtkFormField *field);
                gboolean (*set_from_datamodel) (GtkFormField *field, GdaDataModel *dm, gint row);
        };
 </STRUCT>
@@ -883,7 +919,7 @@ GtkFormWidget *fwidget
 GtkFormField *field
 </FUNCTION>
 <FUNCTION>
-<NAME>gtk_form_field_get_gtk_form_widget</NAME>
+<NAME>gtk_form_field_get_form_widget</NAME>
 <RETURNS>GtkFormWidget *</RETURNS>
 GtkFormField *field
 </FUNCTION>
@@ -918,6 +954,11 @@ GtkFormField *field
 GtkFormField *field
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_field_set_as_origin</NAME>
+<RETURNS>void </RETURNS>
+GtkFormField *field
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_field_set_from_datamodel</NAME>
 <RETURNS>gboolean </RETURNS>
 GtkFormField *field, GdaDataModel *dm, gint row
@@ -1054,7 +1095,7 @@ GtkForm *form
 <FUNCTION>
 <NAME>gtk_form_check</NAME>
 <RETURNS>gboolean </RETURNS>
-GtkForm *form
+GtkForm *form, gboolean with_key,GtkFormWidget **form_widget,gboolean show_error_dialog, GtkWidget *parent_window,gboolean set_focus
 </FUNCTION>
 <FUNCTION>
 <NAME>gtk_form_is_changed</NAME>
@@ -1062,11 +1103,21 @@ GtkForm *form
 GtkForm *form
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_set_as_origin</NAME>
+<RETURNS>void </RETURNS>
+GtkForm *form
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_set_sensitive</NAME>
 <RETURNS>void </RETURNS>
 GtkForm *form, gboolean sensitive
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_set_sensitive_by_name</NAME>
+<RETURNS>void </RETURNS>
+GtkForm *form, gboolean sensitive, ...
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_set_editable</NAME>
 <RETURNS>void </RETURNS>
 GtkForm *form, gboolean editable
@@ -1314,6 +1365,11 @@ GtkFormField *field
 GtkFormField *field
 </FUNCTION>
 <FUNCTION>
+<NAME>gtk_form_field_integer_set_as_origin</NAME>
+<RETURNS>void </RETURNS>
+GtkFormField *field
+</FUNCTION>
+<FUNCTION>
 <NAME>gtk_form_field_integer_set_from_datamodel</NAME>
 <RETURNS>gboolean </RETURNS>
 GtkFormField *field, GdaDataModel *dm, gint row
index a47720b2df730b51c67d66284366c101f5b4456e..fe0d0b1ab0cd2a9abc215edbb01b9ebe3fbb3ce3 100644 (file)
@@ -1,2 +1,3 @@
+gtk_form_field_get_gtk_form_widget
 gtk_form_get_field_from_name
 gtk_form_get_widget_from_name
index a85e31dda4090cb9232cb42669c78242c13d9485..fcb07871a4d46d2a3caaa9bd75597409200d75de 100644 (file)
@@ -1,7 +1,7 @@
-6% symbol docs coverage.
-17 symbols documented.
-2 symbols incomplete.
-261 not documented.
+7% symbol docs coverage.
+19 symbols documented.
+1 symbols incomplete.
+271 not documented.
 
 
 GTK_FORM
@@ -121,10 +121,12 @@ gtk_form_field_boolean_get_value_sql
 gtk_form_field_boolean_get_value_stringify
 gtk_form_field_boolean_is_empty
 gtk_form_field_boolean_new
+gtk_form_field_boolean_set_as_origin
 gtk_form_field_boolean_set_from_datamodel
 gtk_form_field_boolean_str_to_boolean (value)
 gtk_form_field_clear
 gtk_form_field_datetime_clear
+gtk_form_field_datetime_get_str_from_tm
 gtk_form_field_datetime_get_tm_from_str
 gtk_form_field_datetime_get_type
 gtk_form_field_datetime_get_value
@@ -133,6 +135,8 @@ gtk_form_field_datetime_get_value_stringify
 gtk_form_field_datetime_is_changed
 gtk_form_field_datetime_is_empty
 gtk_form_field_datetime_new
+gtk_form_field_datetime_replace_str
+gtk_form_field_datetime_set_as_origin
 gtk_form_field_datetime_set_from_datamodel
 gtk_form_field_float_clear
 gtk_form_field_float_get_type
@@ -142,9 +146,9 @@ gtk_form_field_float_get_value_stringify
 gtk_form_field_float_is_changed
 gtk_form_field_float_is_empty
 gtk_form_field_float_new
+gtk_form_field_float_set_as_origin
 gtk_form_field_float_set_from_datamodel
 gtk_form_field_get_field_name
-gtk_form_field_get_gtk_form_widget (Returns)
 gtk_form_field_get_str_format
 gtk_form_field_get_type
 gtk_form_field_get_value
@@ -158,6 +162,7 @@ gtk_form_field_integer_get_value_stringify
 gtk_form_field_integer_is_changed
 gtk_form_field_integer_is_empty
 gtk_form_field_integer_new
+gtk_form_field_integer_set_as_origin
 gtk_form_field_integer_set_from_datamodel
 gtk_form_field_is_changed
 gtk_form_field_is_empty
@@ -172,6 +177,7 @@ gtk_form_field_text_get_value_stringify
 gtk_form_field_text_is_changed
 gtk_form_field_text_is_empty
 gtk_form_field_text_new
+gtk_form_field_text_set_as_origin
 gtk_form_field_text_set_from_datamodel
 gtk_form_filed_boolean_is_changed
 gtk_form_fill_from_datamodel
@@ -200,6 +206,7 @@ gtk_form_remove_field
 gtk_form_set_editable
 gtk_form_set_key
 gtk_form_set_sensitive
+gtk_form_set_sensitive_by_name
 gtk_form_set_table
 gtk_form_widget_check_get_type
 gtk_form_widget_check_get_value_stringify
@@ -216,6 +223,7 @@ gtk_form_widget_entry_get_value_stringify
 gtk_form_widget_entry_new
 gtk_form_widget_entry_set_editable
 gtk_form_widget_entry_set_value_stringify
+gtk_form_widget_get_label
 gtk_form_widget_get_type
 gtk_form_widget_get_value_stringify
 gtk_form_widget_get_widget
@@ -227,6 +235,7 @@ gtk_form_widget_label_set_value_stringify
 gtk_form_widget_new
 gtk_form_widget_set_editable
 gtk_form_widget_set_from_gtkbuilder
+gtk_form_widget_set_label
 gtk_form_widget_set_value_stringify
 gtk_form_widget_spin_get_type
 gtk_form_widget_spin_get_value_stringify
index bac144faf4a497f7f165aab37081274a10a854eb..ba1e6957ee6a08dc88f7f0a8d6c3dedbd099d638 100644 (file)
@@ -13,13 +13,21 @@ GtkFormWidgetEntryClass
 GtkFormWidgetLabelClass
 GtkFormWidgetSpinClass
 GtkFormWidgetTextviewClass
+gtk_form_field_boolean_set_as_origin
 gtk_form_field_boolean_str_to_boolean
+gtk_form_field_datetime_get_str_from_tm
 gtk_form_field_datetime_get_tm_from_str
 gtk_form_field_datetime_is_changed
+gtk_form_field_datetime_set_as_origin
 gtk_form_field_float_is_changed
+gtk_form_field_float_set_as_origin
+gtk_form_field_get_form_widget
 gtk_form_field_integer_is_changed
+gtk_form_field_integer_set_as_origin
 gtk_form_field_is_changed
+gtk_form_field_set_as_origin
 gtk_form_field_text_is_changed
+gtk_form_field_text_set_as_origin
 gtk_form_filed_boolean_is_changed
 gtk_form_get_form_field_from_name
 gtk_form_get_form_widget_from_name
@@ -31,5 +39,9 @@ gtk_form_get_widgets
 gtk_form_is_changed
 gtk_form_new_from_file
 gtk_form_new_from_xml
+gtk_form_set_as_origin
 gtk_form_set_key
+gtk_form_set_sensitive_by_name
 gtk_form_set_table
+gtk_form_widget_get_label
+gtk_form_widget_set_label
index a14e2821435c37a493851f294386b26775afa2b8..88dbc6c7aa68d2464b05e904d8366a5d5495ea1c 100644 (file)
@@ -119,15 +119,6 @@ FormField
 @Returns: 
 
 
-<!-- ##### FUNCTION gtk_form_field_get_gtk_form_widget ##### -->
-<para>
-
-</para>
-
-@field: 
-@Returns: 
-
-
 <!-- ##### FUNCTION gtk_form_field_get_value_stringify ##### -->
 <para>
 
index 98718124b078376499a1f164890dc83b6ab534a1..5f05ef9c21a99bc210ce12e0206f08e66f42c4c0 100644 (file)
@@ -141,6 +141,11 @@ Form
 </para>
 
 @form: 
+@with_key: 
+@form_widget: 
+@show_error_dialog: 
+@parent_window: 
+@set_focus: 
 @Returns: 
 
 
index af9f0815e0603720c2841138eec774abf06b9439..f16cbd37b5498fadfa64a3078eeb4c6dd50030cd 100644 (file)
@@ -122,6 +122,7 @@ FormKey
 </para>
 
 @gtk_form_key: 
+@form_widget: 
 @Returns: 
 
 
index 6d3df2761c3f425bd6c3aaf0f58a7c9856a4b8bc..c3b0b8537c9a3d5d9056f47be674b2924148c143 100644 (file)
 @value: 
 @Returns: 
 
+<!-- ##### FUNCTION gtk_form_field_get_gtk_form_widget ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
 <!-- ##### FUNCTION gtk_form_get_field_from_name ##### -->
 <para>
 
index e63ad500d5b0c3be37150f9d212def2f4873c227..5af6a417f78de446b94934ad0963db89b91f0543 100644 (file)
@@ -46,6 +46,10 @@ static gboolean gtk_form_field_datetime_set_value_stringify (GtkFormField *field
 
 static gchar *gtk_form_field_get_str_format (GtkFormField *field);
 
+static gchar *gtk_form_field_datetime_str_replace (const gchar *string,
+                                      const gchar *origin,
+                                      const gchar *replace);
+
 #define GTK_FORM_FIELD_DATETIME_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_GTK_FORM_FIELD_DATETIME, GtkFormFieldDateTimePrivate))
 
 typedef struct _GtkFormFieldDateTimePrivate GtkFormFieldDateTimePrivate;
@@ -53,6 +57,7 @@ struct _GtkFormFieldDateTimePrivate
        {
                struct tm *default_value;
                struct tm *original_value;
+
                gint type;
        };
 
@@ -149,15 +154,12 @@ const GValue
 {
        struct tm *datetime;
        GValue *ret;
-       const gchar *format;
        const gchar *value;
 
        g_return_val_if_fail (IS_GTK_FORM_FIELD_DATETIME (field), NULL);
 
        ret = NULL;
 
-       format = gtk_form_field_get_str_format (field);
-
        value = gtk_form_field_datetime_get_value_stringify (field);
 
        datetime = gtk_form_field_datetime_get_tm_from_str (value);
@@ -196,15 +198,13 @@ const gchar
                        datetime = gtk_form_field_datetime_get_tm_from_str (value);
                        if (datetime != NULL)
                                {
-                                       char *buf;
-
-                                       buf = g_malloc (20);
+                                       gchar *value;
 
-                                       if (strftime (buf, 20, format, datetime) != 0)
+                                       value = gtk_form_field_datetime_get_str_from_tm (datetime, format);
+                                       if (value != NULL)
                                                {
-                                                       ret = g_strconcat ("'", buf, "'", NULL);
+                                                       ret = g_strconcat ("'", value, "'", NULL);
                                                }
-                                       g_free (buf);
                                }
                }
 
@@ -232,13 +232,12 @@ gtk_form_field_datetime_clear (GtkFormField *field)
 
        if (priv->default_value != NULL)
                {
-                       char *buf;
+                       gchar *value;
 
-                       buf = malloc (30);
-
-                       if (strftime (buf, 30, format, priv->default_value) != '\0')
+                       value = gtk_form_field_datetime_get_str_from_tm (priv->default_value, format);
+                       if (value != NULL)
                                {
-                                       ret = gtk_form_field_datetime_set_value_stringify (field, buf);
+                                       ret = gtk_form_field_datetime_set_value_stringify (field, value);
                                }
                }
        else
@@ -359,7 +358,6 @@ gtk_form_field_datetime_set_from_datamodel (GtkFormField *field, GdaDataModel *d
 struct tm
 *gtk_form_field_datetime_get_tm_from_str (const gchar *str)
 {
-
        /* TO DO
         * check if it is a valid date/time
      */
@@ -412,6 +410,44 @@ struct tm
        return tm;
 }
 
+/**
+ * gtk_form_field_datetime_get_str_from_tm:
+ * @datetime: a tm struct.
+ * @format:
+ *
+ * Returns: a string representation of @datetime based on the format in @format.
+ * It interprets a very little subset of format identifier from strftime.
+ * %Y: the year with 4 digits.
+ * %m: the month with 2 digits.
+ * %d: the day with 2 digits.
+ * %H: the hours with 2 digits 00-24.
+ * %M: the minutes with 2 digits 00-59.
+ * %S: the seconds with 2 digits 00-59.
+ */
+gchar
+*gtk_form_field_datetime_get_str_from_tm (struct tm *datetime,
+                                          const gchar *format)
+{
+       gchar *ret;
+
+       g_return_val_if_fail (datetime != NULL, "");
+
+       ret = gtk_form_field_datetime_str_replace (format, "%Y",
+                                                  g_strdup_printf ("%04u", datetime->tm_year + 1900));
+       ret = gtk_form_field_datetime_str_replace (ret, "%m",
+                                                  g_strdup_printf ("%02u", datetime->tm_mon + 1));
+       ret = gtk_form_field_datetime_str_replace (ret, "%d",
+                                                  g_strdup_printf ("%02u", datetime->tm_mday));
+       ret = gtk_form_field_datetime_str_replace (ret, "%H",
+                                                  g_strdup_printf ("%02u", datetime->tm_hour));
+       ret = gtk_form_field_datetime_str_replace (ret, "%M",
+                                                  g_strdup_printf ("%02u", datetime->tm_min));
+       ret = gtk_form_field_datetime_str_replace (ret, "%S",
+                                                  g_strdup_printf ("%02u", datetime->tm_sec));
+
+       return ret;
+}
+
 /* PRIVATE */
 static void
 gtk_form_field_datetime_set_property (GObject *object,
@@ -495,17 +531,47 @@ static gchar
        switch (priv->type)
                {
                        case GTK_FORM_FIELD_DATETIME_TYPE_DATETIME:
-                               format = g_strdup ("%F %T");
+                               format = g_strdup ("%Y-%m-%d %H-%M-%S");
                                break;
 
                        case GTK_FORM_FIELD_DATETIME_TYPE_DATE:
-                               format = g_strdup ("%F");
+                               format = g_strdup ("%Y-%m-%d");
                                break;
 
                        case GTK_FORM_FIELD_DATETIME_TYPE_TIME:
-                               format = g_strdup ("%T");
+                               format = g_strdup ("%H-%M-%S");
                                break;
                }
 
        return format;
 }
+
+/**
+ * gtk_form_field_datetime_replace_str:
+ * @string: the string where make the replace.
+ * @origin: the string to replace.
+ * @replace: the string to insert.
+ *
+ * Returns: a string with replaced string.
+ */
+static gchar
+*gtk_form_field_datetime_str_replace (const gchar *string,
+                                      const gchar *origin,
+                                      const gchar *replace)
+{
+       gchar *ret;
+       gchar *p;
+
+       p = g_strstr_len (string, -1, origin);
+
+       if (p == NULL)
+               {
+                       return (gchar *)string;
+               }
+
+       ret = g_strndup (string, p - string);
+
+       ret = g_strdup_printf ("%s%s%s", ret, replace, p + strlen (origin));
+
+       return ret;
+}
index b2007da8e80c5354981f584420efda896932c584..f56f5b57a82721ec7deec6421b3867a8d1fa080f 100644 (file)
@@ -73,6 +73,7 @@ void gtk_form_field_datetime_set_as_origin (GtkFormField *field);
 gboolean gtk_form_field_datetime_set_from_datamodel (GtkFormField *field, GdaDataModel *dm, gint row);
 
 struct tm *gtk_form_field_datetime_get_tm_from_str (const gchar *str);
+gchar *gtk_form_field_datetime_get_str_from_tm (struct tm *datetime, const gchar *format);
 
 
 G_END_DECLS