summaryrefslogtreecommitdiff
path: root/MenuApplets/Clock
diff options
context:
space:
mode:
authorShannon Booth <shannon.ml.booth@gmail.com>2020-01-05 15:05:41 +1300
committerAndreas Kling <awesomekling@gmail.com>2020-01-05 09:02:24 +0100
commit7557251fac4476a224bc07bd838eab9037f73e92 (patch)
treee8476447c1b55a535f98dfb4fca3d3fc58f6ca78 /MenuApplets/Clock
parentadff54879c651d952228d7a44b1496d6af2be431 (diff)
downloadserenity-7557251fac4476a224bc07bd838eab9037f73e92.zip
WindowServer: Move menu related code from WindowManager to MenuManager
Menus are now owned by menu manager instead of being split between the window manager and menu manager. If the window server wants to change a menu, or call menu related functionality, this will need to be done through the menu manager. Further refactoring is likely needed, but this seems like a good start for seperating menu logic from window logic.
Diffstat (limited to 'MenuApplets/Clock')
-rw-r--r--MenuApplets/Clock/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/MenuApplets/Clock/main.cpp b/MenuApplets/Clock/main.cpp
index 42c2fc1966..c8e51a0da6 100644
--- a/MenuApplets/Clock/main.cpp
+++ b/MenuApplets/Clock/main.cpp
@@ -46,7 +46,7 @@ private:
tm->tm_hour,
tm->tm_min,
tm->tm_sec);
-
+
GPainter painter(*this);
painter.fill_rect(event.rect(), palette().window());
painter.draw_text(event.rect(), time_text, Font::default_font(), TextAlignment::Center, palette().window_text());
@@ -69,7 +69,7 @@ int main(int argc, char** argv)
window->set_window_type(GWindowType::MenuApplet);
auto widget = ClockWidget::construct();
-
+
window->resize(widget->get_width(), 16);
window->set_main_widget(widget);
window->show();