summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorthierry1970 <thierry@ordissimo.com>2021-06-10 14:55:46 +0200
committerthierry1970 <thierry@ordissimo.com>2021-06-14 06:46:58 +0200
commita7b1f3fb3a0a547cfb02a779da79e2b2781e0804 (patch)
treec27423a761ac9c34a50d6a9e22991fde6b39d8ac /src
parent4565f2046b139af0e1525e13f857ec16e55d8426 (diff)
downloadgnome-contacts-a7b1f3fb3a0a547cfb02a779da79e2b2781e0804.tar.gz
Fix the loss of the birthday date
fix build
Diffstat (limited to 'src')
-rw-r--r--src/contacts-editor-property.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/contacts-editor-property.vala b/src/contacts-editor-property.vala
index 6f38590..4687fbd 100644
--- a/src/contacts-editor-property.vala
+++ b/src/contacts-editor-property.vala
@@ -556,16 +556,18 @@ public class Contacts.EditorProperty : Gee.ArrayList<EditorPropertyRow> {
private EditorPropertyRow create_for_birthday (BirthdayDetails? details) {
DateTime date;
+ Gtk.Button button;
if (details.birthday == null) {
date = new DateTime.now ();
+ button = new Gtk.Button.with_label (_("Set Birthday"));
} else {
date = details.birthday;
+ button = new Gtk.Button.with_label (details.birthday.to_local ().format ("%x"));
}
var box = new EditorPropertyRow ("birthday");
box.add_base_label (_("Birthday"));
- var button = new Gtk.Button.with_label (_("Set Birthday"));
box.container.pack_start (button);
button.clicked.connect (() => {