[gnome-contacts/Ordissimo/gnome-contacts-restore-birthday] editor: Fix the loss of birthday date
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/Ordissimo/gnome-contacts-restore-birthday] editor: Fix the loss of birthday date
- Date: Sun, 13 Jun 2021 21:31:39 +0000 (UTC)
commit f4734ab6915c9e6a9b219a3f4bb09dec6d3c2c2d
Author: thierry1970 <thierry ordissimo com>
Date: Thu Jun 10 14:55:46 2021 +0200
editor: Fix the loss of birthday date
src/contacts-editor-property.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/contacts-editor-property.vala b/src/contacts-editor-property.vala
index 6f385908..4687fbd6 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 (() => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]