[libgda] Fixed bug in data entry to display timestamps
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Fixed bug in data entry to display timestamps
- Date: Wed, 4 Aug 2010 17:49:45 +0000 (UTC)
commit 1693dffa59157f28d5bb5d01c141e738ff7b928f
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Aug 4 18:35:08 2010 +0200
Fixed bug in data entry to display timestamps
where the date part was not reset when displaying a NULL value
libgda-ui/data-entries/gdaui-entry-common-time.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libgda-ui/data-entries/gdaui-entry-common-time.c b/libgda-ui/data-entries/gdaui-entry-common-time.c
index edad814..755c08a 100644
--- a/libgda-ui/data-entries/gdaui-entry-common-time.c
+++ b/libgda-ui/data-entries/gdaui-entry-common-time.c
@@ -362,8 +362,10 @@ real_set_value (GdauiEntryWrapper *mgwrap, const GValue *value)
}
else if (type == GDA_TYPE_TIMESTAMP) {
if (value) {
- if (gda_value_is_null ((GValue *) value))
+ if (gda_value_is_null ((GValue *) value)) {
+ gdaui_entry_set_text (GDAUI_ENTRY (mgtim->priv->entry_date), NULL);
gdaui_entry_set_text (GDAUI_ENTRY (mgtim->priv->entry_time), NULL);
+ }
else {
gchar *str, *ptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]