mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
Calendar: Use new GML compiler
This commit is contained in:
parent
15a539a5b0
commit
14a99bb22d
10 changed files with 223 additions and 165 deletions
|
@ -9,7 +9,6 @@
|
|||
#include "AddEventDialog.h"
|
||||
#include <AK/JsonParser.h>
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <Applications/Calendar/CalendarWindowGML.h>
|
||||
#include <LibConfig/Client.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
|
@ -31,8 +30,7 @@ namespace Calendar {
|
|||
|
||||
ErrorOr<NonnullRefPtr<CalendarWidget>> CalendarWidget::create(GUI::Window* parent_window)
|
||||
{
|
||||
auto widget = TRY(AK::adopt_nonnull_ref_or_enomem(new (nothrow) CalendarWidget));
|
||||
TRY(widget->load_from_gml(calendar_window_gml));
|
||||
auto widget = TRY(CalendarWidget::try_create());
|
||||
|
||||
widget->m_event_calendar = widget->find_descendant_of_type_named<EventCalendar>("calendar");
|
||||
widget->create_on_events_change();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue