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
67d0aee9
Kaydet (Commit)
67d0aee9
authored
Haz 30, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtk3: draw disabled menubars entries with disabled text color
Change-Id: I9188c6071f62d13a688c1eb6b14b1ac3f7dc77d4
üst
a1b73b37
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
menu.cxx
vcl/source/window/menu.cxx
+5
-4
menubarwindow.cxx
vcl/source/window/menubarwindow.cxx
+4
-0
No files found.
vcl/source/window/menu.cxx
Dosyayı görüntüle @
67d0aee9
...
...
@@ -1878,7 +1878,7 @@ void Menu::ImplPaint(vcl::RenderContext& rRenderContext,
// contained. The application itself should check for this!
// Otherwise it could happen entries are disabled due to
// asynchronous loading
if
(
!
pData
->
bEnabled
)
if
(
!
pData
->
bEnabled
||
!
pWindow
->
IsEnabled
()
)
{
nTextStyle
|=
DrawTextFlags
::
Disable
;
nSymbolStyle
|=
DrawSymbolFlags
::
Disable
;
...
...
@@ -1892,7 +1892,7 @@ void Menu::ImplPaint(vcl::RenderContext& rRenderContext,
if
(
rRenderContext
.
IsNativeControlSupported
(
CTRL_MENU_POPUP
,
PART_MENU_SEPARATOR
))
{
ControlState
nState
=
ControlState
::
NONE
;
if
(
pData
->
bEnabled
)
if
(
pData
->
bEnabled
&&
!
pWindow
->
IsEnabled
()
)
nState
|=
ControlState
::
ENABLED
;
if
(
bHighlighted
)
nState
|=
ControlState
::
SELECTED
;
...
...
@@ -1948,7 +1948,7 @@ void Menu::ImplPaint(vcl::RenderContext& rRenderContext,
if
(
pData
->
bChecked
)
nState
|=
ControlState
::
PRESSED
;
if
(
pData
->
bEnabled
)
if
(
pData
->
bEnabled
&&
!
pWindow
->
IsEnabled
()
)
nState
|=
ControlState
::
ENABLED
;
if
(
bHighlighted
)
...
...
@@ -2019,6 +2019,7 @@ void Menu::ImplPaint(vcl::RenderContext& rRenderContext,
aTmpPos
.
Y
()
=
aPos
.
Y
();
aTmpPos
.
Y
()
+=
nTextOffsetY
;
DrawTextFlags
nStyle
=
nTextStyle
|
DrawTextFlags
::
Mnemonic
;
if
(
pData
->
bIsTemporary
)
nStyle
|=
DrawTextFlags
::
Disable
;
MetricVector
*
pVector
=
bLayout
?
&
mpLayoutData
->
m_aUnicodeBoundRects
:
NULL
;
...
...
@@ -2088,7 +2089,7 @@ void Menu::ImplPaint(vcl::RenderContext& rRenderContext,
aSpacing
=
nOuterSpaceX
;
}
if
(
pData
->
bEnabled
)
if
(
pData
->
bEnabled
&&
!
pWindow
->
IsEnabled
()
)
nState
|=
ControlState
::
ENABLED
;
if
(
bHighlighted
)
nState
|=
ControlState
::
SELECTED
;
...
...
vcl/source/window/menubarwindow.cxx
Dosyayı görüntüle @
67d0aee9
...
...
@@ -993,6 +993,10 @@ void MenuBarWindow::StateChanged( StateChangedType nType )
ApplySettings
(
*
this
);
Invalidate
();
}
else
if
(
nType
==
StateChangedType
::
Enable
)
{
Invalidate
();
}
else
if
(
pMenu
)
{
pMenu
->
ImplKillLayoutData
();
...
...
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