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
0f6fdd20
Kaydet (Commit)
0f6fdd20
authored
Ock 29, 2008
tarafından
Rüdiger Timm
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS vcl85_SRC680 (1.91.130); FILE MERGED
2007/12/03 16:40:31 pl 1.91.130.1: #i84179# remove libsn
üst
ccbda903
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
76 deletions
+6
-76
saldisp.cxx
vcl/unx/source/app/saldisp.cxx
+6
-76
No files found.
vcl/unx/source/app/saldisp.cxx
Dosyayı görüntüle @
0f6fdd20
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: saldisp.cxx,v $
*
* $Revision: 1.9
2
$
* $Revision: 1.9
3
$
*
* last change: $Author:
ihi $ $Date: 2008-01-14 16:25:15
$
* last change: $Author:
rt $ $Date: 2008-01-29 16:22:34
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -86,11 +86,6 @@ Status XineramaGetInfo(Display*, int, XRectangle*, unsigned char*, int*);
#endif
#endif
#ifdef HAVE_LIBSN
# define SN_API_NOT_YET_FROZEN
# include <libsn/sn.h>
#endif
#include <postx.h>
#include <salunx.h>
...
...
@@ -560,38 +555,12 @@ BOOL SalDisplay::BestVisual( Display *pDisplay,
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#ifdef HAVE_LIBSN
extern
"C"
{
static
void
SnErrorTrapPush
(
SnDisplay
*
display
,
Display
*
xdisplay
)
{
SalXLib
*
pXLib
=
GetX11SalData
()
->
GetLib
();
if
(
pXLib
)
pXLib
->
PushXErrorLevel
(
true
);
}
static
void
SnErrorTrapPop
(
SnDisplay
*
display
,
Display
*
xdisplay
)
{
SalXLib
*
pXLib
=
GetX11SalData
()
->
GetLib
();
XSync
(
xdisplay
,
False
);
// flush error queue
if
(
pXLib
)
pXLib
->
PopXErrorLevel
();
}
}
#endif
/* HAVE_LIBSN */
SalDisplay
::
SalDisplay
(
Display
*
display
)
:
mpInputMethod
(
NULL
),
mpFallbackFactory
(
NULL
),
pDisp_
(
display
),
m_pWMAdaptor
(
NULL
),
m_pDtIntegrator
(
NULL
),
m_pSnDisplay
(
NULL
),
m_pSnLauncheeContext
(
NULL
)
m_pDtIntegrator
(
NULL
)
{
#if OSL_DEBUG_LEVEL > 1
fprintf
(
stderr
,
"SalDisplay::SalDisplay()
\n
"
);
...
...
@@ -634,16 +603,6 @@ void SalDisplay::doDestruct()
X11SalGraphics
::
releaseGlyphPeer
();
DestroyFontCache
();
#ifdef HAVE_LIBSN
if
(
m_pSnLauncheeContext
)
{
sn_launchee_context_complete
(
m_pSnLauncheeContext
);
sn_launchee_context_unref
(
m_pSnLauncheeContext
);
}
if
(
m_pSnDisplay
)
sn_display_unref
(
m_pSnDisplay
);
#endif
/* HAVE_LIBSN */
if
(
IsDisplay
()
)
{
delete
mpInputMethod
,
mpInputMethod
=
(
SalI18N_InputMethod
*
)
ILLEGAL_POINTER
;
...
...
@@ -733,10 +692,10 @@ fd
return
TRUE
;
}
SalX11Display
::
SalX11Display
(
Display
*
display
,
bool
bHandleStartupNotification
)
SalX11Display
::
SalX11Display
(
Display
*
display
)
:
SalDisplay
(
display
)
{
Init
(
bHandleStartupNotification
);
Init
();
pXLib_
->
Insert
(
ConnectionNumber
(
pDisp_
),
this
,
...
...
@@ -888,11 +847,7 @@ void SalDisplay::initScreen( int nScreen ) const
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
void
SalDisplay
::
Init
(
bool
#ifdef HAVE_LIBSN
bHandleStartupNotification
#endif
)
void
SalDisplay
::
Init
()
{
for
(
size_t
i
=
0
;
i
<
POINTER_COUNT
;
i
++
)
aPointerCache_
[
i
]
=
None
;
...
...
@@ -1105,19 +1060,6 @@ bHandleStartupNotification
// initialize system settings update
m_pDtIntegrator
=
DtIntegrator
::
CreateDtIntegrator
();
#ifdef HAVE_LIBSN
if
(
bHandleStartupNotification
)
{
m_pSnDisplay
=
sn_display_new
(
pDisp_
,
SnErrorTrapPush
,
SnErrorTrapPop
);
m_pSnLauncheeContext
=
sn_launchee_context_new_from_environment
(
m_pSnDisplay
,
m_nDefaultScreen
);
# ifdef DBG_UTIL
if
(
!
m_pSnLauncheeContext
)
fprintf
(
stderr
,
"Failed to get launch feedback info from "
"DESKTOP_LAUNCH_ID/DESKTOP_LAUNCH_WINDOW
\n
"
);
# endif
/* DBG_UTIL */
}
#endif
/* HAVE_LIBSN */
#ifdef DBG_UTIL
PrintInfo
();
#endif
...
...
@@ -2365,18 +2307,6 @@ void SalX11Display::Yield()
XNextEvent
(
pDisp_
,
&
aEvent
);
#ifdef HAVE_LIBSN
if
(
m_pSnLauncheeContext
)
{
sn_launchee_context_complete
(
m_pSnLauncheeContext
);
sn_launchee_context_unref
(
m_pSnLauncheeContext
);
m_pSnLauncheeContext
=
NULL
;
}
if
(
m_pSnDisplay
&&
sn_display_process_event
(
m_pSnDisplay
,
&
aEvent
)
)
return
;
#endif
/* HAVE_LIBSN */
Dispatch
(
&
aEvent
);
#ifdef DBG_UTIL
...
...
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