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 641366 - Calendar: no way to return to "today"
Calendar: no way to return to "today"
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: calendar
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-02-03 16:49 UTC by John Keller
Modified: 2014-03-05 15:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (2.12 KB, patch)
2012-01-16 12:11 UTC, Vít Stanislav
reviewed Details | Review
Screenshot with patch applied (43.29 KB, image/png)
2012-01-19 14:21 UTC, Florian Müllner
  Details
Calendar: make current date label clickable (2.23 KB, patch)
2014-03-03 11:47 UTC, Volker Sobek (weld)
none Details | Review
Srceenshot with the updated patch applied (177.00 KB, image/png)
2014-03-03 11:49 UTC, Volker Sobek (weld)
  Details
Calendar: make current date label clickable (2.44 KB, patch)
2014-03-03 12:44 UTC, Volker Sobek (weld)
accepted-commit_now Details | Review
Calendar: make current date label clickable (2.44 KB, patch)
2014-03-05 12:26 UTC, Volker Sobek (weld)
committed Details | Review

Description John Keller 2011-02-03 16:49:45 UTC
Once you start navigating between months, you can't return to the current day. However, the current day is always displayed above the calendar grid.

I'd suggest making the current date clickable; when clicked, the calendar grid jumps back to that day.
Comment 1 William Jon McCann 2011-02-05 16:38:53 UTC
Yeah, that could work.  In the meantime you can close and reopen it.
Comment 2 Vít Stanislav 2012-01-16 12:11:54 UTC
Created attachment 205354 [details] [review]
patch

I've personally run into this problem, too. Anyway, I've attempted to fix it.
Comment 3 Florian Müllner 2012-01-19 14:16:52 UTC
Review of attachment 205354 [details] [review]:

The code looks fine, but I'm a bit worried about the style - with that patch, the date is pretty much indistinguishable from a regular menu item (i.e. only the text alignment differs), but the behavior is rather different: activating the item does not close the menu as every other item does. Obviously it doesn't make sense to close the menu on activation here, so I think we should use a different style to stress that it is a button (like the month forward/backward buttons) rather than a menu item.
Comment 4 Florian Müllner 2012-01-19 14:21:45 UTC
Created attachment 205624 [details]
Screenshot with patch applied
Comment 5 Volker Sobek (weld) 2014-03-03 11:47:16 UTC
Created attachment 270774 [details] [review]
Calendar: make current date label clickable

Once you start navigating between months, you can't return to the
current day.  However, the current day is always displayed above the
calendar grid.  Fix this by making the current date clickable; when
clicked, the calendar grid jumps back to that day.
Comment 6 Volker Sobek (weld) 2014-03-03 11:49:50 UTC
Created attachment 270775 [details]
Srceenshot with the updated patch applied

I updated the patch so that it applies again and set the style to fit the one of the forward/backward buttons.
Comment 7 Volker Sobek (weld) 2014-03-03 12:44:08 UTC
Created attachment 270781 [details] [review]
Calendar: make current date label clickable

Once you start navigating between months, you can't return to the
current day.  However, the current day is always displayed above the
calendar grid.  Fix this by making the current date clickable; when
clicked, the calendar grid jumps back to that day.
Comment 8 Volker Sobek (weld) 2014-03-03 12:53:28 UTC
I noticed the focus handling is broken since the last changes to calendar.js in master as well: clicking on a day with the pointer will no longer make the day button grab the keyboard focus, I will file a separate bug for this later, this bug/patch here is just about the function and style of the new 'toady button'.
Comment 9 Allan Day 2014-03-04 17:17:47 UTC
The screenshot looks great to me. I'd like to tweak the colour of the text when it is hovered, but we can do that after the patch has landed.
Comment 10 Florian Müllner 2014-03-04 18:30:41 UTC
Review of attachment 270781 [details] [review]:

::: js/ui/dateMenu.js
@@ +68,3 @@
+                                   });
+        this._date.connect('clicked',
+                            Lang.bind(this, function() {

Alignment is off by one, otherwise looks good
Comment 11 Volker Sobek (weld) 2014-03-05 12:26:21 UTC
Created attachment 270981 [details] [review]
Calendar: make current date label clickable

Once you start navigating between months, you can't return to the
current day.  However, the current day is always displayed above the
calendar grid.  Fix this by making the current date clickable; when
clicked, the calendar grid jumps back to that day.
Comment 12 Volker Sobek (weld) 2014-03-05 15:41:57 UTC
Attachment 270981 [details] pushed as c07421c - Calendar: make current date label clickable