Closed
Bug 348712
Opened 18 years ago
Closed 18 years ago
RTL Caret for GTK2 on 1.8 Branch
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.8.1
People
(Reporter: zwnj, Assigned: zwnj)
References
(Blocks 2 open bugs)
Details
(Keywords: fixed1.8.1, relnote, rtl, Whiteboard: [Fx2b2 rider])
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
smontagu
:
review+
roc
:
superreview+
beltzner
:
approval1.8.1+
|
Details | Diff | Splinter Review |
As Bug 272096 (Disable bidi caret on platforms without nsBidiKeyboard::IsLangRTL impl') haven't fixed on 1.8 branch, I want to add GTK2 backend for nsBidiKeyboard to fix for 1.8 branch, to get bidi caret works well with keyboard layouts.
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #233761 -
Flags: review?(smontagu)
Assignee | ||
Updated•18 years ago
|
Attachment #233761 -
Flags: superreview?(roc)
Comment 2•18 years ago
|
||
Comment on attachment 233761 [details] [diff] [review]
Patch for 1.8 branch
>+ if (gdk_keymap_get_direction(NULL) == PANGO_DIRECTION_RTL)
>+ *aIsRTL = PR_TRUE;
>+ else
>+ *aIsRTL = PR_FALSE;
Make this
*aIsRTL = (gdk_keymap_get_direction(NULL) == PANGO_DIRECTION_RTL);
With that, r=smontagu
Assignee | ||
Comment 3•18 years ago
|
||
transferring smontagu's r+
Attachment #233761 -
Attachment is obsolete: true
Attachment #233766 -
Flags: superreview?(roc)
Attachment #233766 -
Flags: review+
Attachment #233761 -
Flags: superreview?(roc)
Attachment #233761 -
Flags: review?(smontagu)
Comment 4•18 years ago
|
||
Comment on attachment 233766 [details] [diff] [review]
Patch for 1.8 branch, addressed smontagu's review comment
Testing bug 348724, I discovered that gdk_keymap_get_direction() isn't very accurate: it returns PANGO_DIRECTION_LTR for the Hebrew keyboard in my distro, which says it is
$XKeyboardConfig: xkbdesc/symbols/il,v 1.9 2005/08/01 22:11:07 svu Exp $
Attachment #233766 -
Flags: review+ → review-
Simon, does that mean we shouldn't take this?
Comment 6•18 years ago
|
||
Comment on attachment 233766 [details] [diff] [review]
Patch for 1.8 branch, addressed smontagu's review comment
Well, I guess since it's only intended as a stopgap for the branch, it's still better than what we have now, especially since the branch didn't get bug 288839. We have to work out how to Do It Right in bug 348724.
Attachment #233766 -
Flags: review- → review+
Attachment #233766 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 7•18 years ago
|
||
Comment on attachment 233766 [details] [diff] [review]
Patch for 1.8 branch, addressed smontagu's review comment
Thanks Simon and Robert for reviews.
In fact, the current caret is incorrect for RTL languages. As the bidi caret haven't turned off for GTK back-end, this patch is necessary for branch to correct the caret's appearance.
Attachment #233766 -
Flags: approval1.8.1?
Comment 8•18 years ago
|
||
Comment on attachment 233766 [details] [diff] [review]
Patch for 1.8 branch, addressed smontagu's review comment
a=beltzner on behalf of drivers, please land on MOZILLA_1_8_BRANCH and mark fixed1.8.1
Attachment #233766 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Updated•18 years ago
|
Blocks: Persian-Fx2.0
Updated•18 years ago
|
Target Milestone: mozilla1.8.1beta1 → mozilla1.8.1beta2
Updated•18 years ago
|
Flags: blocking1.8.1?
Updated•18 years ago
|
Flags: blocking1.8.1? → blocking1.8.1+
Target Milestone: mozilla1.8.1beta2 → mozilla1.8.1
Updated•18 years ago
|
Whiteboard: [checkin needed (1.8 branch)]
Updated•18 years ago
|
Target Milestone: mozilla1.8.1 → mozilla1.8.1beta2
Comment 9•18 years ago
|
||
Did you mean to change the TM? :)
Target Milestone: mozilla1.8.1beta2 → mozilla1.8.1
Comment 10•18 years ago
|
||
Hey, I was just trying to follow the procedure specified on tinderbox and get the bug on the b2 blocker list. If bugs don't need to be on that list to be checked in the tinderbox page needs updating.
Comment 11•18 years ago
|
||
As per schrep's TM change on Aug 21st, we're not going to respin for this bug alone, as much as it sucks. I'll relnote it if it doesn't make it into beta2.
Keywords: relnote
Whiteboard: [checkin needed (1.8 branch)] → [Fx2b2 rider][checkin needed (1.8 branch)]
Comment 12•18 years ago
|
||
(In reply to comment #10)
> Hey, I was just trying to follow the procedure specified on tinderbox and get
> the bug on the b2 blocker list. If bugs don't need to be on that list to be
> checked in the tinderbox page needs updating.
Oops. Updated. Thanks.
Comment 13•18 years ago
|
||
Checked in to MOZILLA_1_8_BRANCH
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: [Fx2b2 rider][checkin needed (1.8 branch)] → [Fx2b2 rider]
Assignee | ||
Comment 14•18 years ago
|
||
Unfortunately, current patch doesn't check for GTK version, and the function had been added on version 2.6. So the patch prevents Mozilla to be compiled with GTK < 2.6. I'm going to attach a new patch and add the GTK version checking. But as GTK's implementation of layout direction has problems with Hebrew, we want to implement it ourselves. If I didn't attach the patch with new implementation, please check the version-checking patch.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 15•18 years ago
|
||
Seems the function have been on GTK+ since more than 4 years ago, but before 2.6 it used to strcmp the script name, and from 2.6, it's checking the codes of the layout.
Here are the patch to check the GTK+ version, but looks like nothing breaks without this patch.
I'm going to implement the better solution (checking the first level only, or checking based on the current level) soon.
That looks like a build-time check. Don't we really want a runtime check?
Assignee | ||
Comment 17•18 years ago
|
||
Every version of GTK+ has problems in the implementation. The old one doesn't support Persian, and the new one doesn't support Hebrew. I'm going to attached the fix for GKT+ on gnome-bug 116626. So I suggest to don't use GDK's impl. at all, for now.
The XKB-based code for trunk (bug 348724) which works well with both Arabic/Persian and Hebrew is ready. May I make the patch for trunk to get it for 1.8.1?
If there's no time to fix this issue, please close this bug as FIXED, as I was FIXED and I REOPENED it to add Hebrew support.
Assignee | ||
Comment 18•18 years ago
|
||
I'll attach the patch for 2.0.0.1 then.
Status: REOPENED → ASSIGNED
Flags: blocking1.8.1.1?
Comment 19•18 years ago
|
||
What's the status of this one? Am I right in saying there's a patch checked in already (fixed1.8.1), but you want another one for FF2.0.0.1?
Is attachment 236797 [details] [diff] [review] that patch?
Realistically this isn't going to block a release, but a fix would be great. If you round up reviews then request approval for 1.8.1.x.
Flags: wanted1.8.1.x+
Flags: blocking1.8.1.1?
Flags: blocking1.8.1.1-
Assignee | ||
Comment 20•18 years ago
|
||
Comment on attachment 236797 [details] [diff] [review]
Add GTK+ version cheking
It's not necessary.
Attachment #236797 -
Attachment is obsolete: true
Assignee | ||
Comment 21•18 years ago
|
||
Mark as FIXED (re-close), as the complete solution is not available, and won't be for 2.0.0.x releases.
Please remove "wanted1.8.1.x" flag.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
Comment 22•18 years ago
|
||
If you come up with a better approach for the remaining issues you should file a new bug to track it. mention the new bug here for reference, but trying to track a new patch in a closed bug is confusing.
Flags: wanted1.8.1.x+
Comment 23•17 years ago
|
||
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
You need to log in
before you can comment on or make changes to this bug.
Description
•