rpms/thunderbird/devel firefox-1.5-pango-cursor-position.patch, NONE, 1.1 thunderbird.spec, 1.78, 1.79
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Sep 6 07:25:58 UTC 2006
- Previous message (by thread): rpms/firefox/devel firefox-1.5-pango-cursor-position.patch, NONE, 1.1 firefox.spec, 1.149, 1.150
- Next message (by thread): rpms/net-snmp/devel net-snmp-5.3.1-tcp-udp-mib-byteorder.patch, NONE, 1.1 net-snmp.spec, 1.86, 1.87 net-snmp-5.3.1-byteorder.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: caillon
Update of /cvs/dist/rpms/thunderbird/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv26798
Modified Files:
thunderbird.spec
Added Files:
firefox-1.5-pango-cursor-position.patch
Log Message:
* Wed Sep 6 2006 Christopher Aillon <caillon at redhat.com> - 1.5.0.5-6
- Fix for cursor position in editor widgets by tagoh and behdad (#198759)
firefox-1.5-pango-cursor-position.patch:
nsFontMetricsPango.cpp | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
--- NEW FILE firefox-1.5-pango-cursor-position.patch ---
Index: mozilla/gfx/src/gtk/nsFontMetricsPango.cpp
===================================================================
RCS file: /cvsroot/mozilla/gfx/src/gtk/nsFontMetricsPango.cpp,v
retrieving revision 1.24
diff -d -u -p -6 -r1.24 nsFontMetricsPango.cpp
--- mozilla/gfx/src/gtk/nsFontMetricsPango.cpp 25 Aug 2006 01:02:34 -0000 1.24
+++ mozilla/gfx/src/gtk/nsFontMetricsPango.cpp 6 Sep 2006 07:01:49 -0000
@@ -948,13 +948,12 @@ nsFontMetricsPango::GetClusterInfo(const
PRInt32
nsFontMetricsPango::GetPosition(const PRUnichar *aText, PRUint32 aLength,
nsPoint aPt)
{
int trailing = 0;
int inx = 0;
- gboolean found = FALSE;
const gchar *curChar;
PRInt32 retval = 0;
float f = mDeviceContext->AppUnitsToDevUnits();
PangoLayout *layout = pango_layout_new(mPangoContext);
@@ -974,28 +973,18 @@ nsFontMetricsPango::GetPosition(const PR
}
// Set up the pango layout
pango_layout_set_text(layout, text, strlen(text));
FixupSpaceWidths(layout, text);
- found = pango_layout_xy_to_index(layout, localX, localY,
- &inx, &trailing);
+ pango_layout_xy_to_index(layout, localX, localY,
+ &inx, &trailing);
// Convert the index back to the utf-16 index
curChar = text;
- // Jump to the end if it's not found.
- if (!found) {
- if (inx == 0)
- retval = 0;
- else if (trailing)
- retval = aLength;
-
- goto loser;
- }
-
for (PRUint32 curOffset=0; curOffset < aLength;
curOffset++, curChar = g_utf8_find_next_char(curChar, NULL)) {
// Check for a match before checking for a surrogate pair
if (curChar - text == inx) {
retval = curOffset;
Index: thunderbird.spec
===================================================================
RCS file: /cvs/dist/rpms/thunderbird/devel/thunderbird.spec,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- thunderbird.spec 5 Sep 2006 08:45:49 -0000 1.78
+++ thunderbird.spec 6 Sep 2006 07:25:56 -0000 1.79
@@ -8,7 +8,7 @@
Summary: Mozilla Thunderbird mail/newsgroup client
Name: thunderbird
Version: 1.5.0.5
-Release: 5
+Release: 6
Epoch: 0
URL: http://www.mozilla.org/projects/thunderbird/
License: MPL
@@ -49,6 +49,7 @@
# font system fixes
Patch81: firefox-1.5-nopangoxft.patch
Patch82: firefox-1.5-pango-mathml.patch
+Patch83: firefox-1.5-pango-cursor-position.patch
# patches from upstream (Patch100+)
Patch102: thunderbird-1.5-pango-start.patch
@@ -97,6 +98,8 @@
%patch25 -p0
%patch42 -p0
%patch81 -p1
+%patch82 -p1
+%patch83 -p1
%patch102 -p1
@@ -210,6 +213,9 @@
#===============================================================================
%changelog
+* Wed Sep 6 2006 Christopher Aillon <caillon at redhat.com> - 1.5.0.5-6
+- Fix for cursor position in editor widgets by tagoh and behdad (#198759)
+
* Tue Sep 5 2006 Christopher Aillon <caillon at redhat.com> - 1.5.0.5-5
- Update nopangoxft.patch
- Fix rendering of MathML thanks to Behdad Esfahbod.
- Previous message (by thread): rpms/firefox/devel firefox-1.5-pango-cursor-position.patch, NONE, 1.1 firefox.spec, 1.149, 1.150
- Next message (by thread): rpms/net-snmp/devel net-snmp-5.3.1-tcp-udp-mib-byteorder.patch, NONE, 1.1 net-snmp.spec, 1.86, 1.87 net-snmp-5.3.1-byteorder.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list