Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
07c66519
Kaydet (Commit)
07c66519
authored
Ara 18, 2016
tarafından
Colomban Wendling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
GTK: Ensure styles are valid when retrieving them for accessibility purposes
üst
a31a43ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
ScintillaGTKAccessible.cxx
scintilla/gtk/ScintillaGTKAccessible.cxx
+4
-3
ScintillaGTKAccessible.h
scintilla/gtk/ScintillaGTKAccessible.h
+6
-0
No files found.
scintilla/gtk/ScintillaGTKAccessible.cxx
Dosyayı görüntüle @
07c66519
...
...
@@ -478,7 +478,7 @@ void ScintillaGTKAccessible::GetCharacterExtents(int charOffset,
}
else
if
(
nextByteOffset
>
byteOffset
)
{
/* maybe next position was on the next line or something.
* just compute the expected character width */
int
style
=
sci
->
pdoc
->
StyleAt
(
byteOffset
);
int
style
=
StyleAt
(
byteOffset
,
true
);
int
len
=
nextByteOffset
-
byteOffset
;
char
*
ch
=
new
char
[
len
+
1
];
sci
->
pdoc
->
GetCharRange
(
ch
,
byteOffset
,
len
);
...
...
@@ -556,13 +556,14 @@ AtkAttributeSet *ScintillaGTKAccessible::GetRunAttributes(int charOffset, int *s
g_return_val_if_fail
(
byteOffset
<=
length
,
NULL
);
const
char
style
=
sci
->
pdoc
->
StyleAt
(
byteOffset
);
const
char
style
=
StyleAt
(
byteOffset
,
true
);
// compute the range for this style
Position
startByte
=
byteOffset
;
// when going backwards, we know the style is already computed
while
(
startByte
>
0
&&
sci
->
pdoc
->
StyleAt
((
startByte
)
-
1
)
==
style
)
(
startByte
)
--
;
Position
endByte
=
byteOffset
+
1
;
while
(
endByte
<
length
&&
sci
->
pdoc
->
StyleAt
(
endByt
e
)
==
style
)
while
(
endByte
<
length
&&
StyleAt
(
endByte
,
tru
e
)
==
style
)
(
endByte
)
++
;
CharacterRangeFromByteRange
(
startByte
,
endByte
,
startChar
,
endChar
);
...
...
scintilla/gtk/ScintillaGTKAccessible.h
Dosyayı görüntüle @
07c66519
...
...
@@ -73,6 +73,12 @@ private:
return
sci
->
pdoc
->
MovePositionOutsideChar
(
pos
+
1
,
1
,
true
);
}
int
StyleAt
(
Position
position
,
bool
ensureStyle
=
false
)
{
if
(
ensureStyle
)
sci
->
pdoc
->
EnsureStyledTo
(
position
);
return
sci
->
pdoc
->
StyleAt
(
position
);
}
// For AtkText
gchar
*
GetTextRangeUTF8
(
Position
startByte
,
Position
endByte
);
gchar
*
GetText
(
int
startChar
,
int
endChar
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment