mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-12 21:44:46 +00:00
spicec: extract RedScreen::update_menu()
This commit is contained in:
parent
793dd31cad
commit
e50c565b44
@ -113,8 +113,7 @@ RedScreen::RedScreen(Application& owner, int id, const std::wstring& name, int w
|
||||
THROW("create inactive cursor failed");
|
||||
}
|
||||
_window.set_cursor(_default_cursor);
|
||||
AutoRef<Menu> menu(_owner.get_app_menu());
|
||||
_window.set_menu(*menu);
|
||||
update_menu();
|
||||
AutoRef<Icon> icon(Platform::load_icon(RED_ICON_RES_ID));
|
||||
_window.set_icon(*icon);
|
||||
_window.start_key_interception();
|
||||
@ -870,6 +869,12 @@ void RedScreen::external_show()
|
||||
_window.external_show();
|
||||
}
|
||||
|
||||
void RedScreen::update_menu()
|
||||
{
|
||||
AutoRef<Menu> menu(_owner.get_app_menu());
|
||||
_window.set_menu(*menu);
|
||||
}
|
||||
|
||||
void RedScreen::on_exposed_rect(const SpiceRect& area)
|
||||
{
|
||||
if (is_out_of_sync()) {
|
||||
|
||||
@ -89,6 +89,7 @@ public:
|
||||
void show();
|
||||
void activate();
|
||||
void external_show();
|
||||
void update_menu();
|
||||
|
||||
int get_id() { return _id;}
|
||||
int get_screen_id();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user