1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

Run: Use new GML compiler

This commit is contained in:
kleines Filmröllchen 2023-05-26 12:42:58 +02:00 committed by Sam Atkins
parent 05ea3d6be0
commit 6f554af9c5
4 changed files with 27 additions and 9 deletions

View file

@ -6,9 +6,9 @@
*/
#include "RunWindow.h"
#include "MainWidget.h"
#include <AK/LexicalPath.h>
#include <AK/URL.h>
#include <Applications/Run/RunGML.h>
#include <LibCore/Process.h>
#include <LibCore/StandardPaths.h>
#include <LibDesktop/Launcher.h>
@ -41,8 +41,7 @@ RunWindow::RunWindow()
set_resizable(false);
set_minimizable(false);
auto main_widget = set_main_widget<GUI::Widget>();
main_widget->load_from_gml(run_gml).release_value_but_fixme_should_propagate_errors();
auto main_widget = set_main_widget<Run::MainWidget>();
m_icon_image_widget = *main_widget->find_descendant_of_type_named<GUI::ImageWidget>("icon");
m_icon_image_widget->set_bitmap(app_icon.bitmap_for_size(32));