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
f9694d88
Kaydet (Commit)
f9694d88
authored
Eki 01, 2012
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove UpdateNativeMenu2 and clear remove submenus on updates
üst
3a324cd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
gtksalmenu.hxx
vcl/inc/unx/gtk/gtksalmenu.hxx
+1
-2
gtksalmenu.cxx
vcl/unx/gtk/window/gtksalmenu.cxx
+8
-11
No files found.
vcl/inc/unx/gtk/gtksalmenu.hxx
Dosyayı görüntüle @
f9694d88
...
@@ -104,8 +104,7 @@ public:
...
@@ -104,8 +104,7 @@ public:
void
Deactivate
(
const
gchar
*
aMenuCommand
);
void
Deactivate
(
const
gchar
*
aMenuCommand
);
void
DisconnectFrame
();
void
DisconnectFrame
();
void
UpdateNativeMenu
();
void
UpdateNativeMenu
();
void
UpdateNativeMenu2
();
bool
PrepUpdate
();
bool
CanUpdate
();
};
};
class
GtkSalMenuItem
:
public
SalMenuItem
class
GtkSalMenuItem
:
public
SalMenuItem
...
...
vcl/unx/gtk/window/gtksalmenu.cxx
Dosyayı görüntüle @
f9694d88
...
@@ -75,7 +75,7 @@ rtl::OUString GetGtkKeyName( rtl::OUString keyName )
...
@@ -75,7 +75,7 @@ rtl::OUString GetGtkKeyName( rtl::OUString keyName )
return
aGtkKeyName
;
return
aGtkKeyName
;
}
}
bool
GtkSalMenu
::
Can
Update
()
bool
GtkSalMenu
::
Prep
Update
()
{
{
const
GtkSalFrame
*
pFrame
=
GetFrame
();
const
GtkSalFrame
*
pFrame
=
GetFrame
();
if
(
!
pFrame
)
if
(
!
pFrame
)
...
@@ -101,14 +101,9 @@ bool GtkSalMenu::CanUpdate()
...
@@ -101,14 +101,9 @@ bool GtkSalMenu::CanUpdate()
return
true
;
return
true
;
}
}
void
GtkSalMenu
::
UpdateNativeMenu2
()
{
UpdateNativeMenu
();
}
void
GtkSalMenu
::
UpdateNativeMenu
(
)
void
GtkSalMenu
::
UpdateNativeMenu
(
)
{
{
if
(
!
Can
Update
())
if
(
!
Prep
Update
())
return
;
return
;
Menu
*
pVCLMenu
=
GetMenu
();
Menu
*
pVCLMenu
=
GetMenu
();
GLOMenu
*
pLOMenu
=
G_LO_MENU
(
GetMenuModel
()
);
GLOMenu
*
pLOMenu
=
G_LO_MENU
(
GetMenuModel
()
);
...
@@ -182,13 +177,11 @@ void GtkSalMenu::UpdateNativeMenu( )
...
@@ -182,13 +177,11 @@ void GtkSalMenu::UpdateNativeMenu( )
}
}
GtkSalMenu
*
pSubmenu
=
pSalMenuItem
->
mpSubMenu
;
GtkSalMenu
*
pSubmenu
=
pSalMenuItem
->
mpSubMenu
;
GLOMenu
*
pSubMenuModel
=
g_lo_menu_get_submenu_from_item_in_section
(
pLOMenu
,
nSection
,
nItemPos
);
if
(
pSubmenu
&&
pSubmenu
->
GetMenu
()
)
if
(
pSubmenu
&&
pSubmenu
->
GetMenu
()
)
{
{
NativeSetItemCommand
(
nSection
,
nItemPos
,
nId
,
aNativeCommand
,
itemBits
,
FALSE
,
TRUE
);
NativeSetItemCommand
(
nSection
,
nItemPos
,
nId
,
aNativeCommand
,
itemBits
,
FALSE
,
TRUE
);
GLOMenu
*
pSubMenuModel
=
g_lo_menu_get_submenu_from_item_in_section
(
pLOMenu
,
nSection
,
nItemPos
);
if
(
pSubMenuModel
==
NULL
)
if
(
pSubMenuModel
==
NULL
)
{
{
pSubMenuModel
=
g_lo_menu_new
();
pSubMenuModel
=
g_lo_menu_new
();
...
@@ -204,6 +197,10 @@ void GtkSalMenu::UpdateNativeMenu( )
...
@@ -204,6 +197,10 @@ void GtkSalMenu::UpdateNativeMenu( )
pSubmenu
->
SetActionGroup
(
pActionGroup
);
pSubmenu
->
SetActionGroup
(
pActionGroup
);
pSubmenu
->
UpdateNativeMenu
();
pSubmenu
->
UpdateNativeMenu
();
}
}
else
if
(
pSubMenuModel
)
{
g_lo_menu_set_submenu_to_item_in_section
(
pLOMenu
,
nSection
,
nItemPos
,
NULL
);
};
g_free
(
aNativeCommand
);
g_free
(
aNativeCommand
);
...
@@ -520,7 +517,7 @@ void GtkSalMenu::Activate( const gchar* aMenuCommand )
...
@@ -520,7 +517,7 @@ void GtkSalMenu::Activate( const gchar* aMenuCommand )
if
(
pSalSubMenu
!=
NULL
)
{
if
(
pSalSubMenu
!=
NULL
)
{
pSalSubMenu
->
mpVCLMenu
->
Activate
();
pSalSubMenu
->
mpVCLMenu
->
Activate
();
pSalSubMenu
->
UpdateNativeMenu
2
();
pSalSubMenu
->
UpdateNativeMenu
();
}
}
}
}
...
...
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