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 391408 - Misaligned contact cards when using evolution RTL
Misaligned contact cards when using evolution RTL
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Contacts
2.6.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
Depends on:
Blocks: Arabic
 
 
Reported: 2006-12-31 20:57 UTC by Djihed Afifi
Modified: 2008-01-24 11:14 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Arabic Contacts screenshot (21.62 KB, image/png)
2006-12-31 20:58 UTC, Djihed Afifi
  Details
Fix the minicards (1.80 KB, patch)
2008-01-06 02:02 UTC, Djihed Afifi
none Details | Review
Fix the minicards (1.80 KB, patch)
2008-01-06 02:04 UTC, Djihed Afifi
needs-work Details | Review
Improved patch. (3.47 KB, patch)
2008-01-19 17:02 UTC, Djihed Afifi
accepted-commit_now Details | Review
modified patch from Djihed Afifi (4.76 KB, patch)
2008-01-23 04:37 UTC, Suman Manjunath
committed Details | Review

Description Djihed Afifi 2006-12-31 20:57:55 UTC
In the contacts tab of evolution, the contact cards are misaligned. The labels (bold) should be on the right. This happens in RTL locales, like Arabic.

The screenshot shows this.

Other information:
Comment 1 Djihed Afifi 2006-12-31 20:58:28 UTC
Created attachment 79125 [details]
Arabic Contacts screenshot
Comment 2 Djihed Afifi 2006-12-31 20:59:10 UTC
After close inspections, the labels are not actually bold, but they are those that appear in Arabic glyphs, the contact names and addresses are in latin characters.
Comment 3 Djihed Afifi 2008-01-06 02:02:02 UTC
Created attachment 102252 [details] [review]
Fix the minicards

This patch fixes the minicards to an acceptable level for RTL. Please review.
Comment 4 Djihed Afifi 2008-01-06 02:04:11 UTC
Created attachment 102253 [details] [review]
Fix the minicards

This patch fixes the minicards to an acceptable level for RTL. Please review.


----
One unrelated thing: Evolution sometimes keeps the old "addressbook library" in memory even after quitting it and restarting. Thereby my new changes are not seen until I restart the session.

This makes me furious, how to stop this behaviour?
Comment 5 Milan Crha 2008-01-09 13:20:10 UTC
a) ChangeLog entry.

b) do not create variables in the middle of the block, it should be at the beginning of the block. (it makes troubles for some compilers).

c) I'm afraid this patch is not enough to work, for example see e-minicard-label.c:e_minicard_label_resize_children, there should be divided width in different order for RTL. What do you think?
Comment 6 Djihed Afifi 2008-01-19 17:02:33 UTC
Created attachment 103204 [details] [review]
Improved patch.

Here is an updated patch that does address the points above.

It is satisfactory, but I wish I could align the fields to the right. I tried setting the "justification" property to GTK_JUSTIFY_RIGHT , with no success
Comment 7 Milan Crha 2008-01-21 15:31:29 UTC
Hm, I do not see how to do that either. Doing this by hand in e_minicard_label_reflow is not the right way, and extending e-text can be a bit complicated. Btw, I do not see that attribute used there, so if you want to play with this a bit more and fix it (in widgets/text/e-text.c), then you can. Otherwise you can commit this, but be careful, the source has been changed recently, so it doesn't apply smoothly, and do not break new logic there (if not sure then attach new patch here, I can review).
Comment 8 Suman Manjunath 2008-01-23 04:37:58 UTC
Created attachment 103519 [details] [review]
modified patch from Djihed Afifi

had to tweak Djihed Afifi's patch to apply on SVN trunk. 

Needs a review since Milan also had some changes in the same part of the code earlier.. [The logic is kinda okay, but I'm not sure how it'd look on screen]
Comment 9 Djihed Afifi 2008-01-23 10:30:39 UTC
I'll review when I get home this evening (GMT). Thanks Suman.
Comment 10 Djihed Afifi 2008-01-24 08:25:44 UTC
Build fails. I'll do it when that is fixed. 

mail-session.c: In function 'class_init':
mail-session.c:121: error: 'CamelSessionClass' has no member named 'lookup_addressbook'
mail-session.c: In function 'mail_session_set_junk_headers':
mail-session.c:788: warning: implicit declaration of function 'camel_session_set_junk_headers'
make[3]: *** [mail-session.lo] Error 1
make[3]: Leaving directory `/media/debian/jhbuild/checkout/evolution/mail'
Comment 11 Srinivasa Ragavan 2008-01-24 08:30:57 UTC
DJihed, you have to update Evolution-data-server and try this. 
Comment 12 Djihed Afifi 2008-01-24 11:14:24 UTC
Tested and committed, thanks Suman, Srinivasa, Milan.