summaryrefslogtreecommitdiffstats
path: root/client/screen.cpp
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2010-10-17 11:45:13 +0200
committerArnon Gilboa <agilboa@redhat.com>2010-10-17 11:45:13 +0200
commite50c565b44f9bce105a4b38e93169234ad27ffe1 (patch)
tree30245b6ac4b1ca06c92136dbec32383cb38606c5 /client/screen.cpp
parent793dd31cad280ed331e174b52829aa82c5281fad (diff)
downloadspice-e50c565b44f9bce105a4b38e93169234ad27ffe1.tar.gz
spice-e50c565b44f9bce105a4b38e93169234ad27ffe1.tar.xz
spice-e50c565b44f9bce105a4b38e93169234ad27ffe1.zip
spicec: extract RedScreen::update_menu()
Diffstat (limited to 'client/screen.cpp')
-rw-r--r--client/screen.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/screen.cpp b/client/screen.cpp
index 75205719..7c4e1e37 100644
--- a/client/screen.cpp
+++ b/client/screen.cpp
@@ -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()) {