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
16b9b1aa
Kaydet (Commit)
16b9b1aa
authored
Eki 17, 2011
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtk3: fix display changed signal emissions
üst
81d1ba27
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
14 deletions
+13
-14
gendisp.cxx
vcl/generic/app/gendisp.cxx
+8
-0
gendisp.hxx
vcl/inc/generic/gendisp.hxx
+1
-0
randrwrapper.cxx
vcl/unx/generic/app/randrwrapper.cxx
+2
-2
gtkdata.cxx
vcl/unx/gtk/app/gtkdata.cxx
+2
-12
No files found.
vcl/generic/app/gendisp.cxx
Dosyayı görüntüle @
16b9b1aa
...
@@ -73,6 +73,12 @@ void SalGenericDisplay::deregisterFrame( SalFrame* pFrame )
...
@@ -73,6 +73,12 @@ void SalGenericDisplay::deregisterFrame( SalFrame* pFrame )
m_aFrames
.
remove
(
pFrame
);
m_aFrames
.
remove
(
pFrame
);
}
}
void
SalGenericDisplay
::
emitDisplayChanged
()
{
if
(
!
m_aFrames
.
empty
()
)
m_aFrames
.
front
()
->
CallCallback
(
SALEVENT_DISPLAYCHANGED
,
0
);
}
bool
SalGenericDisplay
::
DispatchInternalEvent
()
bool
SalGenericDisplay
::
DispatchInternalEvent
()
{
{
void
*
pData
=
NULL
;
void
*
pData
=
NULL
;
...
@@ -152,4 +158,6 @@ bool SalGenericDisplay::HasUserEvents() const
...
@@ -152,4 +158,6 @@ bool SalGenericDisplay::HasUserEvents() const
return
bRet
;
return
bRet
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/inc/generic/gendisp.hxx
Dosyayı görüntüle @
16b9b1aa
...
@@ -68,6 +68,7 @@ public:
...
@@ -68,6 +68,7 @@ public:
virtual
void
registerFrame
(
SalFrame
*
pFrame
);
virtual
void
registerFrame
(
SalFrame
*
pFrame
);
virtual
void
deregisterFrame
(
SalFrame
*
pFrame
);
virtual
void
deregisterFrame
(
SalFrame
*
pFrame
);
void
emitDisplayChanged
();
// Event handling
// Event handling
virtual
void
PostUserEvent
()
=
0
;
virtual
void
PostUserEvent
()
=
0
;
...
...
vcl/unx/generic/app/randrwrapper.cxx
Dosyayı görüntüle @
16b9b1aa
...
@@ -350,8 +350,8 @@ int SalDisplay::processRandREvent( XEvent* pEvent )
...
@@ -350,8 +350,8 @@ int SalDisplay::processRandREvent( XEvent* pEvent )
#endif
#endif
}
}
}
}
if
(
bNotify
&&
!
m_aFrames
.
empty
()
)
if
(
bNotify
)
m_aFrames
.
front
()
->
CallCallback
(
SALEVENT_DISPLAYCHANGED
,
0
);
emitDisplayChanged
(
);
}
}
}
}
#else
#else
...
...
vcl/unx/gtk/app/gtkdata.cxx
Dosyayı görüntüle @
16b9b1aa
...
@@ -204,24 +204,14 @@ GdkFilterReturn GtkSalDisplay::filterGdkEvent( GdkXEvent* sys_event,
...
@@ -204,24 +204,14 @@ GdkFilterReturn GtkSalDisplay::filterGdkEvent( GdkXEvent* sys_event,
void
GtkSalDisplay
::
screenSizeChanged
(
GdkScreen
*
pScreen
)
void
GtkSalDisplay
::
screenSizeChanged
(
GdkScreen
*
pScreen
)
{
{
#if !GTK_CHECK_VERSION(3,0,0)
if
(
pScreen
)
if
(
pScreen
)
m_aFrames
.
front
()
->
CallCallback
(
SALEVENT_DISPLAYCHANGED
,
0
);
emitDisplayChanged
();
#else
(
void
)
pScreen
;
#warning FIXME: implement screenSizeChanged ...
#endif
}
}
void
GtkSalDisplay
::
monitorsChanged
(
GdkScreen
*
pScreen
)
void
GtkSalDisplay
::
monitorsChanged
(
GdkScreen
*
pScreen
)
{
{
#if !GTK_CHECK_VERSION(3,0,0)
if
(
pScreen
)
if
(
pScreen
)
m_aFrames
.
front
()
->
CallCallback
(
SALEVENT_DISPLAYCHANGED
,
0
);
emitDisplayChanged
();
#else
(
void
)
pScreen
;
#warning FIXME: implement monitorsChanged for gtk3
#endif
}
}
extern
"C"
extern
"C"
...
...
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