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
9ce71b67
Kaydet (Commit)
9ce71b67
authored
May 29, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
menu: call ApplySettings on places that InitSettings was called
Change-Id: I5519cf6a8e77a7da27fa883f2f7695ae4371af88
üst
b0922150
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
menubarwindow.cxx
vcl/source/window/menubarwindow.cxx
+5
-0
menufloatingwindow.cxx
vcl/source/window/menufloatingwindow.cxx
+5
-0
No files found.
vcl/source/window/menubarwindow.cxx
Dosyayı görüntüle @
9ce71b67
...
...
@@ -990,6 +990,7 @@ void MenuBarWindow::StateChanged( StateChangedType nType )
if
(
nType
==
StateChangedType
::
ControlForeground
||
nType
==
StateChangedType
::
ControlBackground
)
{
ApplySettings
(
*
this
);
Invalidate
();
}
else
if
(
pMenu
)
...
...
@@ -1003,6 +1004,8 @@ void MenuBarWindow::LayoutChanged()
if
(
!
pMenu
)
return
;
ApplySettings
(
*
this
);
// if the font was changed.
long
nHeight
=
pMenu
->
ImplCalcSize
(
this
).
Height
();
...
...
@@ -1023,6 +1026,7 @@ void MenuBarWindow::LayoutChanged()
void
MenuBarWindow
::
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
)
{
Window
::
ApplySettings
(
rRenderContext
);
const
StyleSettings
&
rStyleSettings
=
rRenderContext
.
GetSettings
().
GetStyleSettings
();
SetPointFont
(
rRenderContext
,
rStyleSettings
.
GetMenuFont
());
...
...
@@ -1083,6 +1087,7 @@ void MenuBarWindow::DataChanged( const DataChangedEvent& rDCEvt )
((
rDCEvt
.
GetType
()
==
DataChangedEventType
::
SETTINGS
)
&&
(
rDCEvt
.
GetFlags
()
&
AllSettingsFlags
::
STYLE
))
)
{
ApplySettings
(
*
this
);
ImplInitStyleSettings
();
LayoutChanged
();
}
...
...
vcl/source/window/menufloatingwindow.cxx
Dosyayı görüntüle @
9ce71b67
...
...
@@ -46,6 +46,7 @@ MenuFloatingWindow::MenuFloatingWindow( Menu* pMen, vcl::Window* pParent, WinBit
bKeyInput
=
false
;
EnableSaveBackground
();
ApplySettings
(
*
this
);
SetPopupModeEndHdl
(
LINK
(
this
,
MenuFloatingWindow
,
PopupEnd
)
);
...
...
@@ -120,6 +121,8 @@ void MenuFloatingWindow::Resize()
void
MenuFloatingWindow
::
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
)
{
FloatingWindow
::
ApplySettings
(
rRenderContext
);
const
StyleSettings
&
rStyleSettings
=
rRenderContext
.
GetSettings
().
GetStyleSettings
();
SetPointFont
(
rRenderContext
,
rStyleSettings
.
GetMenuFont
());
...
...
@@ -1214,6 +1217,7 @@ void MenuFloatingWindow::StateChanged( StateChangedType nType )
if
(
(
nType
==
StateChangedType
::
ControlForeground
)
||
(
nType
==
StateChangedType
::
ControlBackground
)
)
{
ApplySettings
(
*
this
);
Invalidate
();
}
}
...
...
@@ -1227,6 +1231,7 @@ void MenuFloatingWindow::DataChanged( const DataChangedEvent& rDCEvt )
((
rDCEvt
.
GetType
()
==
DataChangedEventType
::
SETTINGS
)
&&
(
rDCEvt
.
GetFlags
()
&
AllSettingsFlags
::
STYLE
))
)
{
ApplySettings
(
*
this
);
Invalidate
();
}
}
...
...
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