Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
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ç
LibreOffice
core
Commits
f4f5c047
Kaydet (Commit)
f4f5c047
authored
Kas 15, 2012
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtk-a11y: unwind re-enterancy / lifecycle hazard at least a little.
üst
10511acd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
atkwrapper.cxx
vcl/unx/gtk/a11y/atkwrapper.cxx
+14
-7
No files found.
vcl/unx/gtk/a11y/atkwrapper.cxx
Dosyayı görüntüle @
f4f5c047
...
@@ -323,10 +323,11 @@ wrapper_get_name( AtkObject *atk_obj )
...
@@ -323,10 +323,11 @@ wrapper_get_name( AtkObject *atk_obj )
if
(
obj
->
mpContext
)
if
(
obj
->
mpContext
)
{
{
uno
::
Reference
<
accessibility
::
XAccessibleContext
>
xContext
(
obj
->
mpContext
);
try
{
try
{
rtl
::
OString
aName
=
rtl
::
OString
aName
=
rtl
::
OUStringToOString
(
rtl
::
OUStringToOString
(
obj
->
mp
Context
->
getAccessibleName
(),
x
Context
->
getAccessibleName
(),
RTL_TEXTENCODING_UTF8
);
RTL_TEXTENCODING_UTF8
);
int
nCmp
=
atk_obj
->
name
?
rtl_str_compare
(
atk_obj
->
name
,
aName
.
getStr
()
)
:
-
1
;
int
nCmp
=
atk_obj
->
name
?
rtl_str_compare
(
atk_obj
->
name
,
aName
.
getStr
()
)
:
-
1
;
...
@@ -354,10 +355,11 @@ wrapper_get_description( AtkObject *atk_obj )
...
@@ -354,10 +355,11 @@ wrapper_get_description( AtkObject *atk_obj )
if
(
obj
->
mpContext
)
if
(
obj
->
mpContext
)
{
{
uno
::
Reference
<
accessibility
::
XAccessibleContext
>
xContext
(
obj
->
mpContext
);
try
{
try
{
rtl
::
OString
aDescription
=
rtl
::
OString
aDescription
=
rtl
::
OUStringToOString
(
rtl
::
OUStringToOString
(
obj
->
mp
Context
->
getAccessibleDescription
(),
x
Context
->
getAccessibleDescription
(),
RTL_TEXTENCODING_UTF8
);
RTL_TEXTENCODING_UTF8
);
g_free
(
atk_obj
->
description
);
g_free
(
atk_obj
->
description
);
...
@@ -382,8 +384,9 @@ wrapper_get_n_children( AtkObject *atk_obj )
...
@@ -382,8 +384,9 @@ wrapper_get_n_children( AtkObject *atk_obj )
if
(
obj
->
mpContext
)
if
(
obj
->
mpContext
)
{
{
uno
::
Reference
<
accessibility
::
XAccessibleContext
>
xContext
(
obj
->
mpContext
);
try
{
try
{
n
=
obj
->
mp
Context
->
getAccessibleChildCount
();
n
=
x
Context
->
getAccessibleChildCount
();
}
}
catch
(
const
uno
::
Exception
&
e
)
{
catch
(
const
uno
::
Exception
&
e
)
{
OSL_FAIL
(
"Exception in getAccessibleChildCount()"
);
OSL_FAIL
(
"Exception in getAccessibleChildCount()"
);
...
@@ -411,9 +414,10 @@ wrapper_ref_child( AtkObject *atk_obj,
...
@@ -411,9 +414,10 @@ wrapper_ref_child( AtkObject *atk_obj,
if
(
obj
->
mpContext
)
if
(
obj
->
mpContext
)
{
{
uno
::
Reference
<
accessibility
::
XAccessibleContext
>
xContext
(
obj
->
mpContext
);
try
{
try
{
uno
::
Reference
<
accessibility
::
XAccessible
>
xAccessible
=
uno
::
Reference
<
accessibility
::
XAccessible
>
xAccessible
=
obj
->
mp
Context
->
getAccessibleChild
(
i
);
x
Context
->
getAccessibleChild
(
i
);
child
=
atk_object_wrapper_ref
(
xAccessible
);
child
=
atk_object_wrapper_ref
(
xAccessible
);
}
}
...
@@ -435,8 +439,9 @@ wrapper_get_index_in_parent( AtkObject *atk_obj )
...
@@ -435,8 +439,9 @@ wrapper_get_index_in_parent( AtkObject *atk_obj )
if
(
obj
->
mpContext
)
if
(
obj
->
mpContext
)
{
{
uno
::
Reference
<
accessibility
::
XAccessibleContext
>
xContext
(
obj
->
mpContext
);
try
{
try
{
i
=
obj
->
mp
Context
->
getAccessibleIndexInParent
();
i
=
x
Context
->
getAccessibleIndexInParent
();
#ifdef ENABLE_TRACING
#ifdef ENABLE_TRACING
fprintf
(
stderr
,
"%p->getAccessibleIndexInParent() returned: %u
\n
"
,
fprintf
(
stderr
,
"%p->getAccessibleIndexInParent() returned: %u
\n
"
,
...
@@ -460,9 +465,10 @@ wrapper_ref_relation_set( AtkObject *atk_obj )
...
@@ -460,9 +465,10 @@ wrapper_ref_relation_set( AtkObject *atk_obj )
if
(
obj
->
mpContext
)
if
(
obj
->
mpContext
)
{
{
uno
::
Reference
<
accessibility
::
XAccessibleContext
>
xContext
(
obj
->
mpContext
);
try
{
try
{
uno
::
Reference
<
accessibility
::
XAccessibleRelationSet
>
xRelationSet
(
uno
::
Reference
<
accessibility
::
XAccessibleRelationSet
>
xRelationSet
(
obj
->
mp
Context
->
getAccessibleRelationSet
()
x
Context
->
getAccessibleRelationSet
()
);
);
sal_Int32
nRelations
=
xRelationSet
.
is
()
?
xRelationSet
->
getRelationCount
()
:
0
;
sal_Int32
nRelations
=
xRelationSet
.
is
()
?
xRelationSet
->
getRelationCount
()
:
0
;
...
@@ -505,9 +511,10 @@ wrapper_ref_state_set( AtkObject *atk_obj )
...
@@ -505,9 +511,10 @@ wrapper_ref_state_set( AtkObject *atk_obj )
if
(
obj
->
mpContext
)
if
(
obj
->
mpContext
)
{
{
uno
::
Reference
<
accessibility
::
XAccessibleContext
>
xContext
(
obj
->
mpContext
);
try
{
try
{
uno
::
Reference
<
accessibility
::
XAccessibleStateSet
>
xStateSet
(
uno
::
Reference
<
accessibility
::
XAccessibleStateSet
>
xStateSet
(
obj
->
mp
Context
->
getAccessibleStateSet
());
x
Context
->
getAccessibleStateSet
());
if
(
xStateSet
.
is
()
)
if
(
xStateSet
.
is
()
)
{
{
...
...
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