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
58b5f171
Kaydet (Commit)
58b5f171
authored
Eki 05, 2012
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more SolarMutexes
üst
839a18eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
gtksalmenu.cxx
vcl/unx/gtk/window/gtksalmenu.cxx
+7
-0
No files found.
vcl/unx/gtk/window/gtksalmenu.cxx
Dosyayı görüntüle @
58b5f171
...
@@ -407,6 +407,7 @@ GtkSalMenu::GtkSalMenu( sal_Bool bMenuBar ) :
...
@@ -407,6 +407,7 @@ GtkSalMenu::GtkSalMenu( sal_Bool bMenuBar ) :
GtkSalMenu
::~
GtkSalMenu
()
GtkSalMenu
::~
GtkSalMenu
()
{
{
SolarMutexGuard
aGuard
;
if
(
mbMenuBar
==
sal_True
)
if
(
mbMenuBar
==
sal_True
)
((
GtkSalFrame
*
)
mpFrame
)
->
SetMenu
(
NULL
);
((
GtkSalFrame
*
)
mpFrame
)
->
SetMenu
(
NULL
);
...
@@ -420,6 +421,7 @@ sal_Bool GtkSalMenu::VisibleMenuBar()
...
@@ -420,6 +421,7 @@ sal_Bool GtkSalMenu::VisibleMenuBar()
void
GtkSalMenu
::
InsertItem
(
SalMenuItem
*
pSalMenuItem
,
unsigned
nPos
)
void
GtkSalMenu
::
InsertItem
(
SalMenuItem
*
pSalMenuItem
,
unsigned
nPos
)
{
{
SolarMutexGuard
aGuard
;
GtkSalMenuItem
*
pItem
=
static_cast
<
GtkSalMenuItem
*>
(
pSalMenuItem
);
GtkSalMenuItem
*
pItem
=
static_cast
<
GtkSalMenuItem
*>
(
pSalMenuItem
);
if
(
nPos
==
MENU_APPEND
)
if
(
nPos
==
MENU_APPEND
)
...
@@ -432,11 +434,13 @@ void GtkSalMenu::InsertItem( SalMenuItem* pSalMenuItem, unsigned nPos )
...
@@ -432,11 +434,13 @@ void GtkSalMenu::InsertItem( SalMenuItem* pSalMenuItem, unsigned nPos )
void
GtkSalMenu
::
RemoveItem
(
unsigned
nPos
)
void
GtkSalMenu
::
RemoveItem
(
unsigned
nPos
)
{
{
SolarMutexGuard
aGuard
;
maItems
.
erase
(
maItems
.
begin
()
+
nPos
);
maItems
.
erase
(
maItems
.
begin
()
+
nPos
);
}
}
void
GtkSalMenu
::
SetSubMenu
(
SalMenuItem
*
pSalMenuItem
,
SalMenu
*
pSubMenu
,
unsigned
nPos
)
void
GtkSalMenu
::
SetSubMenu
(
SalMenuItem
*
pSalMenuItem
,
SalMenu
*
pSubMenu
,
unsigned
nPos
)
{
{
SolarMutexGuard
aGuard
;
GtkSalMenuItem
*
pItem
=
static_cast
<
GtkSalMenuItem
*
>
(
pSalMenuItem
);
GtkSalMenuItem
*
pItem
=
static_cast
<
GtkSalMenuItem
*
>
(
pSalMenuItem
);
GtkSalMenu
*
pGtkSubMenu
=
static_cast
<
GtkSalMenu
*
>
(
pSubMenu
);
GtkSalMenu
*
pGtkSubMenu
=
static_cast
<
GtkSalMenu
*
>
(
pSubMenu
);
...
@@ -492,6 +496,7 @@ void GtkSalMenu::SetFrame( const SalFrame* pFrame )
...
@@ -492,6 +496,7 @@ void GtkSalMenu::SetFrame( const SalFrame* pFrame )
const
GtkSalFrame
*
GtkSalMenu
::
GetFrame
()
const
const
GtkSalFrame
*
GtkSalMenu
::
GetFrame
()
const
{
{
SolarMutexGuard
aGuard
;
const
GtkSalMenu
*
pMenu
=
this
;
const
GtkSalMenu
*
pMenu
=
this
;
while
(
pMenu
&&
!
pMenu
->
mpFrame
)
while
(
pMenu
&&
!
pMenu
->
mpFrame
)
pMenu
=
pMenu
->
mpParentSalMenu
;
pMenu
=
pMenu
->
mpParentSalMenu
;
...
@@ -716,6 +721,7 @@ void GtkSalMenu::Deactivate( const gchar* aMenuCommand )
...
@@ -716,6 +721,7 @@ void GtkSalMenu::Deactivate( const gchar* aMenuCommand )
sal_Bool
GtkSalMenu
::
IsItemVisible
(
unsigned
nPos
)
sal_Bool
GtkSalMenu
::
IsItemVisible
(
unsigned
nPos
)
{
{
SolarMutexGuard
aGuard
;
sal_Bool
bVisible
=
sal_False
;
sal_Bool
bVisible
=
sal_False
;
if
(
nPos
<
maItems
.
size
()
)
if
(
nPos
<
maItems
.
size
()
)
...
@@ -734,6 +740,7 @@ void GtkSalMenu::EnableItem( unsigned, sal_Bool )
...
@@ -734,6 +740,7 @@ void GtkSalMenu::EnableItem( unsigned, sal_Bool )
void
GtkSalMenu
::
ShowItem
(
unsigned
nPos
,
sal_Bool
bShow
)
void
GtkSalMenu
::
ShowItem
(
unsigned
nPos
,
sal_Bool
bShow
)
{
{
SolarMutexGuard
aGuard
;
if
(
nPos
<
maItems
.
size
()
)
if
(
nPos
<
maItems
.
size
()
)
(
(
GtkSalMenuItem
*
)
maItems
[
nPos
]
)
->
mbVisible
=
bShow
;
(
(
GtkSalMenuItem
*
)
maItems
[
nPos
]
)
->
mbVisible
=
bShow
;
}
}
...
...
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