diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-24 16:32:20 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-24 16:32:20 +0200 |
commit | 21c56477b046a7e22c8cd7c675b9459ee794df43 (patch) | |
tree | b84b41dd6286480b35a559f5ec189629d3655430 /Applications/Taskbar/TaskbarWindow.cpp | |
parent | abbcdba72e63f223c4207242f6d776abb6fdaa8b (diff) | |
download | serenity-21c56477b046a7e22c8cd7c675b9459ee794df43.zip |
LibGUI: Add a GAbstractButton base class for button widgets.
This patch moves GButton and GRadioButton to inherit from it. This allows
them to share code for mouse event handling, etc.
Diffstat (limited to 'Applications/Taskbar/TaskbarWindow.cpp')
-rw-r--r-- | Applications/Taskbar/TaskbarWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/Taskbar/TaskbarWindow.cpp b/Applications/Taskbar/TaskbarWindow.cpp index 126a60bd73..c8189c1940 100644 --- a/Applications/Taskbar/TaskbarWindow.cpp +++ b/Applications/Taskbar/TaskbarWindow.cpp @@ -125,10 +125,10 @@ void TaskbarWindow::wm_event(GWMEvent& event) window.set_minimized(changed_event.is_minimized()); if (window.is_minimized()) { window.button()->set_foreground_color(Color::DarkGray); - window.button()->set_caption(String::format("[%s]", changed_event.title().characters())); + window.button()->set_text(String::format("[%s]", changed_event.title().characters())); } else { window.button()->set_foreground_color(Color::Black); - window.button()->set_caption(changed_event.title()); + window.button()->set_text(changed_event.title()); } window.button()->set_checked(changed_event.is_active()); break; |