From 9446e6938a4d44899d57781b52c0da32adc4b648 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 12 Mar 2013 16:48:21 +0100 Subject: Implement setCaption on native windows. --- plugingui/nativewindow_win32.cc | 1 + plugingui/nativewindow_x11.cc | 1 + 2 files changed, 2 insertions(+) (limited to 'plugingui') diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc index f7044db..8a0b912 100644 --- a/plugingui/nativewindow_win32.cc +++ b/plugingui/nativewindow_win32.cc @@ -134,6 +134,7 @@ void GUI::NativeWindowWin32::redraw() void GUI::NativeWindowWin32::setCaption(const std::string &caption) { + SetWindowText(gctx->m_hwnd, caption.c_str()); } void GUI::NativeWindowWin32::grabMouse(bool grab) diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc index c7605ef..79349dd 100644 --- a/plugingui/nativewindow_x11.cc +++ b/plugingui/nativewindow_x11.cc @@ -227,6 +227,7 @@ void GUI::NativeWindowX11::redraw() void GUI::NativeWindowX11::setCaption(const std::string &caption) { + XStoreName(gctx->display, xwindow, caption.c_str()); } void GUI::NativeWindowX11::grabMouse(bool grab) -- cgit v1.2.3