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 777427 - (Month view) Other n events button listed in some other column in RTL languages
(Month view) Other n events button listed in some other column in RTL languages
Status: RESOLVED FIXED
Product: gnome-calendar
Classification: Applications
Component: Views
unspecified
Other Linux
: High critical
: 3.26
Assigned To: GNOME Calendar maintainers
GNOME Calendar maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-18 07:06 UTC by Mohammed Sadiq
Modified: 2017-08-22 23:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
more events in Arabic (image) (39.37 KB, image/png)
2017-01-18 07:06 UTC, Mohammed Sadiq
  Details
month-view : correct overflow label position on rtl (2.13 KB, patch)
2017-07-19 02:17 UTC, Abdullahi Usman
none Details | Review
[PATCH V2] month-view : correct overflow label position on rtl (2.08 KB, patch)
2017-08-22 01:32 UTC, Abdullahi Usman
committed Details | Review

Description Mohammed Sadiq 2017-01-18 07:06:05 UTC
Created attachment 343697 [details]
more events in Arabic (image)

the 'Other n events' is listed in the coloumn opposite to the one it is supposed to be shown in RTL languages.


How to reproduce:
1. Open gnome-calendar with some RTL locale
   LANG=ar_SA jhbuild run gnome-calendar
2. Add several events to the same date until 'Other n events' button (its translation actually) is shown
   Eg: Add to Jan 28, 2017.

Result:
The 'Other n events' is shown in Jan 24th. Please see the attached screenshot.
Also note that the events in popover is rendered such that it has some continuation (which may be related to bug 777426)

Thanks
Comment 1 Georges Basile Stavracas Neto 2017-04-19 15:05:45 UTC
Is this still happening on master?
Comment 2 Mohammed Sadiq 2017-04-20 02:08:02 UTC
(In reply to Georges Basile Stavracas Neto from comment #1)
> Is this still happening on master?

Yes
Comment 3 Abdullahi Usman 2017-07-19 02:17:02 UTC
Created attachment 355906 [details] [review]
month-view : correct overflow label position  on rtl

This patch is complimentary to the patch at this bug https://bugzilla.gnome.org/show_bug.cgi?id=777426.
Comment 4 Abdullahi Usman 2017-08-14 12:39:20 UTC
I think this bug needs some attention.
Has this bug been fixed.
Comment 5 Georges Basile Stavracas Neto 2017-08-19 01:41:52 UTC
Review of attachment 355906 [details] [review]:

This patch indeed fixes the rendering issue, but doesn't fix the mouse interaction. So now, the overflow label is rendered correctly, but I can't click on it (I have to click on the  "wrong" cell to see the overflow popover).

::: src/views/gcal-month-view.c
@@ +1664,3 @@
           /* FIXME: hardcoded padding of the number background */
           gtk_render_background (context, cr,
+                                 cell_width * (column),

Remove the ()s
Comment 6 Abdullahi Usman 2017-08-22 01:32:40 UTC
Created attachment 358101 [details] [review]
[PATCH V2] month-view : correct overflow label position on rtl


This bug is somehow the second part of this bug https://bugzilla.gnome.org/show_bug.cgi?id=777426. That is why click will not be possible when one only apply this patch alone. But now should be okay since that bug is fixed.
Comment 7 Georges Basile Stavracas Neto 2017-08-22 23:54:51 UTC
Review of attachment 358101 [details] [review]:

LGTM
Comment 8 Georges Basile Stavracas Neto 2017-08-22 23:58:50 UTC
Thanks for the fix. I'm very happy you're working on improving Calendar's behavior on RTL languages =)

Attachment 358101 [details] pushed as d9a775e - month-view : correct overflow label position on rtl