summaryrefslogtreecommitdiffstats
path: root/client/red_window.h
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2011-12-20 16:36:13 +0200
committerUri Lublin <uril@redhat.com>2011-12-20 18:43:53 +0200
commit24d5852611c3d5be3ba824af64cd5a3356b82b9c (patch)
tree7fc9d2bbebdfa3ab3be9d02eb23d5f4e4a253860 /client/red_window.h
parent5d28d1662e6e415367bb283d051e0a690a8ec2f2 (diff)
downloadspice-24d5852611c3d5be3ba824af64cd5a3356b82b9c.tar.gz
spice-24d5852611c3d5be3ba824af64cd5a3356b82b9c.tar.xz
spice-24d5852611c3d5be3ba824af64cd5a3356b82b9c.zip
client: menu: make RedWindow::set_menu() return an error-code (#758260)
RedWindow::set_menu() can fail (on Windows when in fullscreen mode). For Windows spice-client, when in fullscreen mode, the system-menu is NULL. Returns 0 upon success, non-0 (currently only -1) upon failure.
Diffstat (limited to 'client/red_window.h')
-rw-r--r--client/red_window.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/red_window.h b/client/red_window.h
index 3dea26bd..82353aa1 100644
--- a/client/red_window.h
+++ b/client/red_window.h
@@ -70,7 +70,7 @@ public:
void release_mouse();
void start_key_interception();
void stop_key_interception();
- void set_menu(Menu* menu);
+ int set_menu(Menu* menu);
#ifdef USE_OPENGL
void untouch_context();