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
093d7b81
Kaydet (Commit)
093d7b81
authored
Haz 26, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: tdf#92293 gtk3: get a11y working
Change-Id: I89cfde9b4c97852d36817b716ac08bd32096915b
üst
6d0a9ccf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
4 deletions
+21
-4
gtkframe.hxx
vcl/inc/unx/gtk/gtkframe.hxx
+1
-0
atkbridge.cxx
vcl/unx/gtk/a11y/atkbridge.cxx
+0
-4
atkfactory.cxx
vcl/unx/gtk/a11y/atkfactory.cxx
+5
-0
gtksalframe.cxx
vcl/unx/gtk/window/gtksalframe.cxx
+15
-0
No files found.
vcl/inc/unx/gtk/gtkframe.hxx
Dosyayı görüntüle @
093d7b81
...
@@ -471,6 +471,7 @@ public:
...
@@ -471,6 +471,7 @@ public:
extern
"C"
{
extern
"C"
{
GType
ooo_fixed_get_type
();
GType
ooo_fixed_get_type
();
AtkObject
*
ooo_fixed_get_accessible
(
GtkWidget
*
obj
);
}
// extern "C"
}
// extern "C"
...
...
vcl/unx/gtk/a11y/atkbridge.cxx
Dosyayı görüntüle @
093d7b81
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
bool
InitAtkBridge
()
bool
InitAtkBridge
()
{
{
#if !GTK_CHECK_VERSION(3,0,0)
const
char
*
pVersion
=
atk_get_toolkit_version
();
const
char
*
pVersion
=
atk_get_toolkit_version
();
if
(
!
pVersion
)
if
(
!
pVersion
)
return
false
;
return
false
;
...
@@ -56,16 +55,13 @@ bool InitAtkBridge()
...
@@ -56,16 +55,13 @@ bool InitAtkBridge()
AtkRegistry
*
registry
=
atk_get_default_registry
();
AtkRegistry
*
registry
=
atk_get_default_registry
();
if
(
registry
)
if
(
registry
)
atk_registry_set_factory_type
(
registry
,
OOO_TYPE_FIXED
,
OOO_TYPE_WRAPPER_FACTORY
);
atk_registry_set_factory_type
(
registry
,
OOO_TYPE_FIXED
,
OOO_TYPE_WRAPPER_FACTORY
);
#endif
return
true
;
return
true
;
}
}
void
DeInitAtkBridge
()
void
DeInitAtkBridge
()
{
{
#if !GTK_CHECK_VERSION(3,0,0)
restore_gail_window_vtable
();
restore_gail_window_vtable
();
#endif
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/unx/gtk/a11y/atkfactory.cxx
Dosyayı görüntüle @
093d7b81
...
@@ -140,6 +140,11 @@ wrapper_factory_create_accessible( GObject *obj )
...
@@ -140,6 +140,11 @@ wrapper_factory_create_accessible( GObject *obj )
return
NULL
;
return
NULL
;
}
}
AtkObject
*
ooo_fixed_get_accessible
(
GtkWidget
*
obj
)
{
return
wrapper_factory_create_accessible
(
G_OBJECT
(
obj
));
}
static
void
static
void
wrapper_factory_class_init
(
AtkObjectFactoryClass
*
klass
)
wrapper_factory_class_init
(
AtkObjectFactoryClass
*
klass
)
{
{
...
...
vcl/unx/gtk/window/gtksalframe.cxx
Dosyayı görüntüle @
093d7b81
...
@@ -970,6 +970,17 @@ void GtkSalFrame::resizeWindow( long nWidth, long nHeight )
...
@@ -970,6 +970,17 @@ void GtkSalFrame::resizeWindow( long nWidth, long nHeight )
window_resize
(
nWidth
,
nHeight
);
window_resize
(
nWidth
,
nHeight
);
}
}
#if GTK_CHECK_VERSION(3,2,0)
static
void
ooo_fixed_class_init
(
GtkFixedClass
*
klass
)
{
GtkWidgetClass
*
widget_class
=
GTK_WIDGET_CLASS
(
klass
);
widget_class
->
get_accessible
=
ooo_fixed_get_accessible
;
}
#endif
/*
/*
* Always use a sub-class of GtkFixed we can tag for a11y. This allows us to
* Always use a sub-class of GtkFixed we can tag for a11y. This allows us to
* utilize GAIL for the toplevel window and toolkit implementation incl.
* utilize GAIL for the toplevel window and toolkit implementation incl.
...
@@ -987,7 +998,11 @@ ooo_fixed_get_type()
...
@@ -987,7 +998,11 @@ ooo_fixed_get_type()
sizeof
(
GtkFixedClass
),
sizeof
(
GtkFixedClass
),
nullptr
,
/* base init */
nullptr
,
/* base init */
nullptr
,
/* base finalize */
nullptr
,
/* base finalize */
#if GTK_CHECK_VERSION(3,2,0)
reinterpret_cast
<
GClassInitFunc
>
(
ooo_fixed_class_init
),
/* class init */
#else
nullptr
,
/* class init */
nullptr
,
/* class init */
#endif
nullptr
,
/* class finalize */
nullptr
,
/* class finalize */
NULL
,
/* class data */
NULL
,
/* class data */
sizeof
(
GtkFixed
),
/* instance size */
sizeof
(
GtkFixed
),
/* instance size */
...
...
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