After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 380373 - Add birthday support to contact information
Add birthday support to contact information
Status: RESOLVED FIXED
Product: gossip
Classification: Deprecated
Component: General
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Gossip Maintainers
Gossip Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-29 04:01 UTC by Laurent Bigonville
Modified: 2006-12-09 22:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (510.38 KB, patch)
2006-11-29 04:02 UTC, Laurent Bigonville
needs-work Details | Review
Screenshot (17.75 KB, image/png)
2006-11-29 21:41 UTC, Laurent Bigonville
  Details
Screenshot calendar (43.85 KB, image/png)
2006-11-29 21:42 UTC, Laurent Bigonville
  Details
Patch with gtkcalendar (33.34 KB, patch)
2006-11-30 00:26 UTC, Laurent Bigonville
committed Details | Review

Description Laurent Bigonville 2006-11-29 04:01:21 UTC
Add support to view and edit birthday information for contacts
Comment 1 Laurent Bigonville 2006-11-29 04:02:19 UTC
Created attachment 77320 [details] [review]
Patch

If someone (zdra!!) can review this... thanks
Comment 2 Xavier Claessens 2006-11-29 08:54:54 UTC
I think it's not really the moment to make such protocol-dependent changes. GossipVCard will for sure need a big rework (if not completely removed) to fit telepathy spec for contact information. Telepathy doesn't have a spec for that yet, so I suggest to wait until we can design a new API. I think it will be the same than for GossipAccount, static information will move to a dynamic GHashTable.

Why is there that many changes in the glade ? I didn't looked at what it looks but the patch seems huge...
Comment 3 Martyn Russell 2006-11-29 09:10:53 UTC
I took a look at this too.

My comments:
- I don't think the birthday needs to be in the contact information dialog.
- The birthday entry field in the vcard dialog should be regulated a bit more, i.e. having separate fields for YYYY-MM-DD and enforcing that - although the Jabber spec doesn't have any outline for the format but they do use the one I just mentioned.
- I agree with Xavier, the glade files are quite large. This might be because I removed a dialog in the main.glade file recently and your version was the older version - there certainly shouldn't be that many changes considering the bug this fixes.
- I would like to see the birthday used in some way. For example, compositing a birthday icon (like a crown) over the status icon for people that you know have a birthday that day.

Xavier:
- Remember we are not just working to be completely compatible with Telepathy, we can still write Jabber specific software, I really don't think waiting for a Telepathy spec on ANYTHING is a good enough reason to decline a patch.
- VCards are somewhat of a standard in themselves anyway, so I wouldn't worry about what Telepathy does, because it is likely to be similar. 
- By committing such patches we can learn from them and improve our recommendations to the Telepathy team when they ask about how best to implement some spec to do the same thing.
Comment 4 Laurent Bigonville 2006-11-29 18:34:02 UTC
About the huge diff for the glade file, my bad, I use glade-3 to edit this :/

About the formatting of the date, I have seen in the jep's that the date must be formatted according to ISO 8601, but AFAIK there is only a few client that enforce this. So it could be a problem for a "today birthday" feature...
To make gossip enforces this format, we could use a gtkCalendar or something like that to set the field?

>- I don't think the birthday needs to be in the contact information dialog.
Where do you would like to see this info?
Comment 5 Martyn Russell 2006-11-29 19:25:22 UTC
Please, don't use glade-3 for editing any glade files, it doesn't work properly yet. We had this a while back, so if you are doing any patches, use glade-2 otherwise they won't be accepted :)

I thought about using the GtkCalendar, but it is a big widget and in the end we just duplicate the gnome-about-me dialog if we keep adding all these fields. So I propose that we have 3 entries:

  [YYYY] [MM] [DD] [Browse]

Where the browse button shows a GtkCalendar perhaps?

I don't really know how this information is useful other than showing your friend's birthdays, on the roster or something. Putting it in the contact information dialog is ok, but I don't really see the point. I guess we could have it there.

As for enforcing the format in that field, I am not worried about that, other clients data that doesn't comply just won't be used I should imagine. The patch would need a lot more work for this of course, i.e. entries would only accept digits and the vcard data would have to be checked, etc.




Comment 6 Laurent Bigonville 2006-11-29 21:41:21 UTC
Created attachment 77382 [details]
Screenshot

What do you think of something like that?
Comment 7 Laurent Bigonville 2006-11-29 21:42:12 UTC
Created attachment 77383 [details]
Screenshot calendar

The 3 dot button open a simple gtkcalendar like that
Comment 8 Martyn Russell 2006-11-29 22:23:27 UTC
Laurent: Yea, something like that (I really meant separate entries for YYYY, MM and DD, but I am not really sure). Except I would rather it was a drop down type object instead of a new window (a bit like the presence combo on the main window) so we don't have to worry about a new window with an OK button.

That said, I would still rather have the separate dialog than just an entry :)

What would be ideal would be a new widget called GossipCalendarButton or something which does the "..." and also (while pressed) shows a popup with the GtkCalendar inside it. I think Evolution do this as a custom widget. It is a bit more work, but it would be handy in other places then.

I wonder if it would be better as just a label with the button so you can select it (a selectable label of course).

And I think we should have the DOB in the contact information - it could be good to have.
Comment 9 Laurent Bigonville 2006-11-30 00:26:05 UTC
Created attachment 77393 [details] [review]
Patch with gtkcalendar

>I wonder if it would be better as just a label with the button so you can
>select it (a selectable label of course).

Well I made the text entry read-only, I find the text entry prettier :)

About creating a new widget, I think I don't have the skills yet.. :(
Comment 10 Martyn Russell 2006-12-09 22:24:02 UTC
Thanks for the patch. I changed the whole dialog anyway, but at least we know have  birthday support.