diff --git a/DevTools/Inspector/RemoteObjectGraphModel.cpp b/DevTools/Inspector/RemoteObjectGraphModel.cpp index 2b0776aea9..749a59e78b 100644 --- a/DevTools/Inspector/RemoteObjectGraphModel.cpp +++ b/DevTools/Inspector/RemoteObjectGraphModel.cpp @@ -9,6 +9,7 @@ RemoteObjectGraphModel::RemoteObjectGraphModel(pid_t pid) : m_pid(pid) { m_object_icon.set_bitmap_for_size(16, load_png("/res/icons/16x16/inspector-object.png")); + m_window_icon.set_bitmap_for_size(16, load_png("/res/icons/16x16/window.png")); } RemoteObjectGraphModel::~RemoteObjectGraphModel() @@ -59,6 +60,8 @@ GVariant RemoteObjectGraphModel::data(const GModelIndex& index, Role role) const { auto* remote_object = static_cast(index.internal_data()); if (role == Role::Icon) { + if (remote_object->class_name == "GWindow") + return m_window_icon; return m_object_icon; } if (role == Role::Display) { diff --git a/DevTools/Inspector/RemoteObjectGraphModel.h b/DevTools/Inspector/RemoteObjectGraphModel.h index e6e50b1644..4281d22740 100644 --- a/DevTools/Inspector/RemoteObjectGraphModel.h +++ b/DevTools/Inspector/RemoteObjectGraphModel.h @@ -39,4 +39,5 @@ private: JsonArray m_json; NonnullOwnPtrVector m_remote_roots; GIcon m_object_icon; + GIcon m_window_icon; };