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
f4305875
Kaydet (Commit)
f4305875
authored
Haz 30, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtk3: detect if a new frame is just a tooltip
Change-Id: I906f53ca5428b51077b4ac28462c2e8827f2a31f
üst
6b2006c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
SalGtkPicker.cxx
vcl/unx/gtk/fpicker/SalGtkPicker.cxx
+17
-6
No files found.
vcl/unx/gtk/fpicker/SalGtkPicker.cxx
Dosyayı görüntüle @
f4305875
...
...
@@ -25,6 +25,8 @@
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
#include <com/sun/star/uri/ExternalUriReferenceTranslator.hpp>
#include <com/sun/star/accessibility/XAccessibleContext.hpp>
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <comphelper/processfactory.hxx>
#include <rtl/process.h>
#include <osl/diagnose.h>
...
...
@@ -132,15 +134,24 @@ RunDialog::~RunDialog()
g_source_remove_by_user_data
(
this
);
}
void
SAL_CALL
RunDialog
::
windowOpened
(
const
::
com
::
sun
::
star
::
lang
::
EventObject
&
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
void
SAL_CALL
RunDialog
::
windowOpened
(
const
css
::
lang
::
EventObject
&
e
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
#if !GTK_CHECK_VERSION(3,0,0)
SolarMutexGuard
g
;
//Don't popdown dialogs if a tooltip appears elsewhere, that's ok, but do pop down
//if another dialog/frame is launched.
css
::
uno
::
Reference
<
css
::
accessibility
::
XAccessible
>
xAccessible
(
e
.
Source
,
css
::
uno
::
UNO_QUERY
);
if
(
xAccessible
.
is
())
{
css
::
uno
::
Reference
<
css
::
accessibility
::
XAccessibleContext
>
xContext
(
xAccessible
->
getAccessibleContext
());
if
(
xContext
.
is
()
&&
xContext
->
getAccessibleRole
()
==
css
::
accessibility
::
AccessibleRole
::
TOOL_TIP
)
{
return
;
}
}
g_timeout_add_full
(
G_PRIORITY_HIGH_IDLE
,
0
,
reinterpret_cast
<
GSourceFunc
>
(
canceldialog
),
this
,
NULL
);
#else
SAL_WARN
(
"vcl"
,
"ignoring windowOpened, because gtk3 dialog is probably not modal as expected and a tooltip was triggered"
);
#endif
}
void
SAL_CALL
RunDialog
::
queryTermination
(
const
::
com
::
sun
::
star
::
lang
::
EventObject
&
)
...
...
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