Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-29 21:08:53 +0000
committerStijn Buys <ingar@osirion.org>2011-07-29 21:08:53 +0000
commite2b15c76e438e8325feafef23435d473f9c2e776 (patch)
tree835208e1b9e17557bd9a0b0b76a5b7f2af0f6125 /src/ui/window.cc
parente1330a195c465309c25822d9365d3b0812fb8048 (diff)
Do not raise ui::Window instances on show(), emit signals on window show() and hide().
Diffstat (limited to 'src/ui/window.cc')
-rw-r--r--src/ui/window.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/window.cc b/src/ui/window.cc
index 8571eec..e7b756a 100644
--- a/src/ui/window.cc
+++ b/src/ui/window.cc
@@ -27,12 +27,19 @@ void Window::show()
{
resize();
Widget::show();
- raise();
+ //raise();
Widget *w = this;
while (w && w->visible()) {
w->set_focus();
w = w->parent();
}
+ emit(EventWindowShow);
+}
+
+void Window::hide()
+{
+ Widget::hide();
+ emit(EventWindowHide);
}
void Window::set_previous(Window *previous)